/**
 * DOA Home Page Styles
 * Custom styles for the directory home page
 */

/* ========================================
   HERO SECTION
   ======================================== */

.doa-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.doa-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.doa-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.doa-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.doa-hero-subtitle {
    font-size: 20px;
    margin: 0 0 40px;
    color: #fff;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.5;
}

/* Hero Search Form Styling */
.doa-hero-search {
    margin: 40px 0 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.doa-hero-search .doa-search-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Single Row Search Layout */
.doa-hero-search .search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.doa-hero-search .search-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1.5;
}

.doa-hero-search .search-field {
    flex: 1;
    min-width: 150px;
}

/* Location field */
.doa-hero-search .search-field-location {
    position: relative;
}

.doa-hero-search .search-field input,
.doa-hero-search .search-field select {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

/* Location input */
.doa-hero-search .search-field-location input {
    padding-right: 15px;
}

.doa-hero-search .search-field input:focus,
.doa-hero-search .search-field select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Use My Location Button - Text Style Below Input */
.doa-hero-search .use-location-btn-text {
    background: transparent;
    border: none;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.doa-hero-search .use-location-btn-text:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.doa-hero-search .use-location-btn-text i {
    font-size: 14px;
}

/* Inline Search Button */
.search-submit-inline {
    height: 52px;
    padding: 0 30px;
    background: linear-gradient(135deg, #3a9d82 0%, #2f7f6e 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-submit-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 157, 130, 0.4);
}

/* Hero Footer Link */
.doa-hero-footer {
    margin-top: 30px;
}

.doa-hero-footer p {
    font-size: 16px;
    color: #fff;
    opacity: 0.9;
    margin: 0;
}

.hero-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s;
}

.hero-link:hover {
    opacity: 0.8;
    color: #fff;
}

/* ========================================
   BUTTONS
   ======================================== */

.doa-btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.doa-btn-primary {
    background: #3a9d82;
    color: #fff;
    box-shadow: 0 4px 15px rgba(58, 157, 130, 0.3);
}

.doa-btn-primary:hover {
    background: #2f7f6e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 157, 130, 0.4);
}

.doa-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.doa-btn-secondary:hover {
    background: #fff;
    color: #667eea;
}

.doa-btn-light {
    background: #fff;
    color: #667eea;
}

.doa-btn-light:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

.doa-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.doa-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   CONTAINER & SECTIONS
   ======================================== */

.doa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.doa-home-wrapper section {
    padding: 50px 0;
}

.doa-home-wrapper section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doa-home-wrapper .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin: 0 0 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SEARCH RESULTS SECTION
   ======================================== */

.doa-search-results-section {
    background: #f9f9f9;
    padding: 60px 0;
    min-height: 200px;
}

.doa-search-results-section .doa-container {
    max-width: 1200px;
}

#doa-search-results {
    margin-top: 20px;
}

/* Results will be styled by the directory plugin's CSS */

/* ========================================
   FEATURED DIETITIANS SECTION
   ======================================== */

.doa-featured-dietitians {
    background: #fff;
}

.featured-dietitians-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.featured-dietitian-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-dietitian-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dietitian-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dietitian-photo {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.dietitian-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 64px;
}

.featured-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.featured-badge i {
    font-size: 10px;
}

.dietitian-info {
    padding: 20px;
}

.dietitian-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #333;
}

.dietitian-info .credentials {
    font-size: 13px;
    color: #3a9d82;
    font-weight: 600;
    margin: 0 0 8px;
}

.dietitian-info .location {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dietitian-info .location i {
    color: #3a9d82;
    font-size: 12px;
}

.specialties-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.specialty-tag {
    background: #f0f0f0;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.view-all-link {
    text-align: center;
    margin-top: 40px;
}

.no-featured {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.doa-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.doa-step {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.doa-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doa-step h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #3a9d82;
}

.doa-step p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   SPECIALTIES SECTION
   ======================================== */

.doa-specialties {
    background: #fff;
}

.doa-specialty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.specialty-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.specialty-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.specialty-card p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* ========================================
   STATS SECTION
   ======================================== */

.doa-stats {
    background: linear-gradient(135deg, #3a9d82 0%, #2f7f6e 100%);
    color: #fff;
}

.doa-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */

.doa-why-choose {
    background: #f9f9f9;
}

.doa-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #667eea;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   CTA DIETITIANS SECTION
   ======================================== */

.doa-cta-dietitians {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 80px;
}

.cta-content h2 {
    color: #fff !important;
    -webkit-text-fill-color: white !important;
    font-size: 42px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   SMOOTH SCROLL
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .featured-dietitians-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .doa-specialty-grid,
    .doa-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doa-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .doa-hero {
        min-height: 500px;
        padding: 60px 20px;
    }

    .doa-hero-title {
        font-size: 32px;
    }

    .doa-hero-subtitle {
        font-size: 16px;
    }

    /* Stack search form on mobile */
    .doa-hero-search .search-row {
        flex-direction: column;
        gap: 10px;
    }

    .doa-hero-search .search-field {
        min-width: 100%;
    }

    .search-submit-inline {
        width: 100%;
    }

    .doa-home-wrapper section {
        padding: 60px 0;
    }

    .doa-home-wrapper section h2 {
        font-size: 32px;
    }

    .featured-dietitians-carousel,
    .doa-steps-grid,
    .doa-specialty-grid,
    .doa-stats-grid,
    .doa-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .doa-hero-title {
        font-size: 32px;
    }

    .doa-hero-subtitle {
        font-size: 16px;
    }

    .doa-btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    .doa-home-wrapper section h2 {
        font-size: 28px;
    }
}
