﻿/* === HOMEPAGE STYLES === */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #743796 0%, #5A2C7A 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Ensure hero text ALWAYS stays white on purple background */
.hero-section,
.hero-section * {
    color: white !important;
}

.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-section span {
    color: white !important;
}

.hero-content,
.hero-content * {
    color: white !important;
}

/* Exception for buttons - default state has white text */
.hero-section .hero-btn-primary,
.hero-section .hero-btn-primary *,
.hero-section .hero-btn-secondary,
.hero-section .hero-btn-secondary * {
    color: white !important;
}

/* On hover, buttons with white background get purple text */
.hero-section .hero-btn-primary:hover,
.hero-section .hero-btn-primary:hover *,
.hero-section .hero-btn-secondary:hover,
.hero-section .hero-btn-secondary:hover * {
    color: #743796 !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.hero-btn-primary {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}

.hero-btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #743796 !important;
}

.hero-btn-secondary {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}

.hero-btn-secondary:hover {
    background: white;
    color: #743796 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #743796 0%, #5A2C7A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white !important;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-description {
    color: var(--subtle-text-color);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    /* Use the same background as the page */
    background: var(--background-color);
}

/* Ensure section title uses theme colors */
.how-it-works h2 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1rem;
}

.how-it-works p {
    color: var(--subtle-text-color);
    text-align: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #743796;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.step-description {
    color: var(--subtle-text-color);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #743796 0%, #5A2C7A 100%);
    color: white !important;
    padding: 60px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}

/* CTA section text fix */
.cta-section .cta-title,
.cta-section .cta-subtitle,
.cta-section * {
    color: white !important;
}

.cta-section .hero-btn-primary {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}

.cta-section .hero-btn-primary:hover {
    background: white;
    color: #743796 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Role Selection Modal */
.role-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.role-modal-content {
    background-color: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    padding: 3rem;
    position: relative;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.role-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--subtle-text-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.role-modal-close:hover {
    color: var(--text-color);
}

.role-modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.role-modal-subtitle {
    color: var(--subtle-text-color);
    margin-bottom: 2rem;
}

.role-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-option {
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.role-option:hover {
    border-color: #743796;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.role-option.selected {
    border-color: #743796;
    background: rgba(116, 55, 150, 0.05);
}

.role-option-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-option-description {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.role-continue-btn {
    background: linear-gradient(135deg, #743796 0%, #5A2C7A 100%);
    color: white !important;
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.role-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(116, 55, 150, 0.3);
}

.role-continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
    }

    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Ensure proper theming for homepage elements */
.step-number {
    background: #743796;
    color: white !important;
}

.step-title {
    color: var(--text-color);
}

.step-description {
    color: var(--subtle-text-color);
}

/* Feature cards should respect theme */
.feature-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

.feature-title {
    color: var(--text-color);
}

.feature-description {
    color: var(--subtle-text-color);
}