/* ============================================
 * BEACONS PAGE - Stili specifici per scarabellimakeup.html
 * 
 * Questo file contiene le definizioni di layout specifiche
 * per la pagina beacons (link-in-bio), separate da main.css per evitare conflitti.
 * ============================================ */

/* Background con logo di Keli - Assicura che beacons abbia lo sfondo corretto */
body[data-page="beacons"] {
    background: #000000 !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../../portfolio_keli/src_img/IMAGES/logo_minisito.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Disabilita animated-bg per beacons */
body[data-page="beacons"] .animated-bg {
    display: none !important;
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 60px 0 50px;
    position: relative;
    animation: fadeInUp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 30px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--metallic-gold) 0%, var(--rose-gold) 50%, #f4d03f 100%);
    padding: 5px;
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 0.7),
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 70px rgba(212, 175, 55, 0.9),
        0 20px 50px rgba(0, 0, 0, 0.7),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.1) contrast(1.05);
    display: block;
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #f4d03f, var(--rose-gold), var(--metallic-gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    animation: gradientShift 6s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--metallic-gold), var(--rose-gold), var(--metallic-gold), transparent);
    opacity: 0.8;
    border-radius: 2px;
}

.profile-bio {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.7;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.6px;
}

.profile-bio span {
    color: var(--rose-gold);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(232, 180, 203, 0.3);
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 60px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 22px 35px;
    border-radius: 35px;
    background: 
        linear-gradient(135deg, 
            rgba(232, 180, 203, 0.15) 0%, 
            rgba(212, 175, 55, 0.12) 50%,
            rgba(232, 180, 203, 0.08) 100%
        );
    border: 2px solid rgba(212, 175, 55, 0.25);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 2px rgba(255, 255, 255, 0.1),
        inset 0 -2px 2px rgba(0, 0, 0, 0.1);
    /* Mobile-first: gestione overflow e dimensioni */
    box-sizing: border-box;
    max-width: 100%;
    /* Gestione testo: permette wrapping su mobile */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(232, 180, 203, 0.25) 0%, 
        rgba(212, 175, 55, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}


.link-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 15px 40px rgba(212, 175, 55, 0.4),
        0 0 50px rgba(212, 175, 55, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    color: #f4d03f;
}

.link-item:hover::before {
    opacity: 1;
}

.link-item::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.link-item:hover::after {
    opacity: 1;
    top: -50%;
    left: -50%;
}

.link-item:active {
    transform: translateY(-4px) scale(0.98);
}

.link-icon {
    margin-right: 15px;
    font-size: 22px;
    vertical-align: middle;
    color: var(--rose-gold);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.link-item:hover .link-icon {
    color: #f4d03f;
    transform: scale(1.3) rotate(5deg);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

/* Social Section */
.social-section {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 40px 0 60px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-golden-rose);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1);
    border-color: var(--metallic-gold);
    color: var(--luxury-velvet);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.social-icon {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
 * RESPONSIVE DESIGN - Mobile First
 * ============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .links-container {
        padding: 0 1rem 40px;
        gap: 18px;
    }
    
    .profile-section {
        padding: 40px 0 30px;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
        margin: 0 auto 20px;
    }
    
    .profile-name {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .profile-bio {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .link-item {
        width: 100%;
        max-width: 100%;
        padding: 18px 24px;
        font-size: 16px;
        /* Touch-friendly: minimo 44x44px */
        min-height: 44px;
    }
    
    .link-icon {
        margin-right: 12px;
        font-size: 20px;
    }
    
    .social-section {
        gap: 20px;
        padding: 30px 0 40px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 20px 1rem;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .profile-section {
        padding: 30px 0 25px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 15px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-bio {
        font-size: 0.9rem;
    }
    
    .links-container {
        gap: 16px;
        padding: 0 1rem 30px;
    }
    
    .link-item {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
        font-size: 15px;
        border-radius: 30px;
    }
    
    .link-icon {
        margin-right: 10px;
        font-size: 18px;
    }
    
    .social-section {
        gap: 15px;
        padding: 25px 0 30px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 15px 0.5rem;
        font-size: 11px;
    }
}

/* Touch-friendly: assicura che hover funzioni anche con touch */
@media (hover: none), (pointer: coarse) {
    .link-item:active {
        transform: translateY(-4px) scale(0.98);
        border-color: rgba(212, 175, 55, 0.6);
    }
    
    .social-link:active {
        transform: translateY(-5px) scale(1.05);
    }
}

