/* LGBTQ+ Health Page - Additional Sections Styling */

/* ============================================
   Navigation Anchor Links Section
   ============================================ */
.lgbtq-anchor-nav {
    padding: 4rem 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 1) 100%
    );
    position: relative;
    z-index: 50;
}

.anchor-wrapper {
    text-align: center;
}

.anchor-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.anchor-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982);
    border-radius: 2px;
}

/* Anchor Links Grid */
.anchor-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.anchor-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.anchor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anchor-card:hover {
    transform: translateX(10px) translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.anchor-card:hover::before {
    opacity: 1;
}

.anchor-card:hover .anchor-arrow {
    transform: translateX(5px);
}

.anchor-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, 
        rgba(146, 110, 204, 0.1) 0%, 
        rgba(112, 109, 156, 0.1) 100%
    );
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.anchor-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-primary);
}

.anchor-content {
    flex: 1;
}

.anchor-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.anchor-content p {
    font-size: 0.875rem;
    color: #6c757d;
}

.anchor-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.anchor-arrow svg {
    width: 100%;
    height: 100%;
    fill: #6c757d;
}

/* Quick Stats Bar */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Gender-Affirming Hormone Therapy (GAHT) Section
   ============================================ */
.gaht-section {
    padding: 6rem 0;
    background: #fafbfc;
    position: relative;
}

/* Section Headers (Reusable) */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1.5rem;
}

.header-badge span {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Tab Navigation */
.gaht-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.tab-button:hover {
    border-color: rgba(146, 110, 204, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tab-button.active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, 
        rgba(146, 110, 204, 0.05) 0%, 
        rgba(112, 109, 156, 0.05) 100%
    );
    box-shadow: 0 8px 24px rgba(146, 110, 204, 0.15);
}

.tab-icon {
    width: 48px;
    height: 48px;
    background: rgba(146, 110, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tab-button.active .tab-icon {
    background: var(--color-primary);
}

.tab-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.tab-button.active .tab-icon svg {
    stroke: white;
}

.tab-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.tab-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tab Content */
.tab-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

/* Medication Categories */
.medication-category {
    margin-bottom: 4rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 1.5rem;
}

/* Medication Grid */
.medication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.medication-grid.single-item {
    max-width: 400px;
}

/* Medication Cards */
.medication-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.medication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.medication-card.featured {
    border: 2px solid rgba(146, 110, 204, 0.2);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #706d9c, #926ecc);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 10;
}

.card-badge.warning {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.controlled-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.625rem;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Card Header */
.medication-card .card-header {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(180deg, 
        rgba(146, 110, 204, 0.03) 0%, 
        rgba(255, 255, 255, 0) 100%
    );
}

.med-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.med-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.trans-flag-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        #5bcefa 0%,
        #f5a9b8 50%,
        #ffffff 100%
    );
}

.trans-flag-accent.masculinizing {
    background: linear-gradient(90deg,
        #5bcefa 0%,
        #f5a9b8 50%,
        #ffffff 100%
    );
}

/* Card Body */
.medication-card .card-body {
    padding: 1.5rem;
}

.medication-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.med-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.med-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.med-features li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.875rem;
    color: #495057;
}

.med-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* Card Footer */
.medication-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.btn-card-primary {
    padding: 0.625rem 1.25rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-card-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 110, 204, 0.3);
}

/* Notices */
.controlled-substance-notice {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.controlled-substance-notice svg {
    width: 24px;
    height: 24px;
    fill: #dc2626;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.controlled-substance-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: #991b1b;
}

.transference-warning {
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #92400e;
}

/* Section CTA */
.section-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, 
        rgba(146, 110, 204, 0.05) 0%, 
        rgba(112, 109, 156, 0.05) 100%
    );
    border-radius: 24px;
    margin-top: 4rem;
}

.section-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.section-cta p {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #706d9c, #926ecc);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(146, 110, 204, 0.3);
}

.btn-primary-large svg {
    width: 20px;
    height: 20px;
}


/* ============================================
   FAQ Section (To be added)
   ============================================ */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 1) 100%
    );
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 250, 252, 1) 100%
    );
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(146, 110, 204, 0.2);
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

.faq-question:hover {
    background: rgba(146, 110, 204, 0.05);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: #495057;
}

/* Contact CTA */
.faq-contact {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, 
        rgba(146, 110, 204, 0.05) 0%, 
        rgba(112, 109, 156, 0.05) 100%
    );
    border-radius: 24px;
    margin-top: 4rem;
}

.faq-contact h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.faq-contact p {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Add FAQ styles here when implementing */

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    /* Anchor Links */
    .anchor-links {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    /* GAHT Tabs */
    .gaht-tabs {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-button {
        width: 100%;
        min-width: auto;
    }
    
    /* Medication Grid */
    .medication-grid {
        grid-template-columns: 1fr;
    }
    
    /* Service Cards */
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .service-card-horizontal {
        flex-direction: column;
        text-align: center;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Price Sections */
    .price-section {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .medication-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}
