/* wwwroot/css/frontend.css
   ================================
   Frontend-specific styles for public pages
   Works with Bootswatch themes and light/dark modes
   ================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-section.hero-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6610f2 100%);
    color: white;
}

.hero-section.hero-gradient .text-body-secondary,
.hero-section.hero-gradient .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    .hero-section .hero-title {
        font-size: 2rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Hero illustration */
.hero-illustration {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

[data-bs-theme="dark"] .hero-illustration {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}


/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-icon.gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6610f2 100%);
    color: white;
}

.feature-icon.gradient-success {
    background: linear-gradient(135deg, var(--bs-success) 0%, #0dcaf0 100%);
    color: white;
}

.feature-icon.gradient-info {
    background: linear-gradient(135deg, var(--bs-info) 0%, var(--bs-primary) 100%);
    color: white;
}

.feature-icon.gradient-warning {
    background: linear-gradient(135deg, var(--bs-warning) 0%, #fd7e14 100%);
    color: white;
}

.feature-icon.gradient-danger {
    background: linear-gradient(135deg, var(--bs-danger) 0%, #6610f2 100%);
    color: white;
}


/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6610f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: var(--bs-tertiary-bg);
    text-align: center;
}

.cta-section .cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section .cta-subtitle {
    font-size: 1.1rem;
    color: var(--bs-secondary-color);
    margin-bottom: 2rem;
}


/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    border: none;
    border-radius: 1rem;
    padding: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}


/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--bs-primary);
    box-shadow: 0 10px 40px rgba(var(--bs-primary-rgb), 0.15);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
}

.pricing-period {
    font-size: 1rem;
    color: var(--bs-secondary-color);
}


/* ============================================
   AUTH PAGES (Login, Register, etc.)
   ============================================ */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .auth-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-card .card-body {
    padding: 3rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--bs-border-color);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-login-btn:hover {
    transform: translateY(-2px);
}


/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    padding: 4rem 0;
}

.about-image {
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.team-member {
    text-align: center;
    padding: 1.5rem;
}

.team-member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up {
        animation: none;
    }
}


/* ============================================
   UTILITY CLASSES
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6610f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6610f2 100%) !important;
}

.shadow-soft {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .shadow-soft {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.25);
}

.rounded-xl {
    border-radius: 1rem !important;
}

.rounded-2xl {
    border-radius: 1.5rem !important;
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-illustration {
        margin-top: 2rem;
        max-height: 300px;
    }
    
    .stats-section .row > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .auth-card .card-body {
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Generic hero gradient for non-hero-section elements */
.hero-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #6610f2 100%) !important;
}
