/* EVC 2027 Theme CSS */

:root {
    --primary-color: #991f39;
    --primary-dark: #7a1a2d;
    --secondary-color: #1f2937;
    --warning-color: #faaf40;
    --light-bg: #f8fafc;
    --text-muted: #6b7280;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-danger {
    color: var(--primary-color) !important;
}

.bg-danger {
    background-color: var(--primary-color) !important;
}

/* Logo Styles */
.navbar-brand img {
    max-height: 70px;
    width: auto;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.min-vh-75 {
    min-height: 75vh;
}

/* Navigation Styles */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--warning-color);
}

.nav-link.active {
    color: var(--warning-color) !important;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 280px;
}

.dropdown-item {
    padding: 8px 20px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Enhanced Riga Dropdown Menu */
.dropdown-menu-riga {
    min-width: 320px;
    padding: 15px 0;
}

.dropdown-menu-riga .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px 5px 20px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dropdown-menu-riga .dropdown-item {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.dropdown-menu-riga .dropdown-item i {
    width: 18px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.dropdown-menu-riga .dropdown-item:hover i,
.dropdown-menu-riga .dropdown-item:focus i {
    color: var(--primary-color);
    transform: translateX(2px);
}

.dropdown-menu-riga .dropdown-divider {
    margin: 10px 15px;
    border-color: rgba(0, 0, 0, 0.1);
}

.dropdown-menu-riga .dropdown-item.active {
    background-color: rgba(153, 31, 57, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.dropdown-menu-riga .dropdown-item.active i {
    color: var(--primary-color);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

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

.card-body {
    padding: 2rem;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #1f2937;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #f39c20;
    border-color: #f39c20;
    color: #1f2937;
}

/* Section Styles */
section {
    position: relative;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* Icon Styles */
.fa-table-tennis {
    color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .navbar-brand img {
        max-height: 55px;
    }
}

/* Custom spacing utilities */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.my-6 {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}

/* Badge styles */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Custom shadows */
.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Link styles */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

/* Alert styles */
.alert-primary {
    background-color: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/* Table styles */
.table-primary {
    background-color: rgba(220, 38, 38, 0.1);
}

/* Progress bar styles */
.progress-bar {
    background-color: var(--primary-color);
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}
