/**
 * Ayatoon Theme Main Stylesheet
 * Modern, High-Performance, Light-Mode Manga & Webtoon Discovery Design System
 *
 * @package Ayatoon
 */

/* 1. CSS VARIABLES & DESIGN TOKENS */
:root {
    --ay-primary: #5b21b6;
    --ay-primary-hover: #4c1d95;
    --ay-primary-light: #ede9fe;
    --ay-accent: #6366f1;
    --ay-accent-light: #e0e7ff;
    --ay-bg: #ffffff;
    --ay-surface: #f8fafc;
    --ay-surface-alt: #f1f5f9;
    --ay-card-bg: #ffffff;
    --ay-border: #e2e8f0;
    --ay-border-dark: #cbd5e1;
    --ay-text: #0f172a;
    --ay-text-muted: #64748b;
    --ay-text-light: #94a3b8;
    --ay-success: #10b981;
    --ay-success-bg: #ecfdf5;
    --ay-warning: #f59e0b;
    --ay-warning-bg: #fffbeb;
    --ay-danger: #ef4444;
    --ay-danger-bg: #fef2f2;
    --ay-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    --ay-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --ay-container: 1240px;
    --ay-radius: 12px;
    --ay-radius-sm: 8px;
    --ay-radius-lg: 16px;
    --ay-radius-full: 9999px;
    --ay-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --ay-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --ay-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.1);
}

/* 2. BASE CSS RESET */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--ay-bg);
    color: var(--ay-text);
    font-family: var(--ay-font-sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ay-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--ay-primary-hover);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* 3. ACCESSIBILITY & UTILITIES */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #ffffff;
    clip: auto !important;
    clip-path: none;
    color: var(--ay-primary);
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 12px;
    line-height: normal;
    padding: 12px 20px;
    position: fixed;
    top: 12px;
    text-decoration: none;
    width: auto;
    z-index: 100000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: var(--ay-radius-sm);
}

:focus-visible {
    outline: 2px solid var(--ay-accent);
    outline-offset: 2px;
}

.ayatoon-container {
    width: 100%;
    max-width: var(--ay-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* 4. SITE HEADER & NAVIGATION */
.ayatoon-announcement-banner {
    background: var(--ay-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
}
.banner-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.banner-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}
.banner-link:hover {
    color: var(--ay-accent-light);
}

.ayatoon-header {
    background: #ffffff;
    border-bottom: 1px solid var(--ay-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ayatoon-main-logo {
    height: 42px;
    width: auto;
    display: block;
}

.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.nav-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
}
.nav-menu-list li a {
    display: block;
    padding: 8px 12px;
    color: var(--ay-text);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--ay-radius-sm);
    transition: all 0.15s ease;
    white-space: nowrap;
}
.nav-menu-list li a:hover,
.nav-menu-list li.current-menu-item > a {
    color: var(--ay-primary);
    background: var(--ay-primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.btn-header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--ay-radius-full);
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    color: var(--ay-text);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}
.btn-header-search-toggle:hover,
.btn-header-search-toggle[aria-expanded="true"] {
    background: var(--ay-primary-light);
    color: var(--ay-primary);
    border-color: var(--ay-primary);
}

/* Expandable Clean Header Search Dropdown */
.header-search-dropdown {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--ay-border);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    padding: 14px 0 16px;
    position: relative;
    z-index: 95;
    animation: aySlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-search-dropdown.is-open {
    display: block;
}
@keyframes aySlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.header-dropdown-search-form {
    max-width: 860px;
    margin: 0 auto;
}
.dropdown-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ay-surface);
    border: 1.5px solid var(--ay-border-dark);
    border-radius: var(--ay-radius-full);
    padding: 6px 8px 6px 18px;
    transition: all 0.2s ease;
}
.dropdown-search-input-wrap:focus-within {
    background: #ffffff;
    border-color: var(--ay-primary);
    box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.12);
}
.dropdown-search-icon {
    color: var(--ay-text-muted);
    flex-shrink: 0;
}
.dropdown-search-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--ay-text);
    outline: none;
    font-family: inherit;
}
.btn-dropdown-search-submit {
    background: var(--ay-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ay-radius-full);
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.btn-dropdown-search-submit:hover {
    background: var(--ay-primary-hover);
}
.btn-dropdown-search-close {
    background: transparent;
    border: none;
    color: var(--ay-text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-dropdown-search-close:hover {
    background: var(--ay-surface-hover);
    color: var(--ay-text);
}
.dropdown-quick-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-left: 14px;
    font-size: 12px;
}
.quick-tags-label {
    color: var(--ay-text-muted);
    font-weight: 600;
}
.quick-tag {
    color: var(--ay-text-secondary);
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    padding: 2px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.quick-tag:hover {
    background: var(--ay-primary-light);
    color: var(--ay-primary);
    border-color: var(--ay-primary);
}

.btn-header-reading-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--ay-radius-full);
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    color: var(--ay-text);
    position: relative;
    transition: all 0.15s ease;
}
.btn-header-reading-list:hover {
    background: var(--ay-primary-light);
    color: var(--ay-primary);
    border-color: var(--ay-primary);
}
.header-reading-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--ay-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    pointer-events: none;
}

.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    border-radius: var(--ay-radius-sm);
    cursor: pointer;
    gap: 5px;
    padding: 0;
}
.hamburger-bar {
    width: 20px;
    height: 2px;
    background: var(--ay-text);
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 10001;
    box-shadow: -4px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}
.mobile-nav-drawer.is-open {
    right: 0;
    visibility: visible;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ay-border);
}
.drawer-title {
    font-size: 18px;
    font-weight: 800;
}
.btn-close-drawer {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--ay-text-muted);
}
.drawer-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ay-border);
}
.drawer-search form {
    display: flex;
    gap: 8px;
}
.mobile-search-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ay-border-dark);
    border-radius: var(--ay-radius-sm);
    font-size: 13px;
}
.btn-mobile-search-submit {
    height: 40px;
    padding: 0 14px;
    background: var(--ay-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ay-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav-links li a {
    display: block;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ay-text);
    border-radius: var(--ay-radius-sm);
}
.mobile-nav-links li a:hover {
    background: var(--ay-primary-light);
    color: var(--ay-primary);
}
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 5. HOMEPAGE HERO SECTION */
.ayatoon-hero-section {
    background: radial-gradient(circle at 50% 0%, #f5f3ff 0%, #ffffff 80%);
    padding: 64px 0 54px 0;
    border-bottom: 1px solid var(--ay-border);
    text-align: center;
}
.hero-inner-content {
    max-width: 860px;
    margin: 0 auto;
}
.hero-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #ddd6fe;
    padding: 6px 16px;
    border-radius: var(--ay-radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--ay-primary);
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.06);
    margin-bottom: 20px;
}
.pill-dot {
    width: 8px;
    height: 8px;
    background: var(--ay-success);
    border-radius: 50%;
}
.hero-main-heading {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ay-text);
    margin: 0 0 16px 0;
}
.hero-lead-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ay-text-muted);
    margin: 0 0 36px 0;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-card {
    background: #ffffff;
    border: 1px solid var(--ay-border);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 10px 35px rgba(91, 33, 182, 0.08);
    margin-bottom: 36px;
}
.hero-search-bar-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.hero-input-wrap {
    position: relative;
    flex: 1;
}
.hero-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ay-primary);
}
.hero-search-input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 52px;
    border: 2px solid var(--ay-border);
    border-radius: var(--ay-radius);
    font-size: 16px;
    color: var(--ay-text);
    outline: none;
    transition: all 0.2s ease;
}
.hero-search-input:focus {
    border-color: var(--ay-accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.hero-search-btn {
    height: 56px;
    padding: 0 28px;
    background: var(--ay-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ay-radius);
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.hero-search-btn:hover {
    background: var(--ay-primary-hover);
}

.hero-format-quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}
.quick-label {
    font-weight: 700;
    color: var(--ay-text-muted);
    margin-right: 4px;
}
.quick-tag {
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    border-radius: var(--ay-radius-full);
    padding: 5px 14px;
    font-weight: 600;
    color: var(--ay-text);
    text-decoration: none;
    transition: all 0.15s ease;
}
.quick-tag:hover {
    border-color: var(--ay-primary);
    color: var(--ay-primary);
    background: var(--ay-primary-light);
}
.quick-tag-all {
    font-weight: 700;
    color: var(--ay-primary);
    text-decoration: none;
    margin-left: 6px;
}
.quick-tag-all:hover {
    text-decoration: underline;
}

.hero-trust-metrics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.trust-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.trust-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--ay-text);
    line-height: 1.2;
}
.trust-label {
    font-size: 12px;
    color: var(--ay-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.metric-divider {
    width: 1px;
    height: 28px;
    background: var(--ay-border);
}

/* 6. GENERAL HOME SECTIONS */
.home-section {
    padding: 64px 0;
}
.bg-surface {
    background-color: var(--ay-surface);
    border-top: 1px solid var(--ay-border);
    border-bottom: 1px solid var(--ay-border);
}
.section-headline-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 32px;
}
.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ay-primary);
    background: var(--ay-accent-light);
    padding: 3px 10px;
    border-radius: var(--ay-radius-full);
    margin-bottom: 8px;
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
    color: var(--ay-text);
}
.section-desc {
    font-size: 15px;
    color: var(--ay-text-muted);
    margin: 0;
    max-width: 640px;
}
.view-more-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ay-primary);
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: var(--ay-radius-sm);
    background: #ffffff;
    border: 1px solid var(--ay-border);
    box-shadow: var(--ay-shadow-sm);
    transition: all 0.15s ease;
}
.view-more-cta:hover {
    border-color: var(--ay-primary);
    background: var(--ay-primary-light);
}

/* 7. GENRES TILE GRID */
.genres-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.genre-tile-card {
    background: #ffffff;
    border: 1px solid var(--ay-border);
    border-radius: var(--ay-radius);
    padding: 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ay-shadow-sm);
    transition: all 0.2s ease;
}
.genre-tile-card:hover {
    transform: translateY(-3px);
    border-color: var(--ay-primary);
    box-shadow: var(--ay-shadow-hover);
}
.genre-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.genre-tile-icon {
    font-size: 26px;
}
.genre-tile-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--ay-primary);
    background: var(--ay-primary-light);
    padding: 2px 8px;
    border-radius: var(--ay-radius-full);
}
.genre-tile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ay-text);
    margin: 0 0 6px 0;
}
.genre-tile-desc {
    font-size: 13px;
    color: var(--ay-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* 8. FORMAT SHOWCASE */
.format-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.format-card {
    background: #ffffff;
    border: 1px solid var(--ay-border);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ay-shadow);
}
.format-badge-flag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ay-text-muted);
    margin-bottom: 6px;
}
.format-card-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--ay-text);
}
.format-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ay-text-muted);
    margin: 0 0 16px 0;
}
.format-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 12.5px;
    color: var(--ay-text);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--ay-surface);
    padding: 14px;
    border-radius: 8px;
}
.btn-explore-format {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--ay-primary);
    text-decoration: none;
}
.btn-explore-format:hover {
    text-decoration: underline;
}

/* 9. CALLOUT BANNER */
.callout-card-banner {
    background: linear-gradient(135deg, #2e1065 0%, #4338ca 100%);
    border-radius: 24px;
    padding: 48px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 20px 40px rgba(46, 16, 101, 0.2);
}
.callout-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: var(--ay-radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.callout-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 16px 0;
}
.callout-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #e0e7ff;
    margin: 0 0 28px 0;
}
.callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.btn-callout-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--ay-primary);
    padding: 12px 24px;
    border-radius: var(--ay-radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}
.btn-callout-primary:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}
.btn-callout-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--ay-radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-callout-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.security-shield-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.shield-icon-circle {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shield-heading {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
}
.shield-sub {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0 0 20px 0;
}
.shield-checklist {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #e2e8f0;
}

/* 10. TOOLS GRID */
.tools-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tool-box-card {
    background: #ffffff;
    border: 1px solid var(--ay-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--ay-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}
.tool-box-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ay-shadow-hover);
    border-color: var(--ay-primary);
}
.tool-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.tool-box-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px 0;
}
.tool-box-title a { color: var(--ay-text); text-decoration: none; }
.tool-box-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ay-text-muted);
    margin: 0 0 18px 0;
}
.tool-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--ay-primary);
    text-decoration: none;
}

/* 11. BLOG CARDS GRID */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: #ffffff;
    border: 1px solid var(--ay-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ay-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ay-shadow-hover);
}
.blog-card-thumb-link {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e2e8f0;
}
.blog-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-thumb-img {
    transform: scale(1.05);
}
.blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5b21b6 0%, #6366f1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}
.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-meta-tags {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--ay-text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px 0;
}
.blog-card-title a {
    color: var(--ay-text);
    text-decoration: none;
}
.blog-card-title a:hover {
    color: var(--ay-primary);
}
.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ay-text-muted);
    margin: 0 0 16px 0;
}
.blog-read-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--ay-primary);
    text-decoration: none;
}

/* 12. FAQ ACCORDION */
.faq-accordion-wrap {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid var(--ay-border);
    border-radius: var(--ay-radius);
    overflow: hidden;
    box-shadow: var(--ay-shadow-sm);
    transition: border-color 0.2s;
}
.faq-item[open] {
    border-color: #cbd5e1;
}
.faq-question {
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ay-text);
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-chevron {
    color: var(--ay-text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--ay-primary);
}
.faq-answer {
    padding: 0 24px 22px 24px;
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}
.faq-answer p:first-child { margin-top: 0; }
.faq-answer p:last-child { margin-bottom: 0; }

/* 13. FOOTER STYLING */
.ayatoon-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding-top: 64px;
    border-top: 1px solid #1e293b;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 54px;
}
.footer-logo-wrap {
    margin-bottom: 16px;
}
.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}
.footer-brand-mission {
    font-size: 13.5px;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 0 20px 0;
}
.footer-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 6px 14px;
    border-radius: var(--ay-radius-full);
    font-size: 12px;
    font-weight: 700;
}
.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}
.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ay-radius-sm);
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    transition: all 0.2s ease;
}
.footer-social-links a:hover {
    color: #ffffff;
    border-color: var(--ay-accent);
    background: var(--ay-primary);
}
.footer-col-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 18px 0;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links-list li a {
    color: #94a3b8;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links-list li a:hover {
    color: #ffffff;
}

.footer-disclaimer-bar {
    background: #020617;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    padding: 18px 0;
}
.disclaimer-content-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}
.disclaimer-shield-icon {
    color: #6366f1;
    flex-shrink: 0;
}
.disclaimer-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

.footer-bottom-bar {
    background: #020617;
    padding: 20px 0;
}
.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}
.bottom-inner a {
    color: #94a3b8;
}
.llms-txt-link {
    font-family: var(--ay-font-mono);
    font-size: 11px;
    background: #1e293b;
    padding: 3px 8px;
    border-radius: 4px;
}

/* 14. SINGLE POST & STATIC PAGE STYLING */
.single-post-container, .page-content-container {
    max-width: 840px;
    margin-top: 24px;
    margin-bottom: 60px;
}
.single-article-card, .static-page-card {
    background: #ffffff;
    border: 1px solid var(--ay-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--ay-shadow);
}
.entry-header, .page-entry-header {
    margin-bottom: 28px;
}
.entry-meta-top {
    display: flex;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ay-text-muted);
    margin-bottom: 12px;
}
.entry-title, .page-entry-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 20px 0;
}
.author-byline-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ay-border);
}
.author-avatar-img {
    border-radius: 50%;
}
.author-meta-info {
    display: flex;
    flex-direction: column;
}
.byline-author-name {
    font-weight: 700;
    font-size: 14px;
}
.byline-author-title {
    font-size: 12px;
    color: var(--ay-text-muted);
}
.entry-featured-media {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}
.featured-hero-img {
    width: 100%;
    height: auto;
}

/* Prose Typography for Content */
.entry-content-prose {
    font-size: 16.5px;
    line-height: 1.75;
    color: #1e293b;
}
.entry-content-prose p {
    margin: 0 0 20px 0;
}
.entry-content-prose h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 36px 0 16px 0;
    letter-spacing: -0.01em;
}
.entry-content-prose h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 12px 0;
}
.entry-content-prose ul, .entry-content-prose ol {
    margin: 0 0 20px 0;
    padding-left: 28px;
}
.entry-content-prose li {
    margin-bottom: 8px;
}
.entry-content-prose blockquote {
    border-left: 4px solid var(--ay-primary);
    background: var(--ay-primary-light);
    margin: 24px 0;
    padding: 16px 24px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.entry-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--ay-border);
}
.tags-label { font-size: 13px; font-weight: 700; color: var(--ay-text-muted); }
.tag-pill a {
    display: inline-block;
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    padding: 4px 12px;
    border-radius: var(--ay-radius-full);
    font-size: 12px;
    color: var(--ay-text);
}

.post-related-discovery-box {
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    border-radius: var(--ay-radius);
    padding: 24px;
    margin-top: 32px;
}
.post-related-discovery-box h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 800;
}
.discovery-shortcuts-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.discovery-shortcuts-pills a {
    display: inline-block;
    background: #ffffff;
    border: 1px solid var(--ay-border);
    padding: 8px 16px;
    border-radius: var(--ay-radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--ay-primary);
}

.post-navigation-split {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--ay-border);
    font-weight: 700;
    font-size: 14px;
}

/* 15. ERROR 404 & SEARCH CARDS */
.error-404-card {
    text-align: center;
    padding: 64px 20px;
    max-width: 680px;
    margin: 40px auto;
}
.error-code-badge {
    font-size: 64px;
    font-weight: 900;
    color: var(--ay-primary);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}
.error-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
}
.error-lead {
    font-size: 16px;
    color: var(--ay-text-muted);
    margin: 0 0 28px 0;
}
.error-search-box form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto 36px auto;
}
.error-search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--ay-border-dark);
    border-radius: var(--ay-radius-sm);
}
.btn-error-search {
    height: 48px;
    padding: 0 22px;
    background: var(--ay-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ay-radius-sm);
    font-weight: 700;
    cursor: pointer;
}
.error-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}
.shortcut-box {
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    padding: 16px;
    border-radius: var(--ay-radius);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    transition: all 0.15s;
}
.shortcut-box:hover {
    border-color: var(--ay-primary);
    background: #ffffff;
}
.shortcut-box strong { color: var(--ay-text); font-size: 15px; }
.shortcut-box span { color: var(--ay-text-muted); font-size: 12px; }

.search-finder-notice-card {
    background: var(--ay-primary-light);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
@media (max-width: 640px) {
    .search-finder-notice-card { flex-direction: column; gap: 14px; text-align: center; }
}

/* 15. GENRES DIRECTORY PAGE */
.genres-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
@media (max-width: 840px) {
    .genres-directory-grid {
        grid-template-columns: 1fr;
    }
}
.genre-directory-card {
    background: #ffffff;
    border: 1px solid var(--ay-border);
    border-radius: var(--ay-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--ay-shadow-sm);
}
.genre-directory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ay-shadow-md);
    border-color: var(--ay-primary);
}
.genre-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}
.genre-icon-big {
    font-size: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    border-radius: var(--ay-radius-sm);
}
.genre-head-info {
    flex: 1;
}
.genre-card-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
}
.genre-card-title a {
    color: var(--ay-text);
    text-decoration: none;
}
.genre-card-title a:hover {
    color: var(--ay-primary);
}
.genre-count-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ay-primary);
    background: var(--ay-primary-light);
    padding: 3px 10px;
    border-radius: 999px;
}
.genre-card-desc {
    font-size: 14.5px;
    color: var(--ay-text-muted);
    line-height: 1.5;
    margin: 0;
}
.genre-card-examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--ay-border);
}
.genre-card-examples .examples-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ay-text-light);
    letter-spacing: 0.04em;
}
.example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.example-chips .chip-item {
    font-size: 12.5px;
    background: var(--ay-surface);
    border: 1px solid var(--ay-border);
    border-radius: 6px;
    padding: 3px 9px;
    color: var(--ay-text);
}
.genre-card-footer {
    margin-top: auto;
    padding-top: 10px;
}
.btn-genre-explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ay-primary);
    text-decoration: none;
    transition: all 0.15s;
}
.btn-genre-explore:hover {
    color: var(--ay-primary-hover);
    transform: translateX(3px);
}
.genre-cta-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: var(--ay-radius-lg);
    padding: 44px 32px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 16px 36px -10px rgba(79, 70, 229, 0.35);
}
.genre-cta-banner h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
}
.genre-cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 24px auto;
}
.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: #ffffff;
    color: #4f46e5;
    font-weight: 800;
    font-size: 15px;
    border-radius: var(--ay-radius);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}
.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
