/**
 * PCOS Ferticure Clinic - Hindi Homepage & Multilingual UI Stylesheet
 * PF-221: Devanagari typography, language switcher, mobile pill and responsive cards
 */

/* Devanagari Typography Harmonization */
html[lang="hi"],
body[lang="hi"] {
    font-family: 'Noto Sans Devanagari', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] .hp-hero-title,
html[lang="hi"] .hp-section-title,
html[lang="hi"] .brand strong {
    font-family: 'Noto Sans Devanagari', 'Playfair Display', Georgia, serif;
    letter-spacing: 0;
}

html[lang="hi"] .hp-hero-title {
    line-height: 1.35;
}

html[lang="hi"] .hp-hero-description {
    line-height: 1.8;
    font-size: 16px;
}

html[lang="hi"] .hp-doc-name {
    font-family: 'Noto Sans Devanagari', var(--font-heading);
}

html[lang="hi"] .hp-doc-exp {
    line-height: 1.4;
}

html[lang="hi"] .hp-cta-title {
    font-size: 15px;
    font-weight: 600;
}

/* Header Utility Bar Language Switcher */
.utility-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
}

.lang-option {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.lang-option.lang-link {
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.9;
    cursor: pointer;
}

.lang-option.lang-link:hover {
    opacity: 1;
    color: #ffccd9;
}

.lang-option.is-active {
    font-weight: 700;
    color: #ffccd9;
}

.lang-sep {
    opacity: 0.5;
    font-size: 10px;
}

/* Header Patient Actions Desktop Switcher */
.header-lang-wrapper {
    display: inline-flex;
    align-items: center;
    padding-left: 10px;
    border-left: 1px solid #eadde2;
    margin-left: 6px;
}

.header-lang-wrapper .lang-switcher {
    color: var(--plum, #5C3546);
}

.header-lang-wrapper .lang-option {
    color: var(--plum, #5C3546);
}

.header-lang-wrapper .lang-option.is-active {
    color: var(--pink, #c25975);
    font-weight: 700;
}

.header-lang-wrapper .lang-option.lang-link {
    color: var(--muted, #666);
}

.header-lang-wrapper .lang-option.lang-link:hover {
    color: var(--plum, #5C3546);
}

/* Mobile Top Bar Language Pill */
.header-mobile-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #d4c0c8;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--plum, #5C3546);
    background: #fffdfa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-mobile-lang:hover,
.header-mobile-lang:active {
    background: var(--plum, #5C3546);
    color: #ffffff;
    border-color: var(--plum, #5C3546);
}

@media (min-width: 1351px) {
    .header-mobile-lang {
        display: none;
    }
}

/* Mobile Nav Drawer Language Switcher */
.mobile-nav-lang {
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--line, #e9dce0);
    margin-bottom: 12px;
}

.mobile-nav-lang-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted, #7c6854);
    margin-bottom: 8px;
}

.mobile-nav-lang-actions {
    display: flex;
    gap: 8px;
}

.mobile-lang-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--line, #e9dce0);
    text-decoration: none;
    color: var(--plum, #5C3546);
    background: #ffffff;
    transition: all 0.2s ease;
}

.mobile-lang-btn.is-active {
    background: var(--plum, #5C3546);
    color: #ffffff;
    border-color: var(--plum, #5C3546);
    font-weight: 700;
}

/* Hindi Content Refinements */
html[lang="hi"] .hp-reminders-title,
html[lang="hi"] .hp-section-title {
    line-height: 1.35;
}

html[lang="hi"] .hp-reminders-benefits li {
    line-height: 1.5;
}

html[lang="hi"] .condition-card h3 {
    font-size: 20px;
    line-height: 1.4;
}

html[lang="hi"] .condition-card p {
    line-height: 1.6;
}

html[lang="hi"] .doctor-copy h2 {
    line-height: 1.35;
}

html[lang="hi"] .approach-grid h3 {
    font-size: 18px;
    line-height: 1.4;
}

html[lang="hi"] .approach-grid p {
    line-height: 1.6;
}

html[lang="hi"] .ht-category-title {
    font-size: 19px;
    line-height: 1.4;
}

html[lang="hi"] .ht-tool-name {
    font-size: 14.5px;
    line-height: 1.4;
}

/* Mobile responsive padding */
@media (max-width: 640px) {
    .utility-right {
        margin: 4px 0 0;
        gap: 6px;
    }
    
    html[lang="hi"] .hp-hero-title {
        font-size: 2.35rem;
        line-height: 1.3;
    }
    
    html[lang="hi"] .hp-hero-description {
        font-size: 14.5px;
        line-height: 1.65;
    }
}
