/* ================= LINKS PAGE STYLES ================= */

/* HERO SECTION */
.links-hero {
    text-align: center;
    padding: 80px 24px 60px;
    animation: fadeInDown 0.8s ease-out;
}

.links-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f6d27a 0%, #d7a94b 50%, #f6d27a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(246, 210, 122, 0.2);
}

.links-subtitle {
    font-size: 1.2rem;
    color: #a0aec0;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* LINKS GRID */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
    padding: 40px 24px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* CATEGORY SECTION */
.links-category {
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.05) 0%, rgba(215, 169, 75, 0.03) 100%);
    border: 1px solid rgba(246, 210, 122, 0.15);
    border-radius: 16px;
    padding: 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.links-category::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(246, 210, 122, 0.1), transparent);
    pointer-events: none;
}

.links-category:hover {
    border-color: rgba(246, 210, 122, 0.3);
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.08) 0%, rgba(215, 169, 75, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(246, 210, 122, 0.15);
    transform: translateY(-4px);
}

/* CATEGORY HEADER */
.category-header {
    margin-bottom: 0;
    padding: 28px 28px 20px;
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f6d27a;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.category-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, #f6d27a 0%, transparent 100%);
    margin-top: 12px;
}

/* LINKS LIST */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* LINK ITEM */
.link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(246, 210, 122, 0.1);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1;
}

.links-list .link-item:last-child {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.link-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(246, 210, 122, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.link-item:hover::before {
    transform: translateX(100%);
}

.link-item:hover {
    background: rgba(246, 210, 122, 0.06);
    border-color: rgba(246, 210, 122, 0.3);
    transform: none;
    box-shadow: none;
}

/* PREMIUM LINK ITEM */
.link-item.premium {
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.1) 0%, rgba(215, 169, 75, 0.05) 100%);
    border: 1.5px solid rgba(246, 210, 122, 0.2);
}

.link-item.premium:hover {
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.15) 0%, rgba(215, 169, 75, 0.1) 100%);
    border-color: rgba(246, 210, 122, 0.4);
    box-shadow: 0 12px 32px rgba(246, 210, 122, 0.25);
}

/* LINK ICON */
.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(246, 210, 122, 0.1);
    border: 1px solid rgba(246, 210, 122, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.link-item:hover .link-icon {
    background: rgba(246, 210, 122, 0.2);
    border-color: rgba(246, 210, 122, 0.4);
    transform: scale(1.1);
}

.premium-icon {
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.15), rgba(215, 169, 75, 0.1));
    border-color: rgba(246, 210, 122, 0.3);
}

.link-item.premium:hover .link-icon {
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.25), rgba(215, 169, 75, 0.15));
}

.icon-placeholder {
    font-size: 28px;
    line-height: 1;
}

.link-icon-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}

/* LINK CONTENT */
.link-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.link-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.link-content p {
    font-size: 0.9rem;
    color: #a0aec0;
    font-weight: 300;
}

.premium-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(246, 210, 122, 0.2);
    color: #f6d27a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LINK ARROW */
.link-arrow {
    font-size: 1.5rem;
    color: #f6d27a;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(6px);
}

/* CTA SECTION */
.links-cta {
    text-align: center;
    padding: 80px 24px;
    margin: 60px 24px;
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.08) 0%, rgba(215, 169, 75, 0.05) 100%);
    border: 1px solid rgba(246, 210, 122, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.links-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f6d27a 0%, #d7a94b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.links-cta p {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 32px;
    font-weight: 300;
}

/* ================= REFINEMENT ================= */
.links-hero {
    padding: 46px 0 28px;
}

.links-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.links-subtitle {
    max-width: 40rem;
    margin: 0 auto;
    color: rgba(243, 237, 230, 0.72);
    line-height: 1.8;
}

.links-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 18px 0 0;
}

.links-category {
    border-radius: 30px;
    padding: 0;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 246, 223, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.category-header {
    padding: 28px 28px 20px;
}

.category-title {
    font-size: 1.35rem;
}

.link-item {
    min-height: 96px;
    padding: 20px 18px;
    border-radius: 18px;
}

.link-content h3 {
    font-size: 1.18rem;
}

.links-cta {
    margin: 44px auto 88px;
    padding: 40px 28px;
    border-radius: 30px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 246, 223, 0.05);
}

.links-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 0.96;
}

@media (max-width: 768px) {
    .links-hero {
        padding-top: 34px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .links-category {
        border-radius: 24px;
    }

    .links-cta {
        border-radius: 24px;
        padding: 24px;
    }

    .category-header {
        padding: 20px 20px 16px;
    }

    .link-item {
        min-height: 0;
        padding: 18px 20px;
    }

    .links-list .link-item:last-child {
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #f6d27a 0%, #d7a94b 100%);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 24px rgba(246, 210, 122, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(246, 210, 122, 0.4);
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px 16px;
    }

    .links-title {
        font-size: 2.5rem;
    }

    .links-subtitle {
        font-size: 1rem;
    }

    .links-category {
        padding: 28px;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .link-item {
        gap: 12px;
        padding: 16px;
    }

    .link-icon {
        width: 48px;
        height: 48px;
    }

    .icon-placeholder {
        font-size: 24px;
    }

    .link-content h3 {
        font-size: 1rem;
    }

    .link-content p {
        font-size: 0.85rem;
    }

    .links-cta {
        padding: 40px 24px;
        margin: 40px 16px;
    }

    .links-cta h2 {
        font-size: 1.8rem;
    }

    .links-cta p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .links-title {
        font-size: 2rem;
    }

    .links-grid {
        gap: 24px;
        padding: 16px 12px;
    }

    .links-category {
        padding: 20px;
    }

    .link-item {
        padding: 14px;
    }

    .link-arrow {
        font-size: 1.2rem;
    }
}

/* ================= MISTRESS MODE STYLES ================= */
body.mistress-mode .links-title {
    background: linear-gradient(135deg, #d4af37 0%, #8b6914 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

body.mistress-mode .links-subtitle {
    color: #e0b0e0;
}

body.mistress-mode .links-category {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(139, 105, 20, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body.mistress-mode .links-category:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(139, 105, 20, 0.08) 100%);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

body.mistress-mode .category-title {
    color: #d4af37;
}

body.mistress-mode .category-divider {
    background: linear-gradient(90deg, #d4af37 0%, transparent 100%);
}

body.mistress-mode .link-item {
    border-color: rgba(212, 175, 55, 0.15);
}

body.mistress-mode .link-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

body.mistress-mode .premium-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(139, 105, 20, 0.15));
    border-color: rgba(212, 175, 55, 0.4);
}

body.mistress-mode .premium-badge {
    background: rgba(212, 175, 55, 0.25);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

body.mistress-mode .link-arrow {
    color: #d4af37;
}

body.mistress-mode .links-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 105, 20, 0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

body.mistress-mode .links-cta h2 {
    background: linear-gradient(135deg, #d4af37 0%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.mistress-mode .cta-button {
    background: linear-gradient(135deg, #d4af37 0%, #8b6914 100%);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

body.mistress-mode .cta-button:hover {
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

/* ================= MODERN OVERRIDES ================= */
body .links-title,
body .links-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.05em;
}

body .links-category {
    background:
        linear-gradient(180deg, rgba(14, 21, 30, 0.90), rgba(9, 14, 20, 0.84)),
        radial-gradient(circle at top left, rgba(255, 156, 107, 0.08), transparent 34%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 90px rgba(4, 7, 12, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .links-category:hover {
    border-color: rgba(255, 156, 107, 0.24);
    background:
        linear-gradient(180deg, rgba(16, 24, 34, 0.94), rgba(10, 15, 22, 0.88)),
        radial-gradient(circle at top left, rgba(255, 156, 107, 0.10), transparent 34%);
}

body .link-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 0;
}

body .link-item:hover,
body .link-item.premium:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 156, 107, 0.24);
    box-shadow: none;
}

body .link-item.premium {
    background: rgba(255, 156, 107, 0.04);
}

body .premium-icon {
    background: rgba(255, 156, 107, 0.06);
}

body .link-icon {
    border-color: rgba(255, 255, 255, 0.08);
}

body .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffd0a5, #ff9c6b);
    color: #18120f;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(255, 156, 107, 0.24);
}

body .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(255, 156, 107, 0.28);
}

body.mistress-mode .links-category {
    background:
        linear-gradient(180deg, rgba(22, 16, 24, 0.92), rgba(14, 10, 18, 0.86)),
        radial-gradient(circle at top left, rgba(255, 126, 164, 0.10), transparent 34%);
    border-color: rgba(255, 255, 255, 0.08);
}

body.mistress-mode .links-category:hover,
body.mistress-mode .link-item:hover {
    border-color: rgba(255, 126, 164, 0.26);
    background: rgba(255, 255, 255, 0.05);
}

body.mistress-mode .cta-button {
    background: linear-gradient(135deg, #ffc0d3, #ff7ea4);
    color: #1f1017;
    box-shadow: 0 18px 40px rgba(255, 126, 164, 0.26);
}

body.mistress-mode .links-title,
body.mistress-mode .links-cta h2 {
    background: linear-gradient(120deg, #fff7fb, #ffc1d4 44%, #ff7ea4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ================= APPLE-STIJL ANIMATIES ================= */

/* Scroll reveal — beginstand */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays voor items in een categorie */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.36s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Categorie card — 3D tilt via JS, smooth transition */
.links-category {
    transform-style: preserve-3d;
    will-change: transform;
    transition:
        transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

/* Hogere specificiteit zodat reveal-transitie niet overschreven wordt */
.links-category.reveal {
    transition:
        opacity 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

/* Link item shimmer sweep bij hover */
.link-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 80%
    );
    transform: translateX(-100%);
    transition: transform 0s;
    pointer-events: none;
}

.link-item:hover::after {
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Icon schaal bij hover */
.link-item:hover .link-icon {
    transform: scale(1.12);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-icon {
    transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pijl schuift soepel naar rechts */
.link-arrow {
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.28s ease;
}

.link-item:hover .link-arrow {
    transform: translateX(6px);
    opacity: 1;
}

/* Hero titel — letter-by-letter via JS, CSS klaar */
.links-title .word {
    display: inline-block;
    overflow: hidden;
}

.links-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: charReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA sectie pulse gloed */
.links-cta {
    transition:
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.links-cta:hover {
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 156, 107, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* CTA knop — magnetisch effect via JS */
.cta-button {
    transition:
        transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.28s ease;
    will-change: transform;
}

/* Categorie grid stagger */
.links-grid {
    perspective: 1200px;
}
