/* ==========================================================================
   Family Sharing Page Styles
   ========================================================================== */

:root {
    --vr-border: #E5E7EB;
}

/* Hero - break out of .main container */
.hero {
    background: linear-gradient(135deg, var(--vr-primary) 0%, var(--vr-primary-dark) 100%);
    color: white;
    padding: 8rem 1.5rem 5rem;
    text-align: center;
    min-height: auto;
    position: relative;
    overflow: visible;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    letter-spacing: normal;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
}

/* Section */
.section {
    margin-bottom: 3rem;
    padding: 1.5rem 0 0;
}

.section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--vr-text);
}

.section p {
    color: var(--vr-text-secondary);
    margin-bottom: 1rem;
}

/* Cards */
.card {
    background: var(--vr-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--vr-border);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--vr-primary);
    background: linear-gradient(135deg, var(--vr-primary-light) 0%, var(--vr-primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--vr-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.card:hover {
    transform: none;
    box-shadow: none;
}

/* Sharing Types Grid */
.sharing-types {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .sharing-types {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sharing-type {
    background: var(--vr-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--vr-border);
    text-align: center;
}

.sharing-type-icon {
    width: 56px;
    height: 56px;
    background: var(--vr-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.sharing-type-icon svg {
    width: 28px;
    height: 28px;
    color: var(--vr-primary);
}

.sharing-type h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sharing-type p {
    color: var(--vr-text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Privacy Commitment */
.privacy-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.privacy-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.privacy-box h3 svg {
    width: 24px;
    height: 24px;
    color: var(--vr-warning);
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.privacy-list li:last-child {
    margin-bottom: 0;
}

.privacy-list svg {
    width: 20px;
    height: 20px;
    color: var(--vr-success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* What's Shared Table */
.shared-table {
    background: var(--vr-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--vr-border);
}

.shared-table-header {
    background: var(--vr-background);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--vr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shared-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--vr-border);
}

.shared-row:last-child {
    border-bottom: none;
}

.shared-row-icon {
    width: 40px;
    height: 40px;
    background: var(--vr-background);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.shared-row-icon svg {
    width: 20px;
    height: 20px;
    color: var(--vr-primary);
}

.shared-row-content {
    flex: 1;
}

.shared-row-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.shared-row-content p {
    font-size: 0.85rem;
    color: var(--vr-text-secondary);
    margin: 0;
}

.shared-row-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-manual {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-never {
    background: #FEE2E2;
    color: #991B1B;
}

/* FAQ */
.faq-item {
    background: var(--vr-card);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--vr-border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    color: inherit;
}

.faq-question:hover {
    background: var(--vr-background);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--vr-text-secondary);
    transition: transform 0.2s;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--vr-text-secondary);
    font-size: 0.95rem;
    display: none;
    max-height: none;
    overflow: visible;
}

.faq-item.open .faq-answer {
    display: block;
    max-height: none;
}

/* CTA Section */
.cta-section {
    background: var(--vr-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--vr-border);
    margin-top: 3rem;
}

.cta-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--vr-text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-link-primary {
    background: var(--vr-primary);
    color: white;
}

.cta-link-primary:hover {
    background: var(--vr-primary-dark);
}

.cta-link-secondary {
    background: var(--vr-background);
    color: var(--vr-text);
    border: 1px solid var(--vr-border);
}

.cta-link-secondary:hover {
    border-color: var(--vr-primary);
    color: var(--vr-primary);
}

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

.animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
