/**
 * Homepage Conversational Design Styles
 *
 * Styles for the adaptive, conversational homepage with path selection.
 *
 * @package FFOA_Custom
 * @since 1.1.0
 */

/* ============================================================
   FULL PAGE BACKGROUND
   ============================================================ */

html {
    background-color: #1a2340 !important;
}

body {
    background-color: #1a2340 !important;
}

body.home {
    background-color: #1a2340 !important;
}

.site {
    background-color: #1a2340 !important;
}

.homepage-conversational {
    background-color: #1a2340 !important;
    background-image: url('../images/Gemini_Generated_Image_m9ub24m9ub24m9ub.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    position: relative;
    min-height: 100vh;
}

/* No overlay */
.homepage-conversational::before {
    display: none !important;
}

.homepage-conversational > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
    position: relative;
    padding: 5rem 0;
    text-align: center;
    background: rgba(34, 46, 81, 0.75) !important;
    color: #ffffff;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 1.125rem;
    font-weight: 700;
    color: #C2B97F;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.hero-mission {
    font-size: 1.25rem;
    font-weight: 400;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-prompt {
    font-size: 1.5rem;
    font-weight: 600;
    color: #C2B97F;
    margin: 2rem 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-cta {
    margin: 2rem 0;
}

.hero-switch {
    font-size: 1rem;
    color: #d0d0d0;
    margin-top: 1.5rem;
}

.switch-path-link {
    color: #C2B97F;
    text-decoration: underline;
    font-weight: 600;
}

.switch-path-link:hover {
    color: #d4c895;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-mission {
        font-size: 1.1rem;
    }

    .hero-prompt {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 3rem 0;
    }
}

/* ============================================================
   PATH SELECTION CARDS
   ============================================================ */

.path-selection-section {
    padding: 4rem 0;
    background: transparent !important;
}

.path-cards {
    display: grid;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 4 cards in a row on wide screens (1200px+) */
@media (min-width: 1200px) {
    .path-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2x2 grid on medium screens (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .path-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single column on mobile (below 768px) */
@media (max-width: 767px) {
    .path-cards {
        grid-template-columns: 1fr;
    }
}

.path-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.path-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(34, 46, 81, 0.25);
    border-color: #C2B97F;
    background: rgba(255, 255, 255, 0.7);
}

.path-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: #C2B97F;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.path-card:hover .path-card-icon {
    transform: scale(1.1);
}

.path-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222E51;
    margin-bottom: 1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.path-card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.path-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #C2B97F;
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(194, 185, 127, 0.3);
    margin-top: auto;
    min-width: 160px;
}

.path-card-button:hover {
    background: #a99b65;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(194, 185, 127, 0.4);
}

.button-arrow {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.path-card-button:hover .button-arrow {
    transform: translateX(4px);
}

/* Path-specific card styling */
.path-card-learner {
    border-top: 4px solid #4CAF50;
}

.path-card-helper {
    border-top: 4px solid #2196F3;
}

.path-card-seeker {
    border-top: 4px solid #FF9800;
}

.path-card-player {
    border-top: 4px solid #9C27B0;
}

/* ============================================================
   QUICK SEARCH SECTION
   ============================================================ */

.quick-search-section {
    padding: 3rem 0;
    background: transparent !important;
    text-align: center;
}

.quick-search-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.quick-search-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.quick-search-subtitle {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* AJAX Search Box — matches /resources style */
.quick-search-section .search-box {
    display: flex;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-search-section .search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.0625rem;
    color: #222E51;
    outline: none;
}

.quick-search-section .search-input::placeholder {
    color: #999;
}

.quick-search-section .search-button {
    background: #C2B97F;
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-search-section .search-button:hover {
    background: #a89f6a;
    transform: scale(1.05);
}

/* Search Results */
.quick-search-section .search-results {
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-search-section .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.quick-search-section .results-count {
    font-size: 1rem;
    font-weight: 600;
    color: #222E51;
    text-transform: none;
}

.quick-search-section .clear-search {
    background: none;
    border: none;
    color: #C2B97F;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: none;
}

.quick-search-section .clear-search:hover {
    background: rgba(194, 185, 127, 0.1);
}

.quick-search-section .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.quick-search-section .result-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: left;
}

.quick-search-section .result-card:hover {
    border-color: #C2B97F;
    box-shadow: 0 4px 12px rgba(194, 185, 127, 0.2);
    transform: translateY(-2px);
}

.quick-search-section .result-type {
    display: inline-block;
    background: #C2B97F;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.quick-search-section .result-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: none;
}

.quick-search-section .result-title a {
    color: #222E51;
    text-decoration: none;
}

.quick-search-section .result-title a:hover {
    color: #C2B97F;
}

.quick-search-section .result-title mark {
    background: #fff3cd;
    padding: 0 0.25rem;
}

.quick-search-section .result-link {
    display: inline-block;
    color: #C2B97F;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.quick-search-section .result-link:hover {
    color: #a89f6a;
    text-decoration: underline;
}

/* Search Loading */
.quick-search-section .search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    max-width: 900px;
    margin: 2rem auto 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
}

.quick-search-section .loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(194, 185, 127, 0.2);
    border-top-color: #C2B97F;
    border-radius: 50%;
    animation: hp-spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes hp-spin {
    to { transform: rotate(360deg); }
}

.quick-search-section .search-loading p {
    color: #222E51;
    font-weight: 600;
}

.quick-search-section .no-results,
.quick-search-section .search-error {
    text-align: center;
    padding: 2rem;
    color: #555;
    text-transform: none;
}

.quick-search-section .no-results ul {
    text-align: left;
    max-width: 400px;
    margin: 1rem auto 0;
    list-style-position: inside;
}

.quick-search-section .no-results li {
    margin-bottom: 0.5rem;
}

.quick-search-section .no-results a {
    color: #C2B97F;
    text-decoration: underline;
}

/* ============================================================
   HIGHLIGHTS SECTION
   ============================================================ */

.highlights-section {
    padding: 3rem 0;
    background: transparent !important;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    font-size: 3rem;
    color: #C2B97F;
    margin-bottom: 1rem;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222E51;
    margin-bottom: 0.5rem;
}

.highlight-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ============================================================
   MOBILE OPTIMIZATIONS
   ============================================================ */

@media (max-width: 767px) {
    .path-card {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .path-card-title {
        font-size: 1.25rem;
    }

    .path-card-description {
        font-size: 0.9rem;
    }

    .search-form-wrapper form {
        flex-direction: column;
    }

    .search-form-wrapper button[type="submit"] {
        width: 100%;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
