/* ═══════════════════════════════════════════
   Links Page — Premium Linktree-style
   ═══════════════════════════════════════════ */

/* ── Full-page layout ──────────────────── */
.gotw-links-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(220,252,231,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(220,252,231,0.2) 0%, transparent 50%),
        #fafaf9;
}

/* Hide header/footer on links page */
body.is-links-page .gotw-header,
body.is-links-page .gotw-footer,
body.is-links-page .wp-site-blocks > header,
body.is-links-page .wp-site-blocks > footer {
    display: none;
}

body.is-links-page .wp-site-blocks {
    padding: 0;
}

/* ── Container ─────────────────────────── */
.gotw-links-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Profile Section ───────────────────── */
.gotw-links-profile {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gotw-profile-photo-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow:
        0 0 0 1px rgba(34,197,94,0.15),
        0 4px 20px rgba(0,0,0,0.08);
    animation: gotw-fade-in 0.6s ease both;
}

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

.gotw-profile-photo-wrapper .custom-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.gotw-profile-name {
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0.35rem;
    color: #1c1917;
    letter-spacing: -0.01em;
    animation: gotw-fade-in 0.6s ease 0.1s both;
}

.gotw-profile-subtitle {
    font-size: 0.9rem;
    color: #78716c;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    animation: gotw-fade-in 0.6s ease 0.2s both;
}

/* ── Social Icons ──────────────────────── */
.gotw-social-row {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 1.75rem;
    animation: gotw-fade-in 0.6s ease 0.3s both;
}

.gotw-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e7e5e4;
    color: #57534e;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gotw-social-icon:hover {
    border-color: var(--gotw-accent, #22c55e);
    color: var(--gotw-accent, #22c55e);
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34,197,94,0.15);
}

.gotw-social-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Newsletter Section ────────────────── */
.gotw-newsletter-section {
    width: 100%;
    margin-bottom: 1rem;
    animation: gotw-fade-in 0.6s ease 0.35s both;
}

.gotw-newsletter-default {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e7e5e4;
    overflow: hidden;
    padding: 0.75rem;
}

.gotw-email-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #1c1917;
    outline: none;
    font-family: inherit;
}

.gotw-email-input::placeholder {
    color: #a8a29e;
}

.gotw-subscribe-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    background: var(--gotw-accent, #22c55e);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.gotw-subscribe-btn:hover {
    background: var(--gotw-accent-light, #4ade80);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34,197,94,0.25);
}

.gotw-newsletter-custom {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e7e5e4;
    padding: 1.25rem;
}

/* ── Link Buttons ──────────────────────── */
.gotw-links-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gotw-links-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1.5px solid #e7e5e4;
    border-radius: 16px;
    color: #1c1917;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: gotw-slide-up 0.5s ease both;
}

/* Staggered animation for buttons */
.gotw-links-btn:nth-child(1)  { animation-delay: 0.4s; }
.gotw-links-btn:nth-child(2)  { animation-delay: 0.45s; }
.gotw-links-btn:nth-child(3)  { animation-delay: 0.5s; }
.gotw-links-btn:nth-child(4)  { animation-delay: 0.55s; }
.gotw-links-btn:nth-child(5)  { animation-delay: 0.6s; }
.gotw-links-btn:nth-child(6)  { animation-delay: 0.65s; }
.gotw-links-btn:nth-child(7)  { animation-delay: 0.7s; }
.gotw-links-btn:nth-child(8)  { animation-delay: 0.75s; }
.gotw-links-btn:nth-child(9)  { animation-delay: 0.8s; }
.gotw-links-btn:nth-child(10) { animation-delay: 0.85s; }

.gotw-links-btn:hover {
    border-color: var(--gotw-accent, #22c55e);
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.12);
    color: #1c1917;
}

.gotw-links-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.gotw-btn-icon {
    display: flex;
    align-items: center;
    color: #a8a29e;
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.gotw-links-btn:hover .gotw-btn-icon {
    color: var(--gotw-accent, #22c55e);
}

.gotw-btn-text {
    flex: 1;
    text-align: center;
}

/* ── Footer ────────────────────────────── */
.gotw-links-footer {
    margin-top: 2.5rem;
    text-align: center;
    animation: gotw-fade-in 0.6s ease 0.9s both;
}

.gotw-links-footer p {
    font-size: 0.75rem;
    color: #a8a29e;
    margin: 0;
    letter-spacing: 0.03em;
}

/* ── Animations ────────────────────────── */
@keyframes gotw-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gotw-slide-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ────────────────────────── */
@media (min-width: 480px) {
    .gotw-links-page {
        padding: 4rem 2rem 5rem;
        align-items: center;
    }

    .gotw-links-container {
        max-width: 460px;
    }

    .gotw-profile-photo-wrapper {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 768px) {
    .gotw-links-page {
        padding: 5rem 2rem;
    }

    .gotw-profile-name {
        font-size: 1.85rem;
    }
}

/* ── Dark mode support ─────────────────── */
@media (prefers-color-scheme: dark) {
    /* Only activate if user adds a body class for dark mode */
    body.gotw-dark .gotw-links-page {
        background:
            radial-gradient(ellipse at 20% 0%, rgba(34,197,94,0.08) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 100%, rgba(34,197,94,0.05) 0%, transparent 50%),
            #0c0a09;
    }

    body.gotw-dark .gotw-profile-name { color: #fafaf9; }
    body.gotw-dark .gotw-profile-subtitle { color: #a8a29e; }

    body.gotw-dark .gotw-social-icon {
        background: #1c1917;
        border-color: #292524;
        color: #a8a29e;
    }

    body.gotw-dark .gotw-links-btn {
        background: #1c1917;
        border-color: #292524;
        color: #fafaf9;
    }

    body.gotw-dark .gotw-newsletter-default,
    body.gotw-dark .gotw-newsletter-custom {
        background: #1c1917;
        border-color: #292524;
    }

    body.gotw-dark .gotw-email-input { color: #fafaf9; }
}

/* ── Print ─────────────────────────────── */
@media print {
    .gotw-links-page {
        background: #fff;
        padding: 1rem;
    }

    .gotw-links-btn {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}
