/* /static/dh5-main-style.css  version 9.19 - Cleaned for DH-4 Plugin */

/* ============================================================================
   BASE STYLES
   ============================================================================ */
html {
    font-size: 16px; /* Base for rem */
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* ============================================================================
   HEADER STYLES - DH-5 Compatible
   ============================================================================ */
.dh5-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.dh5-header .logo img {
    max-width: 120px;
    margin-right: 20px;
}

.dh5-header .title {
    text-align: center;
    flex-grow: 1;
}

.dh5-header .title h1 {
    font-size: 1.875rem; /* 30px */
    margin: 0;
}

.dh5-header .title p {
    font-size: 1.65rem; /* 26px */
    margin: 5px 0 0;
}

.dh5-header .main-nav {
    display: flex;
    gap: 15px;
}

/* ============================================================================
   MAIN CONTENT STYLES
   ============================================================================ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

main img {
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

main h1 {
    font-size: 1.875rem; /* 30px */
}

main h2 {
    font-size: 1.65rem; /* 26px */
}

main h3 {
    font-size: 1.5rem; /* 24px */
}

main p {
    font-size: 1.5rem; /* 24px */
}

/* ============================================================================
   BOOK OF THE DAY STYLES
   ============================================================================ */
.book-of-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    box-sizing: border-box;
}

.book-text {
    flex: 0 0 70%;
    padding-right: 15px;
}

.book-text h3 {
    font-size: 1.5rem; /* For "Book of the Day" */
    margin: 0 0 8px;
    line-height: 1.3;
}

.book-text .book-title {
    font-size: 1.2rem; /* Book title */
    margin: 0 0 8px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.book-text .book-description {
    font-size: 1rem;
    margin: 0 0 8px;
    line-height: 1.4;
}

.book-text .book-link a {
    font-size: 1rem;
    color: #333;
    text-decoration: none;
}

.book-text .book-link a:hover {
    text-decoration: underline;
}

.book-image {
    flex: 0 0 20%;
    text-align: right;
}

.book-image img {
    height: 125px; /* ~3.3cm */
    width: auto;
    max-width: 100%;
    display: block;
}

/* ============================================================================
   AUTHOR BIO STYLES
   ============================================================================ */
.author-bio {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    box-sizing: border-box;
}

.author-image {
    flex: 0 0 150px;
    margin-right: 20px;
}

.author-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.author-text {
    flex: 1;
}

.author-text h2 {
    font-size: 1.3rem;
    margin: 0 0 10px;
}

.author-text p {
    font-size: 1rem;
    margin: 0 0 12px 0;  /* Changed from margin: 0; */
    line-height: 1.4;
}

/* ============================================================================
   FAQ AND HOWTO STYLES
   ============================================================================ */
.faq {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    box-sizing: border-box;
}

.faq h2 {
    font-size: 1.65rem; /* Match main h2 */
    margin: 0 0 15px;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item h3 {
    font-size: 1.5rem; /* Match main h3 */
    margin: 0 0 8px;
}

.faq-item p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.howto {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    box-sizing: border-box;
}

.howto h2 {
    font-size: 1.65rem;
    margin: 0 0 15px;
}

.howto p {
    font-size: 1rem;
    margin: 0 0 10px;
}

.howto-steps {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.howto-steps li {
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ============================================================================
   FOOTER STYLES - DH-4 Compatible
   ============================================================================ */
.dh5-footer .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.dh5-footer .footer-logo {
    flex: 0 0 20%;
    text-align: left;
    max-width: 320px;
    min-width: 120px;
}

.dh5-footer .footer-logo img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
}

.dh5-footer .footer-nav {
    flex: 0 0 60%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dh5-footer .footer-nav a {
    font-size: 1rem;
    text-decoration: none;
    color: #333;
}

.dh5-footer .footer-nav a:hover {
    text-decoration: underline;
}

.dh5-footer .footer-copyright {
    flex: 0 0 20%;
    text-align: right;
}

.dh5-footer .footer-copyright p {
    font-size: 1rem;
    margin: 0;
    white-space: normal;
}

/* ============================================================================
   COMMENTS SECTION STYLES
   ============================================================================ */
.dh5-comments-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.comments-header {
    margin-bottom: 1.5rem;
}

.comments-title {
    color: #333;
    margin-bottom: 0.5rem;
}

.comments-prompt {
    color: #666;
    font-style: italic;
}

.comments-container {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Comment Form Styling */
.dh5-comment-form textarea#comment {
    color: #333 !important;
    background-color: #fff !important;
}

.dh5-comment-form textarea#comment:focus {
    color: #000 !important;
    background-color: #fff !important;
}

.dh5-comment-form input[type="text"],
.dh5-comment-form input[type="email"],
.dh5-comment-form input[type="url"],
.dh5-comment-form textarea {
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.dh5-comment-form p {
    margin-bottom: 15px;
}

.dh5-comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.dh5-comment-form .submit {
    background-color: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.dh5-comment-form .submit:hover {
    background-color: #005a87;
}

/* ============================================================================
   MOBILE RESPONSIVE STYLES
   ============================================================================ */
@media (max-width: 768px) {
    /* Header Mobile */
    .dh5-header .header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .dh5-header .logo img {
        margin-right: 0;
    }
    
    /* Book of Day Mobile */
    .book-of-day {
        flex-direction: column;
        align-items: center;
    }
    
    .book-text,
    .book-image {
        flex: 0 0 100%;
        text-align: center;
        padding: 0;
    }
    
    .book-image {
        margin-top: 10px;
    }
    
    /* Author Bio Mobile */
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 0 15px 0;
    }
    
    /* FAQ and HowTo Mobile */
    .faq,
    .howto {
        max-width: 90%;
    }
    
    /* Footer Mobile */
    .dh5-footer .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dh5-footer .footer-logo,
    .dh5-footer .footer-nav,
    .dh5-footer .footer-copyright {
        flex: 0 0 100%;
        text-align: center;
    }
    
    /* Comments Mobile */
    .dh5-comments-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .comments-container {
        padding: 0.75rem;
    }
}

/* ============================================================================
   LANGUAGE-AWARE TYPOGRAPHY - DH-5 Compatible
   ============================================================================ */

/* Base Noto font for all languages */
html {
    font-family: "Noto Sans", Arial, sans-serif;
}

/* Latin scripts (default) */
[lang^="en"], [lang^="de"], [lang^="fr"], [lang^="es"], [lang^="pt"], 
[lang^="it"], [lang^="nl"], [lang^="pl"], [lang^="tr"], [lang^="sw"],
[lang^="fi"], [lang^="sv"], [lang^="cs"], [lang^="sk"], [lang^="hu"],
[lang^="ro"], [lang^="hr"], [lang^="sl"], [lang^="et"], [lang^="lv"],
[lang^="lt"], [lang^="da"], [lang^="no"], [lang^="so"], [lang^="az"],
[lang^="mt"], [lang^="tl"], [lang^="ms"], [lang^="id"], [lang^="vi"] {
    font-family: "Noto Sans", Arial, sans-serif;
}

/* Cyrillic scripts - Yandex-accessible group */
[lang^="ru"], [lang^="be"], [lang^="kk"] {
    font-family: "YS Text", "PT Sans", "Noto Sans", Arial, sans-serif;
}

/* Cyrillic scripts - Google-accessible group */
[lang^="uk"], [lang^="bg"], [lang^="sr"] {
    font-family: "Noto Sans", "PT Sans", Arial, sans-serif;
}

/* Arabic scripts (RTL) */
[lang^="ar"], [lang^="fa"], [lang^="ur"] {
    font-family: "Noto Sans Arabic", "Noto Sans", sans-serif;
    direction: rtl;
    text-align: right;
    letter-spacing: 0.02em;
}

/* Hebrew (RTL) */
[lang^="he"] {
    font-family: "Noto Sans Hebrew", "Noto Sans", sans-serif;
    direction: rtl;
    text-align: right;
}

/* Chinese (6-CDN approach) */
[lang^="zh"] {
    font-family: "Source Han Sans SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Roboto", sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* Japanese */
[lang^="ja"] {
    font-family: "Noto Sans CJK JP", "Noto Sans", sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* Korean */
[lang^="ko"] {
    font-family: "Noto Sans CJK KR", "Noto Sans", sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Hindi */
[lang^="hi"] {
    font-family: "Noto Sans Devanagari", "Noto Sans", sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Thai */
[lang^="th"] {
    font-family: "Noto Sans Thai", "Noto Sans", sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Special scripts (Google Fonts) */
[lang^="my"] {
    font-family: "Noto Sans Myanmar", sans-serif;
    font-size: 1.15em;
    line-height: 1.8;
}

[lang^="ka"] {
    font-family: "Noto Sans Georgian", sans-serif;
    font-size: 1.1em;
}

[lang^="km"] {
    font-family: "Noto Sans Khmer", sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
}

[lang^="am"] {
    font-family: "Noto Sans Ethiopic", sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
}

/* RTL layout adjustments */
[lang^="ar"] .site-header .logo,
[lang^="he"] .site-header .logo,
[lang^="fa"] .site-header .logo,
[lang^="ur"] .site-header .logo {
    margin-left: 20px;
    margin-right: 0;
}

