/* ===== BRAND COLOR VARIABLES ===== */
:root {
    --primary-red: #c53030;
    --primary-red-hover: #b91c1c;
    --primary-black: #222328;
    --primary-yellow: #f4ce2f;
    --primary-green: #009443;
    --primary-green-hover: #00823a;
    
    /* Enhanced color palette with better combinations */
    --accent-orange: #ff6b35;
    --accent-blue: #2e86ab;
    --accent-purple: #a23b72;
    
    /* Neutral tones */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* Text colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Border colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;
    
    /* Shadow colors */
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    
    /* Status colors */
    --success-light: #dcfce7;
    --success-medium: #22c55e;
    --success-dark: #15803d;
    
    --warning-light: #fef3c7;
    --warning-medium: #f59e0b;
    --warning-dark: #d97706;
    
    --error-light: #fee2e2;
    --error-medium: #ef4444;
    --error-dark: #dc2626;
    
    --info-light: #dbeafe;
    --info-medium: #3b82f6;
    --info-dark: #1d4ed8;
}

/* ===== GLOBAL STYLES ===== */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

/* Chrome, Safari, Edge */
.no-arrows::-webkit-inner-spin-button,
.no-arrows::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.no-arrows {
    -moz-appearance: textfield;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ===== UTILITY CLASSES ===== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(237, 27, 36, 0.25);
}

/* ===== CUSTOM STYLES ===== */
.min-vh-75 {
    min-height: 75vh;
}

/* ===== CARD HOVER EFFECTS ===== */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ===== BUTTON HOVER EFFECTS ===== */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* ===== NAVBAR STYLES ===== */
.navbar-brand {
    font-weight: 700;
    color: var(--primary-red) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Dark navbar styles */
.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* Light navbar styles */
.navbar-light .nav-link {
    color: var(--text-secondary) !important;
}

.navbar-light .nav-link:hover {
    color: var(--primary-red) !important;
}

/* ===== FORM STYLES ===== */
.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(237, 27, 36, 0.25);
}

.form-control[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

.form-control[readonly]:focus {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    box-shadow: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== ALERT STYLES ===== */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* ===== BADGE STYLES ===== */
.badge {
    font-weight: 500;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-hover);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Enhanced mobile card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Better mobile button sizing */
    .btn {
        min-height: 44px; /* iOS touch target size */
        padding: 0.75rem 1rem;
    }
    
    /* Improved mobile form controls */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Extra small mobile optimizations */
    .card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    /* Better spacing for small screens */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ===== STICKY POSITIONING ===== */
.sticky-top {
    z-index: 1020;
}

/* ===== IMAGE STYLES ===== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ===== TEXT UTILITIES ===== */
.text-primary {
    color: var(--primary-red) !important;
}

.text-warning {
    color: var(--primary-yellow) !important;
}

.text-success {
    color: var(--primary-green) !important;
}

.text-muted {
    color: #6c757d !important;
}

/* ===== BACKGROUND UTILITIES ===== */
.bg-primary {
    background-color: var(--primary-red) !important;
}

.bg-success {
    background-color: var(--primary-green) !important;
}

.bg-warning {
    background-color: var(--primary-yellow) !important;
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

.bg-dark {
    background-color: var(--neutral-900) !important;
}

/* ===== BORDER UTILITIES ===== */
.border-0 {
    border: 0 !important;
}

.border-3 {
    border-width: 3px !important;
}

.border-left-primary {
    border-left-color: var(--primary-red) !important;
}

.border-left-success {
    border-left-color: var(--primary-green) !important;
}

.border-left-warning {
    border-left-color: var(--primary-yellow) !important;
}

.border-left-danger {
    border-left-color: var(--primary-red) !important;
}

/* ===== SHADOW UTILITIES ===== */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ===== ROUNDED UTILITIES ===== */
.rounded-2 {
    border-radius: 0.375rem !important;
}

.rounded-3 {
    border-radius: 0.5rem !important;
}

/* ===== SPACING UTILITIES ===== */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

/* ===== FLEX UTILITIES ===== */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

/* ===== POSITION UTILITIES ===== */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.sticky-top {
    position: sticky !important;
    top: 0;
    z-index: 1020;
}

/* ===== WIDTH UTILITIES ===== */
.w-100 {
    width: 100% !important;
}

/* ===== HEIGHT UTILITIES ===== */
.h-100 {
    height: 100% !important;
}

/* ===== FONT WEIGHT UTILITIES ===== */
.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

/* ===== TEXT ALIGN UTILITIES ===== */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

/* ===== DISPLAY UTILITIES ===== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

/* ===== OVERFLOW UTILITIES ===== */
.overflow-hidden {
    overflow: hidden !important;
}

/* ===== Z-INDEX UTILITIES ===== */
.z-index-1020 {
    z-index: 1020 !important;
}

/* ===== CUSTOM COMPONENT STYLES ===== */
.event-card {
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* ===== FORM VALIDATION STYLES ===== */
.field-validation-error {
    color: var(--primary-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.input-validation-error {
    border-color: var(--primary-red);
}

.input-validation-error:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(237, 27, 36, 0.25);
}

/* ===== LOADING STATES ===== */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
}

.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    animation: pulse 1.5s infinite;
}

/* Modern loading spinner */
.spinner-modern {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(197, 48, 48, 0.1);
    border-left: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
}

/* ===== WHATSAPP STICKY BUTTON ===== */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 9999;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
}

.whatsapp-widget i {
    font-size: 28px;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-widget i {
        font-size: 24px;
    }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 35, 40, 0.95);
    color: white;
    padding: 1rem;
    z-index: 10000;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-text i {
    color: var(--primary-yellow);
}

#acceptCookies {
    white-space: nowrap;
    min-width: 100px;
}

/* Responsive cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cookie-text {
        font-size: 0.85rem;
    }
    
    #acceptCookies {
        width: 100%;
        max-width: 200px;
    }
}

/* ===== HERO SECTION STYLES ===== */

/* Enhanced hero background with modern design */
.hero-section {
    background: linear-gradient(135deg, #c53030 0%, #b91c1c 50%, #009443 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero title styling */
.hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-subheading {
    color: #f4ce2f !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Simple province cards */
.province-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.province-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #f4ce2f;
}

.province-icon {
    font-size: 2.5rem;
    color: #f4ce2f;
    margin-bottom: 1rem;
}

.province-name {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.province-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* ===== BRAND-SPECIFIC STYLES ===== */

/* Primary Button Styles - Red with better contrast */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-hover) 100%);
    border-color: var(--primary-red);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-hover) 0%, var(--primary-red) 100%);
    border-color: var(--primary-red-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 48, 48, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Success Button Styles - Green with better styling */
.btn-success {
    background: linear-gradient(135deg, var(--success-medium) 0%, var(--success-dark) 100%);
    border-color: var(--success-medium);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 148, 67, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Event cover overlay (shared across listings) */
.event-cover {
    overflow: hidden;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.event-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%);
    backdrop-filter: blur(1px);
    opacity: 0;
    transition: opacity 200ms ease-in-out;
}

.event-cover:hover .event-cover-overlay {
    opacity: 1;
}

.overlay-cta {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-hover) 100%);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 28px rgba(197, 48, 48, 0.45);
    border: 2px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(6px) scale(0.97);
    opacity: 0.96;
    transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
    pointer-events: none;
}

.event-cover:hover .overlay-cta {
    transform: translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 14px 34px rgba(197, 48, 48, 0.5);
}

/* Footer partner brand color fixed to hover red */
.footer-partner,
.footer-partner a,
.footer-partner .fw-bold {
    color: var(--primary-red-hover) !important;
    text-decoration: none;
}

.footer-partner a:hover,
.footer-partner a:focus {
    color: var(--primary-red-hover) !important;
    text-decoration: none;
}

/* Category card hover styles are scoped in page-specific cshtml */

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-dark) 0%, var(--success-medium) 100%);
    border-color: var(--success-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 148, 67, 0.4);
}

.btn-success:hover::before {
    left: 100%;
}

/* Warning Button Styles - Yellow with better contrast */
.btn-warning {
    background: var(--warning-medium);
    border-color: var(--warning-medium);
    color: var(--neutral-900);
    font-weight: 500;
    box-shadow: 0 2px 4px var(--shadow-medium);
}

.btn-warning:hover {
    background: var(--warning-dark);
    border-color: var(--warning-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-dark);
}

/* Danger Button Styles - Red with better styling */
.btn-danger {
    background: var(--error-medium);
    border-color: var(--error-medium);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px var(--shadow-medium);
}

.btn-danger:hover {
    background: var(--error-dark);
    border-color: var(--error-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-dark);
}

/* Info Button Styles - Blue accent */
.btn-info {
    background: var(--info-medium);
    border-color: var(--info-medium);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px var(--shadow-medium);
}

.btn-info:hover {
    background: var(--info-dark);
    border-color: var(--info-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-dark);
}

/* Override Bootstrap outline-primary to use brand red site-wide */
.btn-outline-primary {
    color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: #fff !important;
}

/* Fix outline button text alignment */
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-weight: 500;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Specific styling for outline-secondary */
.btn-outline-secondary {
    color: var(--text-secondary) !important;
    border-color: var(--border-medium) !important;
    background: rgba(255, 255, 255, 0.8);
}

.btn-outline-secondary:hover {
    background: var(--text-secondary) !important;
    border-color: var(--text-secondary) !important;
    color: white !important;
}

/* Per-CTA colors */
.nav-cta--customer {
    /* uses outline-primary (red) */
}

.nav-cta--promoter {
    color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.nav-cta--promoter:hover,
.nav-cta--promoter:focus,
.nav-cta--promoter:active {
    background: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: #fff !important;
}

.nav-cta--staff {
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

.nav-cta--staff:hover,
.nav-cta--staff:focus,
.nav-cta--staff:active {
    background: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    color: #fff !important;
}

/* Navbar Brand Colors - White theme to make colorful logo visible */
.navbar-dark.bg-primary,
.navbar-light.bg-primary {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px var(--shadow-medium);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar-dark.bg-primary:hover,
.navbar-light.bg-primary:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 6px 25px var(--shadow-medium);
}

/* White navbar text colors */
.navbar-dark.bg-primary .navbar-brand,
.navbar-light.bg-primary .navbar-brand {
    color: var(--primary-red) !important;
}

.navbar-dark.bg-primary .nav-link,
.navbar-light.bg-primary .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
}

.navbar-dark.bg-primary .nav-link:hover,
.navbar-light.bg-primary .nav-link:hover {
    color: var(--primary-red) !important;
    background: rgba(197, 48, 48, 0.1);
    transform: translateY(-1px);
}

/* Navbar toggler for mobile */
.navbar-dark.bg-primary .navbar-toggler,
.navbar-light.bg-primary .navbar-toggler {
    border-color: var(--border-medium);
}

.navbar-dark.bg-primary .navbar-toggler-icon,
.navbar-light.bg-primary .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(71, 85, 105, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar CTA group (unauthenticated buttons) */
.nav-cta-group {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    border-width: 2px;
    border-radius: 10px;
}

.btn-outline-primary.nav-cta {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline-primary.nav-cta:hover {
    background: var(--primary-green);
    color: #fff;
}

/* Stronger hover/focus visibility */
.nav-cta:focus-visible {
    outline: 3px solid rgba(237, 27, 36, 0.3);
    outline-offset: 2px;
}

@media (max-width: 992px) {
    .nav-cta-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-cta {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }
}

/* Improved mobile nav sizing and spacing */
@media (max-width: 992px) {
    .navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .navbar .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem !important;
    }

    .navbar .dropdown-menu .dropdown-item {
        font-size: 1.05rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .navbar-toggler {
        padding: 0.6rem 0.75rem;
        border-width: 2px;
        border-radius: 0.5rem;
    }

    /* Ensure collapsed menu uses full width and better tap spacing */
    #mainNavbar {
        margin-top: 0.5rem;
    }
}

/* Card Header Styles with better gradients */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-hover) 100%) !important;
    color: white;
    font-weight: 600;
}

.card-header.bg-success {
    background: linear-gradient(135deg, var(--success-medium) 0%, var(--success-dark) 100%) !important;
    color: white;
    font-weight: 600;
}

.card-header.bg-warning {
    background: linear-gradient(135deg, var(--warning-medium) 0%, var(--warning-dark) 100%) !important;
    color: var(--neutral-900);
    font-weight: 600;
}

.card-header.bg-info {
    background: linear-gradient(135deg, var(--info-medium) 0%, var(--info-dark) 100%) !important;
    color: white;
    font-weight: 600;
}

/* Alert Styles with better color combinations */
.alert-success {
    background-color: var(--success-light);
    border: 1px solid var(--success-medium);
    color: var(--success-dark);
    border-radius: 8px;
}

.alert-warning {
    background-color: var(--warning-light);
    border: 1px solid var(--warning-medium);
    color: var(--warning-dark);
    border-radius: 8px;
}

.alert-danger {
    background-color: var(--error-light);
    border: 1px solid var(--error-medium);
    color: var(--error-dark);
    border-radius: 8px;
}

.alert-info {
    background-color: var(--info-light);
    border: 1px solid var(--info-medium);
    color: var(--info-dark);
    border-radius: 8px;
}

/* Enhanced Card Styles */
.card {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-red);
}

.card:hover::before {
    opacity: 1;
}

/* Enhanced Form Styles */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(197, 48, 48, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.form-control:hover {
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Enhanced Button Group Styles */
.btn-group .btn {
    border-radius: 8px;
    margin-right: 4px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Enhanced Badge Styles */
.badge.bg-primary {
    background-color: var(--primary-red) !important;
}

.badge.bg-success {
    background-color: var(--success-medium) !important;
}

.badge.bg-warning {
    background-color: var(--warning-medium) !important;
    color: var(--neutral-900) !important;
}

.badge.bg-danger {
    background-color: var(--error-medium) !important;
}

.badge.bg-info {
    background-color: var(--info-medium) !important;
}

/* ===== ENHANCED FOOTER STYLES ===== */
.footer-enhanced {
    background: #1b232f;
    color: white;
    margin-top: auto;
}

.footer-main {
    padding: 4rem 0 2rem;
    background: #1b232f;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-red) 50%, transparent 100%);
}

.footer-brand .footer-logo {
    transition: transform 0.3s ease;
}

.footer-brand .footer-logo:hover {
    transform: scale(1.05);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-title {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-enhanced .footer-links a,
footer .footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    background: none !important;
    border-radius: 0 !important;
    font-weight: normal !important;
}

.footer-enhanced .footer-links a:hover,
footer .footer-links a:hover {
    color: var(--primary-red) !important;
    transform: translateX(5px);
    text-decoration: none !important;
    background: none !important;
}

.footer-enhanced .footer-links a:hover i {
    color: var(--primary-red);
    opacity: 1;
}

.footer-enhanced .footer-links a i {
    width: 16px;
    font-size: 0.8rem;
    color: var(--primary-red);
    opacity: 1;
}

/* Social Media Links */
.footer-social {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link.facebook {
    background: white;
    color: #1877F2;
}

.social-link.instagram {
    background: white;
    color: #E4405F;
}

.social-link.whatsapp {
    background: white;
    color: #25D366;
}

.social-link.email {
    background: white;
    color: var(--primary-red);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Contact Information */
.footer-contact {
    margin-top: 1rem;
}

.footer-enhanced .contact-item,
footer .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.footer-enhanced .contact-item i,
footer .contact-item i {
    color: var(--primary-red) !important;
    width: 16px;
    font-size: 0.8rem;
    background: none !important;
    border-radius: 0 !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}


/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-copyright .text-danger {
    color: var(--primary-red) !important;
}

.footer-partner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.partner-link {
    color: var(--primary-yellow);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.partner-link:hover {
    color: var(--primary-yellow);
    text-decoration: none;
    opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-description {
        font-size: 1.1rem;
    }
    
    .footer-enhanced .footer-links a {
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-enhanced .contact-item,
    footer .contact-item {
        font-size: 1.05rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
        text-align: center;
    }
    
    .footer-partner {
        justify-content: center;
        margin-top: 1rem;
        font-size: 1rem;
    }
    
    /* Mobile layout - side by side sections */
    .footer-main .row .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Eventos and Suporte side by side */
    .footer-main .row .col-lg-2:nth-child(2),
    .footer-main .row .col-lg-2:nth-child(3) {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Acesso Rápido and Contactos side by side */
    .footer-main .row .col-lg-2:nth-child(4),
    .footer-main .row .col-lg-2:nth-child(5) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 1.05rem;
    }
    
    .footer-enhanced .footer-links a {
        font-size: 1.05rem;
    }
    
    .footer-enhanced .contact-item,
    footer .contact-item {
        font-size: 1rem;
    }
    
    .footer-links {
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-copyright,
    .footer-partner {
        font-size: 1rem;
    }
    
    /* Even more compact for small screens */
    .footer-main .row .col-lg-2 {
        margin-bottom: 1rem;
    }
}