/* ============================================
   PREMIUM.CSS - Dark Section Styles
   ============================================ */

/* Dark Section Base */
.ep-section--dark {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.ep-section--premium {
    padding: var(--space-20) 0;
}

/* Simple Background Pattern */
.ep-premium-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.5;
}

/* Subtle Grid Pattern */
.ep-premium-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Glass Card Effect */
.ep-card--glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ep-card--glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ep-card--glass:hover::before {
    opacity: 0.25;
    transform: scale(1.05);
}

.ep-card--glass:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(12, 163, 110, 0.3);
}

/* Background images for export market cards */
.ep-card--bg-us::before {
    background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=800&q=80');
}

.ep-card--bg-eu::before {
    background-image: url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=800&q=80');
}

.ep-card--bg-mena::before {
    background-image: url('https://images.unsplash.com/photo-1497440001374-f26997328c1b?w=800&q=80');
}

/* Background images for why section cards */
.ep-card--bg-quality::before {
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&q=80');
}

.ep-card--bg-engineering::before {
    background-image: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?w=800&q=80');
}

.ep-card--bg-support::before {
    background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=800&q=80');
}

/* Background images for sustainability strategy cards */
.ep-card--bg-environment::before {
    background-image: url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?w=800&q=80');
}

.ep-card--bg-social::before {
    background-image: url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=800&q=80');
}

.ep-card--bg-circular::before {
    background-image: url('https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?w=800&q=80');
}

/* Card Hover Lift Effect */
.ep-card--hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ep-card--hover-lift:hover {
    transform: translateY(-8px);
}


/* Card Icons for Dark Theme */
.ep-card__icon--solar {
    background: rgba(12, 163, 110, 0.25);
    border: 2px solid rgba(12, 163, 110, 0.6);
}

.ep-card__icon--eco {
    background: rgba(16, 185, 129, 0.25);
    border: 2px solid rgba(16, 185, 129, 0.6);
}

.ep-card--glass .ep-card__icon i {
    color: #0CA36E;
    font-size: var(--text-3xl);
}

/* Text Colors for Dark Section */
.ep-section--dark .text-white {
    color: #ffffff;
}

.ep-section--dark .text-gray-300 {
    color: rgba(209, 213, 219, 0.9);
}

/* Utility Classes */
.text-gray-300 {
    color: rgb(209, 213, 219);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ep-section--premium {
        padding: var(--space-16) 0;
    }

    .ep-premium-grid {
        background-size: 40px 40px;
    }

    .ep-card--hover-lift:hover {
        transform: translateY(-4px);
    }
}

/* Safari Fallback for backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .ep-card--glass {
        background: rgba(30, 41, 59, 0.9);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .ep-card--hover-lift,
    .ep-card--glass {
        transition: none;
    }

    .ep-card--hover-lift:hover {
        transform: none;
    }
}
