/* 
   HOME VARIANT 07 - DARK GLASSMORPHISM CONCEPT
   Matches 'Compassionate Modernity' Proposal
*/

/* 1. HERO SECTION - IMMERSIVE OVERLAY */
.hero-concept {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Dark Deep Blue Background as base */
    background-color: var(--color-primary-900);
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Dim the image */
}

/* Vibrant Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(30, 58, 138, 0.9) 0%,
            /* Deep Blue */
            rgba(17, 24, 39, 0.4) 50%,
            /* Transparent Center */
            rgba(16, 185, 129, 0.3) 100%
            /* Subtle Emerald Hint */
        );
    z-index: 1;
}

/* Navbar Override */
.navbar-concept {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent !important;
    padding: 0;
}

/* Full Width White Pill Container */
.white-pill-container {
    background: white;
    border-radius: 12px;
    /* Small radius */
    padding: 10px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    /* Almost full width */
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Sticky State Override */
.navbar-concept.scrolled .white-pill-container {
    width: 100%;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    padding: 8px 30px;
}

.navbar-concept .navbar-nav .nav-link {
    color: var(--color-gray-900) !important;
    /* Dark text on white pill */
    font-weight: var(--font-weight-medium);
    padding: 8px 16px !important;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.navbar-concept .navbar-nav .nav-link:hover {
    color: var(--color-action) !important;
}

/* Ensure logo size fits */
.navbar-brand img {
    max-height: 40px;
}

/* Hero Content */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    /* Space for navbar */
}

.concept-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.concept-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: var(--space-3xl);
    font-weight: 300;
}

/* 2. FLOATING GLASS CARDS (Hero Bottom) */
.hero-glass-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    width: 100%;
    margin-top: var(--space-3xl);
}

.concept-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: var(--space-xl);
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.concept-glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-card-image {
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    position: relative;
}

.glass-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
}

.glass-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: var(--space-md) 0;
    overflow: hidden;
}

.glass-progress-fill {
    height: 100%;
    background: var(--color-success);
    /* Emerald */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    /* Glow */
}

.glass-card-action {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.glass-card-action:hover {
    background: var(--color-action);
    /* Gold */
    color: white;
    border-color: var(--color-action);
}

/* 3. SECTION STYLES (Light Mode below Hero) */
.concept-section {
    padding: var(--space-4xl) 0;
    background: var(--color-gray-50);
}

.concept-section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.concept-section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary-900);
}

/* Newsletter Section - Dark Gradient */
.concept-newsletter {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-800) 100%);
    color: white;
    text-align: center;
}

/* 4. CATEGORIES SECTION (Grid) */
.category-card-concept {
    background: white;
    border-radius: 16px;
    padding: var(--space-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-gray-100);
    height: 100%;
}

.category-card-concept:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-200);
}

.category-icon-wrapper {
    width: 100%;
    height: 120px;
    margin: 0 auto var(--space-md);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.category-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.category-card-concept:hover .category-icon-wrapper {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.category-card-concept:hover .category-icon-wrapper img {
    transform: scale(1.05);
}

/* For icon-only categories (fallback) */
.category-icon-wrapper i {
    font-size: 3rem;
    color: var(--color-primary);
}

.category-card-concept:hover .category-icon-wrapper i {
    color: var(--color-primary);
    transform: scale(1.1);
}

.category-title {
    font-weight: 700;
    color: var(--color-gray-900);
    text-decoration: none;
}

/* 5. RECENT CAUSES (Standard Cards) */
.recent-cause-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recent-cause-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.recent-cause-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.recent-cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recent-cause-card:hover .recent-cause-image img {
    transform: scale(1.05);
}

.recent-cause-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 6. BLOGS SECTION */
.blog-card-concept {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.blog-card-concept:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image-wrapper {
    height: 200px;
    position: relative;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    line-height: 1.1;
}

.blog-date-day {
    font-size: 1.2rem;
    color: var(--color-primary);
    display: block;
}

.blog-date-month {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
}

/* ✅ Hero CTA Buttons Styling */
.hero-cta-buttons {
    margin-top: 2.5rem;
}

.hero-cta-buttons .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-width: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-cta-buttons .btn-outline-light {
    border-color: rgba(255,255,255,0.8);
    color: white;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.hero-cta-buttons .btn-outline-light:hover {
    background: white;
    color: #333;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.hero-cta-buttons .btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    border: none;
    color: #333;
    font-weight: 700;
}

.hero-cta-buttons .btn-warning:hover {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.4);
}

/* ✅ Centered Subtitle Enhancement */
.concept-subtitle.text-center {
    max-width: 600px;
    margin: 0 auto 1rem auto;
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ✅ Hero Content Center Alignment */
.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.concept-title.text-center {
    margin-bottom: 1.5rem;
    max-width: 800px;
}

/* ✅ Featured Causes Section Styling */
.featured-causes-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
}

.featured-cause-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-cause-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.featured-cause-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.featured-cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-cause-card:hover .featured-cause-image img {
    transform: scale(1.05);
}

.featured-cause-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-cause-content .btn {
    margin-top: auto;
}

/* ✅ WORKING Progress Bars for Causes */
.cause-progress-wrapper {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.cause-progress-bar {
    height: 8px;
    background: linear-gradient(109.6deg, rgb(255, 194, 48) 11.2%, rgb(255, 124, 0) 100.2%);
    border-radius: 10px;
    transition: width 0.6s ease;
    display: block;
}

.cause-progress-wrapper-small {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.cause-progress-bar-small {
    height: 6px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 10px;
    transition: width 0.6s ease;
    display: block;
}

.bg-gradient-primary {
    background: linear-gradient(109.6deg, rgb(255, 194, 48) 11.2%, rgb(255, 124, 0) 100.2%);
}

/* ✅ Responsive Button Styling */
@media (max-width: 768px) {
    .hero-cta-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .hero-cta-buttons .btn.mr-3 {
        margin-right: 0 !important;
    }
    
    .concept-subtitle.text-center {
        font-size: 1.1rem;
    }
    
    .hero-content-center {
        min-height: 50vh;
        padding: 20px;
    }
    
    .featured-causes-section {
        padding: 60px 0;
    }
}