/* bio.css - Clean link-in-bio public page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background: var(--bg-color, #0f0f11);
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color, #fafafa);
    font-family: var(--font, Inter, -apple-system, sans-serif);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.bio-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 20px 64px;
    min-height: 100vh;
}

/* Profile */
.profile {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeUp 0.5s ease-out;
}
.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.bio-text {
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 320px;
    margin: 0 auto;
}
.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}
.social-icon:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}
.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Items */
.items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Link Buttons */
.link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--btn-bg, #1e1e22);
    color: var(--btn-text, #fafafa);
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
}
.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.link-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.link-title {
    flex: 1;
    text-align: center;
}
.link-arrow {
    opacity: 0.4;
    flex-shrink: 0;
}

/* Button style variations */
body[data-btn-style="pill"] .link-btn { border-radius: 9999px; }
body[data-btn-style="square"] .link-btn { border-radius: 4px; }
body[data-btn-style="outline"] .link-btn { background: transparent; border: 2px solid var(--btn-bg, #333); }
body[data-btn-style="shadow"] .link-btn { box-shadow: 4px 4px 0 rgba(0,0,0,0.2); }
body[data-btn-style="glass"] .link-btn { background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.12); }

/* Section Headers */
.section-header {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
    padding: 8px 0 4px;
}
.divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 4px 0;
}

/* Cards */
.card {
    padding: 16px;
    background: var(--btn-bg, #1e1e22);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.card-text {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Embed */
.embed-card {
    background: var(--btn-bg, #1e1e22);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.embed-title {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 16px 8px;
}
.embed-frame {
    aspect-ratio: 16/9;
    position: relative;
}
.embed-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.embed-frame.spotify {
    aspect-ratio: auto;
    padding: 0 16px 16px;
    position: relative;
}
.embed-frame.spotify iframe {
    position: relative;
    width: 100%;
    height: 152px;
}

/* Product */
.product-info {
    flex: 1;
    text-align: center;
}
.product-price {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 2px;
}

/* Email Form */
.subscribe-form {
    display: flex;
    gap: 8px;
}
.form-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
}
.form-input:focus {
    border-color: rgba(255,255,255,0.3);
}
.form-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--btn-text, #fafafa);
    color: var(--btn-bg, #1e1e22);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}
.form-btn:hover { opacity: 0.9; }

/* FAQ */
.faq-item {
    background: var(--btn-bg, #1e1e22);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}
.faq-question {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    opacity: 0.5;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 18px 14px;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Testimonial */
.testimonial-text {
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 8px;
}
.testimonial-author {
    font-size: 0.8rem;
    opacity: 0.5;
    font-weight: 500;
}

/* Footer */
.bio-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.75rem;
    opacity: 0.4;
}

/* Animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.items > * {
    animation: fadeUp 0.4s ease-out backwards;
}
.items > *:nth-child(1) { animation-delay: 0.05s; }
.items > *:nth-child(2) { animation-delay: 0.1s; }
.items > *:nth-child(3) { animation-delay: 0.15s; }
.items > *:nth-child(4) { animation-delay: 0.2s; }
.items > *:nth-child(5) { animation-delay: 0.25s; }
.items > *:nth-child(6) { animation-delay: 0.3s; }
.items > *:nth-child(7) { animation-delay: 0.35s; }
.items > *:nth-child(8) { animation-delay: 0.4s; }
.items > *:nth-child(9) { animation-delay: 0.45s; }
.items > *:nth-child(10) { animation-delay: 0.5s; }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 100;
    transition: transform 0.3s ease;
    background: var(--btn-text, #fafafa);
    color: var(--btn-bg, #1e1e22);
}
.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Background patterns */
body[data-pattern="dots"]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
body[data-pattern="grid"]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
    .bio-container {
        padding: 32px 16px 48px;
    }
    .name {
        font-size: 1.3rem;
    }
    .avatar {
        width: 80px;
        height: 80px;
    }
}
