/* ============================================
   Kika Borges - Bio Link Page (Public)
   Mobile-First Design
   ============================================ */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ============================================
   Page Wrapper - MOBILE BASE (no frame visible)
   ============================================ */

.page-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* ============================================
   Phone Frame - MOBILE BASE (fills screen)
   ============================================ */

.phone-frame {
    width: 100%;
    background-color: var(--color-content-bg, var(--color-bg));
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* ============================================
   Phone Hero (fixed height image area - top half)
   ============================================ */

.phone-hero {
    position: relative;
    height: 50vh;
    height: 50dvh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--color-bg);
}

/* Overlay on hero */
.phone-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-bg, transparent);
    opacity: var(--overlay-opacity, 0);
    pointer-events: none;
    z-index: 1;
}

/* Gradient transition from hero to content */
.phone-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--color-content-bg, var(--color-bg)));
    pointer-events: none;
    z-index: 2;
}

/* ============================================
   Phone Header (share button)
   ============================================ */

.phone-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.share-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* ============================================
   Profile & Content - MOBILE BASE
   ============================================ */

.profile-photo-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    margin-top: -45px;
    margin-bottom: 10px;
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-title);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.profile-subtitle {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-subtitle);
    text-align: center;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   Phone Content - MOBILE BASE
   ============================================ */

.phone-content {
    position: relative;
    z-index: 2;
    padding: 8px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-content-bg, var(--color-bg));
}

/* Bio */
.profile-bio {
    font-size: var(--bio-font-size, 0.8125rem);
    color: var(--color-bio);
    opacity: 0.6;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Links List */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

/* Link Button - Base */
.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.link-btn:active {
    transform: scale(0.98);
}

/* Link Button - Default (filled) */
.link-btn--default {
    background: var(--color-btn-bg);
    color: var(--color-btn-text);
    border: 2px solid transparent;
}

.link-btn--default:hover {
    background: var(--color-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* Link Button - Outline */
.link-btn--outline {
    background: transparent;
    color: var(--color-outline-text);
    border: 2px solid var(--color-outline-border);
}

.link-btn--outline:hover {
    background: var(--color-outline-hover-bg);
    color: var(--color-btn-text);
    transform: translateY(-2px);
}

/* Link Button - Highlight (gradient) */
.link-btn--highlight {
    background: linear-gradient(135deg, var(--color-highlight-start), var(--color-highlight-end));
    color: var(--color-highlight-text);
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.link-btn--highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* Link Button - Glass (frosted) */
.link-btn--glass {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.link-btn--glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.link-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

/* ============================================
   Social Icons
   ============================================ */

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text);
    opacity: 0.5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 1;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.page-footer {
    padding: 10px 0 0;
}

.page-footer p {
    font-size: 10px;
    color: var(--color-text);
    opacity: 0.2;
    text-align: center;
}

/* ============================================
   Location Button
   ============================================ */

.location-section {
    width: 100%;
    margin-top: 12px;
}

.location-btn {
    cursor: pointer;
    font-family: var(--font-body);
}

/* ============================================
   Map Modal
   ============================================ */

.map-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.map-modal-overlay.active {
    display: flex;
}

.map-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
}

.map-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-iframe-container {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.map-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-modal-footer {
    padding: 12px 16px;
    text-align: center;
}

.map-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.4;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.map-directions-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* ============================================
   Share Toast
   ============================================ */

.share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-family: var(--font-body);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.share-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Cookie Consent Banner (RGPD)
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    animation: fadeInUp 0.4s ease-out;
}

.cookie-banner-content {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.cookie-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-family: var(--font-body);
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-accept {
    background: var(--color-primary, #D4AF37);
    color: #000;
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   Animations
   ============================================ */

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

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1.0s; }
.delay-11 { animation-delay: 1.1s; }
.delay-12 { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
    .animate-in {
        animation: none;
        opacity: 1;
    }
}

/* ============================================
   TABLET (min-width: 481px)
   ============================================ */

@media (min-width: 481px) {
    .phone-content {
        padding: 8px 32px 36px;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .profile-photo-wrapper {
        margin-top: -50px;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .profile-subtitle {
        font-size: 0.875rem;
    }

    .link-btn {
        padding: 13px 20px;
        font-size: 0.875rem;
    }

    .links-list {
        gap: 10px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   DESKTOP (min-width: 600px) - Phone frame visible
   ============================================ */

@media (min-width: 600px) {
    .page-wrapper {
        padding: 24px 20px 0;
        align-items: flex-end;
    }

    .phone-frame {
        max-width: 580px;
        min-height: calc(100vh - 48px);
        min-height: calc(100dvh - 48px);
        border-radius: 44px 44px 0 0;
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .phone-header {
        padding: 16px 20px;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }

    .phone-content {
        padding: 8px 52px 48px;
    }

    .phone-hero {
        height: 50vh;
        height: 50dvh;
    }

    .profile-photo-wrapper {
        margin-top: -60px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
        padding: 3px;
    }

    .profile-name {
        font-size: 1.75rem;
        margin-bottom: 6px;
    }

    .profile-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 20px;
    }

    .link-btn {
        padding: 13px 20px;
        font-size: 0.875rem;
        gap: 8px;
    }

    .social-icons {
        gap: 12px;
        padding-top: 20px;
    }

    .map-modal {
        border-radius: 16px;
    }

    .map-modal-footer {
        padding: 16px 20px;
    }
}
