/**
 * Enduring Word AI Search - Frontend Styles
 * v1.3.2 - Added search type tabs (Commentary/Videos) and YouTube video results styling
 */

/* =================================================================
   ENDURING WORD BRAND STYLES
   ================================================================= */

/* Google Fonts - loaded conditionally to avoid conflicts with theme */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Karla:wght@400;500;600&family=Merriweather:wght@300;400&display=swap');

:root {
    /* Brand Colors */
    --ew-primary: #014161;
    --ew-blue: #029CE9;
    --ew-cyan: #02E9C3;
    --ew-orange: #E94F02;
    
    /* Backgrounds */
    --ew-bg-cream: #FFFDEC;
    --ew-bg-light-cream: #FEFCF2;
    --ew-bg-white: #FFFFFF;
    --ew-bg-light-gray: #F7F7F7;
    --ew-bg-lighter-gray: #FAFBFC;
    --ew-bg-teal-light: #EBFFFC;
    
    /* Text Colors */
    --ew-text-dark: #000000;
    --ew-text-darker: #000d13;
    --ew-text-gray: #404A4E;
    --ew-text-light: #6B7280;
    
    /* Error */
    --ew-error: #DC2626;
    --ew-error-bg: #FEF2F2;
    --ew-error-text: #991B1B;
    
    /* Typography */
    --font-header: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-content: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-callout: 'Merriweather', Georgia, serif;
}

/* Container */
.ew-ai-search-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--font-content);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ew-text-gray);
}

/* Header */
.ew-search-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.ew-search-header h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--ew-text-darker);
    letter-spacing: -0.5px;
}

.ew-search-header p {
    font-family: var(--font-content);
    font-size: 1.15em;
    color: var(--ew-text-gray);
    font-weight: 400;
    margin: 0;
}

/* Search Card Container */
/* v2.2.0: flattened — dropped the encapsulating box-shadow so the search
   box sits flush on the page (no card border/elevation). */
.ew-search-card {
    background: var(--ew-bg-white);
    padding: 35px;
    margin-bottom: 40px;
}

/* Search Box */
.ew-search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ew-search-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px; /* Prevents iOS zoom */
    font-family: var(--font-content);
    border: 2px solid var(--ew-bg-light-gray);
    border-radius: 4px;
    transition: all 0.2s ease;
    background: var(--ew-bg-white);
    color: var(--ew-text-darker);
    outline: none;
}

.ew-search-input:focus {
    border-color: var(--ew-blue);
    box-shadow: 0 0 0 3px rgba(2, 156, 233, 0.1);
}

.ew-search-input::placeholder {
    color: #9CA3AF;
}

.ew-search-button {
    padding: 16px 40px;
    font-size: 14px;
    font-family: var(--font-content);
    font-weight: 600;
    background: var(--ew-blue);
    color: var(--ew-bg-white);
    border: none;
    border-radius: 3px; /* v2.2.0: match site button radius */
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px; /* v2.2.0: match site button tracking */
    text-transform: uppercase; /* v2.2.0: "SEARCH" — matches EW button convention */
    min-width: 120px;
}

/* v2.2.0: hover now mirrors the site's standard button (e.g. "VIEW THE
   COMMENTARY") — blue → EW cyan, white text → darkest text, soft drop
   shadow, no lift. Replaces the old darken + blue-glow halo. */
.ew-search-button:hover {
    background: var(--ew-cyan);
    color: var(--ew-text-darker);
    box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.1);
}

.ew-search-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Search Hint */
.ew-search-hint {
    text-align: center;
    font-family: var(--font-content);
    font-size: 14px;
    color: var(--ew-text-light);
    margin-top: 12px;
    margin-bottom: 0;
}

.ew-hint-example {
    color: var(--ew-blue);
    font-weight: 500;
}

/* Deep Search footer bar (v2.2.4) — mirrors the header modal footer:
   "Try:" hint on the left, "powered by Nomion AI" on the right. */
.ew-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 20px;
    padding: 14px 20px;
    background: var(--ew-bg-lighter-gray);
    border-top: 1px solid var(--ew-bg-light-gray);
    border-radius: 0 0 8px 8px;
    font-family: var(--font-content);
    font-size: 14px;
    color: var(--ew-text-light);
}

.ew-search-footer .ew-hint-example {
    color: var(--ew-blue);
    font-weight: 600;
}

.ew-search-footer-credit a {
    color: var(--ew-blue);
    text-decoration: none;
    font-weight: 600;
}

.ew-search-footer-credit a:hover,
.ew-search-footer-credit a:focus-visible {
    text-decoration: underline;
}

/* Loading State */
.ew-search-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--ew-text-light);
    font-size: 16px;
    font-family: var(--font-content);
}

.ew-search-loading span {
    display: block;
}

.ew-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid var(--ew-bg-light-gray);
    border-top-color: var(--ew-blue);
    border-radius: 50%;
    animation: ew-spin 0.8s linear infinite;
}

@keyframes ew-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.ew-search-error {
    background: var(--ew-error-bg);
    border-left: 4px solid var(--ew-error);
    color: var(--ew-error-text);
    padding: 20px 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-family: var(--font-content);
}

.ew-error-message {
    flex: 1;
    font-weight: 500;
}

.ew-retry-button {
    background: var(--ew-error);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-content);
    transition: all 0.2s ease;
}

.ew-retry-button:hover {
    background: #b91c1c;
}

/* Results */
.ew-results-count {
    font-family: var(--font-content);
    font-size: 1.1em;
    color: var(--ew-text-dark);
    margin-bottom: 25px;
    font-weight: 500;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ew-bg-light-gray);
}

/* Enhanced No Results State */
.ew-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--ew-text-gray);
    font-family: var(--font-content);
    background: var(--ew-bg-lighter-gray);
}

.ew-no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ew-no-results h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--ew-text-dark);
}

.ew-no-results-tips {
    color: var(--ew-text-light);
    margin: 0 0 24px 0;
    font-size: 16px;
}

.ew-suggestions {
    background: var(--ew-bg-white);
    border-radius: 8px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ew-suggestions-label {
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--ew-text-dark);
}

.ew-example-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ew-example-search {
    display: inline-block;
    background: var(--ew-bg-teal-light);
    border: none;
    color: var(--ew-primary);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ew-example-search:hover {
    background: var(--ew-cyan);
    color: var(--ew-text-darker);
    transform: translateY(-1px);
}

/* Result Card */
.ew-result {
    background: var(--ew-bg-white);
    border-left: 4px solid var(--ew-primary);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.ew-result:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: var(--ew-blue);
}

.ew-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ew-result-reference {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.4em;
    color: var(--ew-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ew-result-reference:hover {
    color: var(--ew-blue);
}

/* Testament Badges - Updated for brand */
.ew-testament-badge {
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-content);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ew-testament-ot {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: var(--ew-orange);
    border: 1px solid rgba(233, 79, 2, 0.2);
}

.ew-testament-nt {
    background: var(--ew-bg-teal-light);
    color: var(--ew-primary);
    border: 1px solid rgba(2, 233, 195, 0.3);
}

.ew-result-topic {
    font-family: var(--font-callout);
    font-weight: 300;
    font-style: italic;
    color: var(--ew-text-gray);
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
}

.ew-result-text {
    font-family: var(--font-content);
    color: var(--ew-text-gray);
    line-height: 1.7;
    margin: 0 0 18px 0;
    font-size: 16px;
}

.ew-result-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-content);
    color: var(--ew-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.ew-result-link:hover {
    color: #0288d1;
    transform: translateX(3px);
}

.ew-result-link::after {
    content: " →";
    margin-left: 5px;
    transition: margin-left 0.2s ease;
}

.ew-result-link:hover::after {
    margin-left: 8px;
}

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ew-ai-search-container {
        padding: 15px;
    }

    .ew-search-header {
        margin-bottom: 30px;
        padding-top: 10px;
    }

    .ew-search-header h1 {
        font-size: 1.8em;
    }

    .ew-search-header p {
        font-size: 1em;
    }

    .ew-search-card {
        padding: 20px;
    }

    .ew-search-box {
        flex-direction: column;
        gap: 10px;
    }

    .ew-search-button {
        width: 100%;
        padding: 14px 20px;
    }

    .ew-result {
        padding: 20px;
    }

    .ew-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ew-result-reference {
        font-size: 1.2em;
    }
    
    .ew-search-error {
        flex-direction: column;
        text-align: center;
    }
    
    .ew-retry-button {
        width: 100%;
    }
    
    .ew-no-results {
        padding: 50px 20px;
    }
    
    .ew-suggestions {
        padding: 20px;
    }
    
    .ew-example-search {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    /* Filters - Mobile */
    .ew-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .ew-filter-pills {
        flex-wrap: wrap;
    }
    
    .ew-filter-pill {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .ew-book-select {
        width: 100%;
    }
    
    /* Summary - Mobile */
    .ew-ai-summary {
        margin-bottom: 20px;
    }
    
    .ew-summary-content {
        padding: 20px;
    }
}

/* =================================================================
   FILTERS
   ================================================================= */

.ew-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--ew-bg-light-gray);
}

.ew-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ew-filter-label {
    font-family: var(--font-content);
    font-size: 14px;
    font-weight: 600;
    color: var(--ew-text-gray);
}

/* Testament Filter Pills */
.ew-filter-pills {
    display: flex;
    gap: 6px;
}

.ew-filter-pill {
    padding: 8px 16px;
    font-family: var(--font-content);
    font-size: 14px;
    font-weight: 500;
    color: var(--ew-text-gray);
    background: var(--ew-bg-light-gray);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ew-filter-pill:hover {
    background: rgba(2, 156, 233, 0.1);
    color: var(--ew-blue);
    border-color: var(--ew-blue);
}

.ew-filter-pill.active {
    background: var(--ew-blue);
    color: white;
    border-color: var(--ew-blue);
}

.ew-filter-pill:focus {
    outline: 2px solid var(--ew-blue);
    outline-offset: 2px;
}

/* Book Filter Dropdown */
.ew-book-select {
    padding: 8px 32px 8px 12px;
    font-family: var(--font-content);
    font-size: 14px;
    color: var(--ew-text-gray);
    background: var(--ew-bg-white);
    border: 2px solid var(--ew-bg-light-gray);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 150px;
}

.ew-book-select:hover {
    border-color: var(--ew-blue);
}

.ew-book-select:focus {
    outline: 2px solid var(--ew-blue);
    outline-offset: 2px;
    border-color: var(--ew-blue);
}

/* =================================================================
   AI SUMMARY
   ================================================================= */

.ew-ai-summary {
    margin-bottom: 30px;
}

.ew-summary-content {
    background: linear-gradient(135deg, var(--ew-bg-teal-light) 0%, var(--ew-bg-light-cream) 100%);
    border-left: 5px solid var(--ew-cyan);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(2, 233, 195, 0.15);
}

.ew-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ew-summary-icon {
    font-size: 24px;
}

.ew-summary-title {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.2em;
    color: var(--ew-primary);
}

.ew-summary-text {
    font-family: var(--font-content);
    font-size: 16px;
    line-height: 1.8;
    color: var(--ew-text-gray);
    margin-bottom: 20px;
}

.ew-summary-sources {
    font-family: var(--font-content);
    font-size: 14px;
    color: var(--ew-text-light);
    padding-top: 15px;
    border-top: 1px solid rgba(2, 233, 195, 0.3);
}

.ew-summary-sources-label {
    color: var(--ew-text-gray);
    font-weight: 600;
}

/* v2.0.0 — each source is a deep-link into the commentary at the
   right #section-N anchor. Subtle dotted underline (matches admin
   UI Slice 13 styling). */
.ew-summary-source-link {
    color: var(--ew-primary-blue, #029ce9);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.ew-summary-source-link:hover,
.ew-summary-source-link:focus {
    border-bottom-style: solid;
    outline: none;
}

.ew-summary-source-sep {
    color: var(--ew-text-light);
    margin: 0 1px;
}

.ew-summary-disclaimer {
    font-family: var(--font-content);
    font-size: 13px;
    color: var(--ew-text-light);
    font-style: italic;
    margin-top: 10px;
}

/* v2.4.0 — "not directly covered" note. Deliberately muted/neutral (no teal
   answer gradient, no cyan accent) so it never reads as an authoritative
   summary of something Pastor David said. */
.ew-summary-content.ew-summary-notcovered {
    background: #f6f7f8;
    border-left: 5px solid #b8bdc4;
    box-shadow: none;
}

.ew-summary-notcovered .ew-summary-title {
    color: var(--ew-text-gray);
    font-size: 1.05em;
}

.ew-summary-notcovered .ew-summary-text {
    margin-bottom: 0;
}

/* Summary Loading State */
.ew-summary-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 30px;
    background: linear-gradient(135deg, var(--ew-bg-teal-light) 0%, var(--ew-bg-light-cream) 100%);
    border-left: 5px solid var(--ew-cyan);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(2, 233, 195, 0.15);
    color: var(--ew-text-gray);
    font-family: var(--font-content);
}

.ew-spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid var(--ew-bg-light-gray);
    border-top-color: var(--ew-cyan);
    border-radius: 50%;
    animation: ew-spin 0.8s linear infinite;
}

/* =================================================================
   LOAD MORE BUTTON
   ================================================================= */

.ew-load-more-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

.ew-load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 50px;
    font-family: var(--font-content);
    font-size: 14px;
    font-weight: 600;
    color: var(--ew-bg-white);
    background: var(--ew-blue);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.ew-load-more-button:hover {
    background: #0288d1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 156, 233, 0.3);
}

.ew-load-more-button:disabled {
    background: #ccc;
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ew-load-more-button .ew-spinner-small {
    width: 16px;
    height: 16px;
    border-width: 2px;
    border-color: rgba(255,255,255,0.3);
    border-top-color: white;
}

/* =================================================================
   RELATED VIDEOS SECTION  (v2.0.2: 3-column card grid + More-button
   reveal, mirroring the ew.nomion.ai admin UI exactly)
   ================================================================= */

.ew-youtube-section {
    background: var(--ew-bg-white);
    border-left: 5px solid var(--ew-red, #ff0000);
    padding: 24px 28px;
    margin: 24px 0 32px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ew-youtube-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.2em;
    color: var(--ew-primary);
}

.ew-youtube-header::before {
    content: '';
    display: inline-block;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    /* YouTube glyph in #FF0000 — matches admin UI */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF0000'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.ew-video-row {
    display: none;
}

.ew-video-row.visible {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

.ew-video-card {
    background: var(--ew-bg-lighter-gray, #f7f7f7);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.ew-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ew-video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}

.ew-video-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ew-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ew-video-card:hover .ew-video-play-icon {
    opacity: 1;
}

.ew-video-play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 5px;
}

.ew-video-timestamp {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    font-size: 12px;
    font-family: var(--font-content);
    border-radius: 3px;
    line-height: 1.2;
}

.ew-video-info {
    padding: 14px 16px;
}

.ew-video-title {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 14px;
    color: var(--ew-text-darker, var(--ew-primary));
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ew-video-score {
    font-family: var(--font-content);
    font-size: 12px;
    color: var(--ew-blue);
    font-weight: 500;
    margin: 0;
}

.ew-youtube-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.ew-more-videos-btn {
    background: none;
    border: none;
    color: var(--ew-red, #ff0000);
    font-family: var(--font-content);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    transition: text-decoration 0.2s ease;
}

.ew-more-videos-btn:hover {
    text-decoration: underline;
}

.ew-more-videos-btn.hidden {
    display: none;
}

/* Related Videos — responsive */
@media (max-width: 900px) {
    .ew-video-row.visible {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ew-youtube-section {
        padding: 18px 16px;
    }
    .ew-video-row.visible {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   FRONT PAGE SEARCH VARIANT
   ================================================================= */

.ew-fp-search {
    max-width: 700px;
    padding: 0;
}

.ew-fp-header {
    text-align: center;
    margin-bottom: 20px;
}

.ew-fp-header h2 {
    font-family: var(--font-header);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--ew-primary);
    margin: 0 0 10px 0;
}

.ew-fp-header p {
    font-family: var(--font-content);
    font-size: 1em;
    color: var(--ew-text-gray);
    margin: 0;
}

.ew-fp-card {
    background: var(--ew-bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ew-fp-search .ew-search-hint {
    margin-bottom: 0;
    padding-bottom: 0;
}
