/* Custom Bootstrap Theme for Elstra */

:root {
    --bs-primary: #212529;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Management */
.page {
    display: block;
}

.page.d-none {
    display: none !important;
}

/* Navigation Styles */
#mainNavbar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#mainNavbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

#mainNavbar .navbar-brand,
#mainNavbar .nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

#mainNavbar.scrolled .navbar-brand,
#mainNavbar.scrolled .nav-link {
    color: #212529 !important;
}

#mainNavbar .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

#mainNavbar.scrolled .nav-link:hover {
    color: #0d6efd !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

/* Blog Hero */
.blog-hero {
    height: 60vh;
    overflow: hidden;
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

/* Category Filter Buttons */
.category-filter {
    transition: all 0.3s ease;
    border-color: #212529;
    color: #212529;
}

.category-filter:hover {
    background-color: #212529;
    border-color: #212529;
    color: white;
    transform: translateY(-2px);
}

.category-filter.active {
    background-color: #212529;
    border-color: #212529;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 37, 41, 0.3);
}

/* Month Filter */
.month-filter {
    background-color: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.month-filter:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.month-filter.active {
    background-color: #212529;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 37, 41, 0.3);
}

.month-filter.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.month-filter.disabled:hover {
    background-color: #f8f9fa;
    transform: none;
    box-shadow: none;
}

.month-filter .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dc3545;
}

/* Event Cards */
.event-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.event-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .card-img-top {
    transform: scale(1.05);
}

.event-card .wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card .wishlist-btn:hover,
.event-card .wishlist-btn.active {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.event-card .category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(33, 37, 41, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.blog-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Wishlist Styles */
.wishlist-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.wishlist-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: #212529;
    border-color: #212529;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1c1f23;
    border-color: #1c1f23;
}

.btn-outline-primary {
    color: #212529;
    border-color: #212529;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #212529;
    border-color: #212529;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .hero-image {
        background-attachment: scroll;
    }
    
    .month-filter {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .display-1 {
        font-size: 2.5rem;
    }
    
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

.border-radius-lg {
    border-radius: 16px !important;
}

.shadow-lg-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-lg-hover:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}