﻿/* wwwroot/css/homepage.css */

:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --surface-color: #ffffff;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #007bff !important;
}

.navbar .btn-primary {
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; /* Pornesc invizibile */
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

/* Blobs decorative în background */
.bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
}

.blob-1 {
    background: #2563eb;
    top: -100px;
    right: -100px;
}

.blob-2 {
    background: #06b6d4;
    bottom: -50px;
    left: -100px;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

    .hero-title span {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

/* --- Buttons --- */
.btn-modern {
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    border: 2px solid transparent; /* Adăugăm bordură invizibilă la TOATE butoanele */
    min-width: 200px; /* Lățime minimă fixă ca să fie egale vizual */
    display: inline-flex; /* Centrare perfectă pentru iconițe */
    align-items: center;
    justify-content: center;
}

.btn-modern-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

    .btn-modern-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5);
        color: white;
    }

.btn-modern-outline {
    background: white;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

    .btn-modern-outline:hover {
        border-color: #cbd5e1;
        background: #f1f5f9;
        color: #0f172a;
    }

/* --- Dashboard Preview (Glassmorphism) --- */
.hero-image-wrapper {
    position: relative;
    padding: 2rem;
    perspective: 1000px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

/* Fake UI Elements */
.mockup-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    align-items: center;
}

.mockup-logo {
    width: 30px;
    height: 30px;
    background: #2563eb;
    border-radius: 8px;
}

.mockup-user {
    width: 35px;
    height: 35px;
    background: #e2e8f0;
    border-radius: 50%;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mockup-stat {
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

    .mockup-stat h5 {
        font-size: 0.875rem;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
    }

    .mockup-stat .value {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
    }

    .mockup-stat.highlight {
        grid-column: span 2;
        background: var(--primary-gradient);
        color: white;
    }

        .mockup-stat.highlight h5, .mockup-stat.highlight .value {
            color: white;
        }

/* --- Features Section --- */
.features-section {
    padding: 6rem 0;
    background: white;
}

.feature-card-modern {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
}

    .feature-card-modern:hover {
        transform: translateY(-10px);
        box-shadow: var(--card-shadow);
        border-color: transparent;
    }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card-modern:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

/* --- CTA Section --- */
.cta-modern {
    margin: 4rem 0;
    background: var(--text-main);
    border-radius: 30px;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-bg-circle {
    position: absolute;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* --- Responsive adjustments --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        text-align: center;
        padding-top: 3rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-image-wrapper {
        margin-top: 3rem;
    }
}
