/* ==========================================================================
   CSS Layer 2: Base Styles & Utilities
   สไตล์พื้นฐานของเอกสาร Typography และ Utility classes
   ========================================================================== */

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-color);
    background-image: url('https://app.bsd.education/res/869069bd-2f0d-4bf1-a95c-6dba974d65db/herb.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: var(--font-size-base);
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

/* Visibility & Accessibility Utilities */
.hidden {
    display: none !important;
}

.pg-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ไฮไลต์คำที่ค้นหา */
mark.hl {
    background: var(--accent-gold);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

/* ข้อความสถานะและพื้นที่ว่าง */
.stats-area {
    margin: 1rem 0;
    text-align: center;
}

.no-results {
    text-align: center;
    margin-top: 2rem;
}

.empty-app-state {
    text-align: center;
    margin-top: 2rem;
}

.detail-disclaimer {
    margin-top: 2rem;
}

.tags-container {
    margin-top: 0.5rem;
}
