/* ============================================
   AIabout.me Homepage - Namespaced styles
   ============================================ */

/* HERO SECTION */
section.index_hero {
    background: linear-gradient(135deg, #0040b4 0%, #0052d9 100%);
    color: white;
    padding: 64px 0;
    text-align: center;
}

.index_hero_title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #FF6B35;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.index_hero_subtitle {
    font-size: 28px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* SEARCH SECTION */
.index_search_section {
    margin-bottom: 64px;
}

.index_search_container {
    max-width: 1000px;
    margin: 0 auto;
}

.index_search_title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 36px;
    color: #0040b4;
}

.index_search_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.index_form_group {
    margin-bottom: 16px;
}

.index_form_label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
    color: #1a1a1a;
}

.index_form_input {
    width: 100%;
    padding: 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 18px;
    transition: border-color 0.2s ease;
}

.index_form_input:focus {
    outline: none;
    border-color: #0040b4;
}

.index_map_display {
    display: none;
    background: #d8f3db;
    padding: 16px;
    border: 2px solid #ff8950;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 18px;
}

.index_map_container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    border: 2px solid #E0E0E0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.index_map_caption {
    font-size: 15px;
    color: #666666;
    margin-top: 8px;
    text-align: center;
}

.index_terms_wrapper {
    margin-bottom: 16px;
}

.index_terms_label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.index_terms_checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.index_terms_text {
    font-size: 18px;
    line-height: 1.6;
}

.index_terms_link {
    color: #0040b4;
    text-decoration: underline;
}

.index_btn_primary {
    background: #e85a2a;
    color: white;
    width: 100%;
    padding: 24px;
    font-size: 22px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.index_btn_primary:hover:not(:disabled) {
    background: #e85a2a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(232, 90, 42, 0.3);
}

.index_btn_primary:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.index_form_footer {
    text-align: center;
    color: #099722;
    font-size: 18px;
}

/* MESSAGE ALERTS */
.index_alert_success {
    background: #E8F5E9;
    border-left: 4px solid #28a745;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #2E7D32;
}

.index_alert_error {
    background: #FEE5E5;
    border-left: 4px solid #dc3545;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #C62828;
}

/* STATS CARDS */
.index_stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.index_stat {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 64, 180, 0.08);
    border: 1px solid rgba(0, 64, 180, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.index_stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0040b4 0%, #3c9d1c  100%);
}

.index_stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 64, 180, 0.15);
}

.index_stat_number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    background: #e85a2a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.index_stat_text {
    font-size: 20px;
    color: #1a1a1a;
    line-height: 1.6;
    font-weight: 500;
}

/* AI CARDS */
.index_ai_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 48px 0 80px 0;
}

.index_ai_card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #0c34ede3;
    position: relative;
    overflow: hidden;
}

.index_ai_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0040b4 0%, #e85a2a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.index_ai_card:hover::before {
    opacity: 0.05;
}

.index_ai_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 64, 180, 0.15);
    border-color: #0040b4;
}

.index_ai_card > * {
    position: relative;
    z-index: 1;
}

.index_ai_emoji {
    font-size: 48px;
    margin-bottom: 16px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.index_ai_card:hover .index_ai_emoji {
    filter: grayscale(0);
}

.index_ai_name {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
}

/* SECTIONS WOW */
.index_sections_wow {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 32px 0;
}

.index_sections_title {
    font-size: 22px;
    color: #666666;
    margin-bottom: 24px;
    text-align: center;
}

.index_sections_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.index_section_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #0040b4;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.index_section_item:hover {
    transform: translateX(4px);
    border-left-color: #e85a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.index_section_emoji {
    font-size: 24px;
    flex-shrink: 0;
}

/* HOW IT WORKS */
.index_steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin: 48px 0;
}

.index_step {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 64, 180, 0.08);
    transition: all 0.3s ease;
}

.index_step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 64, 180, 0.15);
}

.index_step_number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #0040b4;
    color: white;
    font-size: 36px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 64, 180, 0.3);
}

.index_step_title {
    font-size: 24px;
    margin-bottom: 16px;
    color: #0040b4;
}

.index_step_text {
    font-size: 18px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* TESTIMONIALS */
.index_testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.index_testimonial {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-left: 4px solid #0040b4;
    transition: all 0.3s ease;
}

.index_testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 64, 180, 0.12);
}

.index_testimonial_quote {
    font-size: 18px;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.6;
}

.index_testimonial_author {
    font-size: 15px;
    color: #666666;
    font-weight: 500;
}

/* WHY FREE */
.index_why_free_box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 64, 180, 0.08);
    border-top: 4px solid #0040b4;
    text-align: center;
}

.index_why_free_title {
    font-size: 28px;
    color: #30c100 ;
    margin-bottom: 24px;
}

.index_why_free_text {
    font-size: 20px;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.index_why_free_highlight {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #0040b4 0%, #3c9d1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* RESULT BOX */
.index_result {
    background: linear-gradient(135deg, #0040b4 0%, #3c9d1c 100%);
    color: white;
    padding: 48px;
    border-radius: 16px;
    max-width: 800px;
    margin: 32px auto;
    box-shadow: 0 10px 40px rgba(0, 64, 180, 0.3);
}

.index_result_text {
    margin: 0;
    font-size: 22px;
    line-height: 1.6;
    color: white;
}

/* REALITY CHECK */
.index_reality_check {
    max-width: 800px;
    margin: 32px auto;
    padding: 32px;
    background: #FFF3E0;
    border-left: 4px solid #FFA726;
    border-radius: 12px;
}

.index_reality_check_text {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    color: #1a1a1a;
}

/* SECTION TITLES */
.index_section_title {
    text-align: center;
    margin-bottom: 48px;
    font-size: 36px;
    font-weight: 700;
    color: #0040b4;
}

.index_section_intro {
    text-align: center;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
    color: #0040b4;
}

.index_section_subtitle {
    text-align: center;
    margin-bottom: 32px;
    font-size: 18px;
    color: #666666;
}

/* DIVIDER */
.index_divider {
    border: none;
    border-top: 1px solid #E0E0E0;
    margin: 64px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .index_hero_title {
        font-size: 36px;
    }
    
    .index_hero_subtitle {
        font-size: 20px;
    }
    
    .index_search_grid {
        grid-template-columns: 1fr;
    }
    
    .index_stats,
    .index_ai_grid,
    .index_steps,
    .index_testimonials,
    .index_sections_list {
        grid-template-columns: 1fr;
    }
}