/**
 * 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);
}

.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-form-wrapper form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-form-wrapper input[type="search"] {
    flex: 1;
    padding: 0.875rem 1.75rem;
    border: 2px solid rgba(232, 232, 232, 0.6);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form-wrapper input[type="search"]:focus {
    outline: none;
    border-color: #C2B97F;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(194, 185, 127, 0.3);
}

.search-form-wrapper button[type="submit"] {
    padding: 0.875rem 1.75rem;
    background: #C2B97F;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(194, 185, 127, 0.3);
    white-space: nowrap;
}

.search-form-wrapper button[type="submit"]:hover {
    background: #a99b65;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(194, 185, 127, 0.4);
}

/* WordPress default search form classes */
.quick-search-section .search-form,
.quick-search-section form[role="search"] {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    justify-content: center !important;
}

.quick-search-section .search-field,
.quick-search-section input[type="search"],
.quick-search-section input.search-field {
    flex: 1 !important;
    padding: 0.875rem 1.75rem !important;
    border: 2px solid rgba(232, 232, 232, 0.6) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.quick-search-section .search-field:focus,
.quick-search-section input[type="search"]:focus {
    outline: none !important;
    border-color: #C2B97F !important;
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 2px 6px rgba(194, 185, 127, 0.3) !important;
}

.quick-search-section .search-submit,
.quick-search-section button[type="submit"],
.quick-search-section input[type="submit"] {
    padding: 0.875rem 1.75rem !important;
    background: #C2B97F !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(194, 185, 127, 0.3) !important;
    white-space: nowrap !important;
    min-width: auto !important;
}

.quick-search-section .search-submit:hover,
.quick-search-section button[type="submit"]:hover,
.quick-search-section input[type="submit"]:hover {
    background: #a99b65 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(194, 185, 127, 0.4) !important;
}

/* Mobile search form stacking */
@media (max-width: 767px) {
    .quick-search-section .search-form,
    .quick-search-section form[role="search"] {
        flex-direction: column !important;
    }

    .quick-search-section .search-submit,
    .quick-search-section button[type="submit"],
    .quick-search-section input[type="submit"] {
        width: 100% !important;
    }
}

/* ============================================================
   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;
    }
}
