/* Home Page Styling */

/* Dark Mode Support */
[data-bs-theme="dark"] section {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .card {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

/* Loading Animation with GIF */
.loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-container.active {
    display: flex;
}

.loading-gif {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section Styling */
.hero-section {
    background: linear-gradient(145deg, #A8D8F0 0%, #6BA3D0 40%, #FF9EC5 70%, #FFB3D1 100%);
    color: white;
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(107, 163, 208, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 480px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-button {
    border-radius: 999px;
    padding: 18px 50px;
    font-size: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.hero-button.btn-light {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-button.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero-button.btn-outline-light {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-button.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* User Dashboard Section */
.dashboard-welcome {
    background: linear-gradient(135deg, #71b2e2 0%, #a3d1f0 100%);
    color: white;
    padding: 40px 24px;
    margin-bottom: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(113, 178, 226, 0.2);
}

.dashboard-welcome h2 {
    font-size: 32px;
}

.dashboard-welcome p {
    font-size: 16px;
}

/* Section Headings */
.section-heading {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

/* How It Works Section */
.how-it-works-step {
    text-align: center;
}

.how-it-works-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #a3d1f0 0%, #71b2e2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.how-it-works-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.how-it-works-text {
    line-height: 1.7;
    font-size: 15px;
}

/* Blog Post Cards */
.blog-card {
    border-radius: 12px;
    border: 1px solid rgba(113, 178, 226, 0.2);
    transition: transform 0.3s ease;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #3D3766;
}

.blog-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-size: 11px;
    font-weight: 600;
    color: #71b2e2;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.blog-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-meta {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 50px 24px;
    background: linear-gradient(135deg, #A8D8F0 0%, #6BA3D0 50%, #FF9EC5 100%);
    color: white;
    text-align: center;
    border-radius: 16px;
    margin: 40px 20px;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

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

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-button {
        padding: 12px 32px;
        font-size: 16px;
    }

    .section-heading {
        font-size: 26px;
    }

    .dashboard-welcome h2 {
        font-size: 24px;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .how-it-works-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}
