@import url('https://fonts.googleapis.com/css2?family=Tilt+Warp&display=swap');

/* Main application styles */
/* Enhanced with modern typography and component styling */

/* ===== ENHANCED TYPOGRAPHY IMPLEMENTATION ===== */

/* Improved heading hierarchy with better spacing */
h1, .h1 {
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
}

h2, .h2 {
    margin-bottom: var(--space-5);
    letter-spacing: -0.015em;
}

h3, .h3 {
    margin-bottom: var(--space-4);
}

h4, .h4, h5, .h5, h6, .h6 {
    margin-bottom: var(--space-3);
}

/* Enhanced paragraph and text styling */
p {
    margin-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.text-small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.text-large {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Enhanced focus indicators for better keyboard navigation */
*:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid var(--color-secondary);
}

/* Screen reader only content */
.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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000000;
        --color-border-light: #333333;
        --color-text-secondary: #000000;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-base: 0 2px 6px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid var(--color-border);
    }
    
    .form-control {
        border: 2px solid var(--color-border);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn::before {
        display: none;
    }
}

/* Color-blind friendly indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: currentColor;
}

.status-watched .status-indicator::before {
    content: '✓';
    background-color: transparent;
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
    width: auto;
    height: auto;
}

.status-pending .status-indicator::before {
    content: '○';
    background-color: transparent;
    color: var(--color-warning);
    font-weight: var(--font-weight-bold);
    width: auto;
    height: auto;
}

/* ===== ENHANCED NAVIGATION BAR ===== */

.navbar {
    background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-secondary) 100%);
    box-shadow: var(--shadow-lg);
    z-index: 1050; /* Ensure navbar is above other content like watermarks */
}

/* Make hamburger (Bootstrap .navbar-toggler-icon) white */
.navbar .navbar-toggler {
    color: #fff !important;
    border-color: rgba(255,255,255,0.9) !important;
}
.navbar .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(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Collapsed nav: ensure visible links and spacing */
.navbar .navbar-collapse { padding: 6px 0; }
.navbar .navbar-collapse.show { display: block !important; }
.navbar .navbar-collapse .nav-link { color: #fff !important; }

.navbar-brand,
.navbar-brand:link,
.navbar-brand:visited,
.navbar-brand:hover,
.navbar-brand:focus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    text-decoration: none !important;
}

.navbar-brand::before {
    content: '';
    display: inline-block;
    width: 3.75rem;
    height: 3.75rem;
    background: var(--accent-svg-logo) center/contain no-repeat;
    vertical-align: middle;
    margin-right: 0.5rem;
    filter: brightness(0) invert(1);
    transform: rotate(335deg);
}

.navbar-brand:hover {
    color: var(--color-secondary) !important;
    transform: scale(1.05);
}

.navbar-brand:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.navbar-retro-title,
.navbar-retro-title:link,
.navbar-retro-title:visited,
.navbar-retro-title:hover,
.navbar-retro-title:focus {
    font-family: 'Tilt Warp', cursive, sans-serif !important;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    color: #fff;
    margin-right: 1.5rem;
    line-height: 1;
    text-shadow: 2px 2px 0 #00000033;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.18s cubic-bezier(0.4,0,0.2,1);
    cursor: default;
    text-decoration: none !important;
}

.navbar-retro-title:hover {
    transform: scale(1.12);
    text-decoration: none !important;
    cursor: default;
}

.navbar-retro-title:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.navbar-nav .nav-link,
.navbar-nav .nav-link:link,
.navbar-nav .nav-link:visited,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    font-weight: var(--font-weight-medium);
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--color-text-inverse) !important;
}

.navbar-nav .nav-link:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    background-color: var(--color-primary-50);
}

.navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
    background-color: var(--color-primary-50);
    font-weight: var(--font-weight-semibold);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

/* Enhanced dropdown menus */
.dropdown-menu {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    margin-top: var(--space-2);
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--color-surface-secondary);
    color: var(--color-primary);
    transform: translateX(2px);
}

.dropdown-item:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: -2px;
    background-color: var(--color-primary-50);
}

.dropdown-divider {
    border-color: var(--color-border-light);
    margin: var(--space-2) 0;
}

/* ===== ENHANCED CARDS AND CONTENT ===== */

.card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    background-color: var(--color-surface);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-border);
}

.card:focus-within {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.card-header {
    background: linear-gradient(135deg, var(--color-surface-secondary), var(--color-surface));
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-4) var(--space-5);
    font-weight: var(--font-weight-semibold);
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    background-color: var(--color-surface-tertiary);
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-4) var(--space-5);
}

.card-title {
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.card-text {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===== ENHANCED BUTTONS ===== */

.btn {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-5);
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Minimum touch target size */
    justify-content: center;
    cursor: pointer;
}

.btn:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

.btn::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 var(--transition-base);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-600));
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--color-text-inverse);
}

.btn-primary:focus {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(76, 29, 149, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-600));
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-secondary-600), var(--color-secondary-700));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--color-text-inverse);
}

.btn-secondary:focus {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success), var(--color-success-600));
    color: var(--color-text-inverse);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--color-success-600), var(--color-success-700));
    transform: translateY(-1px);
    color: var(--color-text-inverse);
}

.btn-success:focus {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--color-warning), var(--color-warning-600));
    color: var(--color-text-inverse);
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--color-warning-600), var(--color-warning-700));
    transform: translateY(-1px);
    color: var(--color-text-inverse);
}

.btn-warning:focus {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(249, 115, 22, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), var(--color-danger-600));
    color: var(--color-text-inverse);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--color-danger-600), var(--color-danger-700));
    transform: translateY(-1px);
    color: var(--color-text-inverse);
}

.btn-danger:focus {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-height: 36px; /* Smaller minimum for small buttons */
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-lg);
    min-height: 52px; /* Larger minimum for large buttons */
}

/* Disabled button states */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

/* Ensure green Track button stays green when disabled */
.btn-success:disabled,
.btn-success.btn.disabled {
    background: linear-gradient(135deg, var(--color-success), var(--color-success-600));
    color: var(--color-text-inverse);
    opacity: 0.6;
}

/* Remove text decoration from button links globally */
.btn,
a.btn,
.btn:hover,
a.btn:hover,
.btn:focus,
a.btn:focus,
.btn:active,
a.btn:active {
    text-decoration: none !important;
}

/* ===== ENHANCED FORMS ===== */

.form-control {
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    background-color: var(--color-surface);
    transition: all var(--transition-fast);
    min-height: 44px; /* Minimum touch target size */
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.1);
    background-color: var(--color-surface);
    outline: none;
}

.form-control:invalid {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-tertiary);
    font-weight: var(--font-weight-normal);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    display: block;
}

.form-label.required::after {
    content: ' *';
    color: var(--color-danger);
    font-weight: var(--font-weight-bold);
}

.form-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

.form-text.error {
    color: var(--color-danger);
    font-weight: var(--font-weight-medium);
}

/* ===== ENHANCED ALERTS ===== */

.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border-left: 4px solid currentColor;
}

.alert[role="alert"] {
    /* Additional styling for alerts announced to screen readers */
    font-weight: var(--font-weight-medium);
}

.alert-primary {
    background-color: var(--color-primary-50);
    color: var(--color-primary-800);
    border-left-color: var(--color-primary);
}

.alert-success {
    background-color: var(--color-success-50);
    color: var(--color-success-800);
    border-left-color: var(--color-success);
}

.alert-warning {
    background-color: var(--color-warning-50);
    color: var(--color-warning-800);
    border-left-color: var(--color-warning);
}

.alert-danger {
    background-color: var(--color-danger-50);
    color: var(--color-danger-800);
    border-left-color: var(--color-danger);
}

.alert-info {
    background-color: var(--color-info-50);
    color: var(--color-info-800);
    border-left-color: var(--color-info);
}

/* ===== ENHANCED BADGES ===== */

.badge {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

/* Add icons to badges for color-blind accessibility */
.badge-primary::before {
    content: '●';
    font-size: 0.6em;
}

.badge-secondary::before {
    content: '▲';
    font-size: 0.6em;
}

.badge-success::before {
    content: '✓';
    font-size: 0.8em;
}

.badge-warning::before {
    content: '⚠';
    font-size: 0.8em;
}

.badge-danger::before {
    content: '✕';
    font-size: 0.8em;
}

.badge-info::before {
    content: 'ⓘ';
    font-size: 0.8em;
}

.badge-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.badge-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
}

.badge-success {
    background-color: var(--color-success);
    color: var(--color-text-inverse);
}

.badge-warning {
    background-color: var(--color-warning);
    color: var(--color-text-inverse);
}

.badge-danger {
    background-color: var(--color-danger);
    color: var(--color-text-inverse);
}

.badge-info {
    background-color: var(--color-info);
    color: var(--color-text-inverse);
}

/* ===== ENHANCED LOADING STATES ===== */

.spinner-border {
    border: 2px solid var(--color-border-light);
    border-top: 2px solid var(--color-primary);
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 1px;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced loading spinner with brand colors */
.spinner-primary {
    border-top-color: var(--color-primary);
}

.spinner-secondary {
    border-top-color: var(--color-secondary);
}

/* Loading text for screen readers */
.loading-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== CALENDAR PAGE SPECIFIC STYLING ===== */

/* Calendar container styling */
.calendar-container {
    background-color: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
}

/* ===== ENHANCED CALENDAR STYLING ===== */

/* Calendar header and navigation styling */
.calendar-container .schedule-header h1 {
    color: var(--color-text-primary);
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-6);
}

.calendar-container .schedule-nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.calendar-container .schedule-nav a:hover {
    color: var(--color-primary-700);
}

/* Calendar controls styling */
.calendar-controls {
    gap: var(--space-4);
}

#calendar-title {
    color: var(--color-text-primary);
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-semibold);
}

.calendar-nav-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
    background-color: var(--color-surface-secondary);
    border-color: var(--color-border-dark);
    color: var(--color-text-primary);
}

/* Enhanced view switcher buttons */
.calendar-view-switcher .btn {
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.calendar-filter-switcher .btn {
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

/* Calendar container styling */
#calendar {
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
}

/* Calendar grid enhancements */
.fc .fc-col-header {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.fc .fc-col-header-cell {
    border-right: 1px solid var(--color-primary-600);
}

.fc .fc-col-header-cell-cushion {
    color: var(--color-text-inverse);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-headings);
}

.fc .fc-daygrid-day {
    border-color: var(--color-primary-200);
    background-color: var(--color-surface);
}

.fc .fc-daygrid-day-number {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-headings);
}

/* Today highlighting - works for both monthly and weekly views */
.fc .fc-day-today {
    background-color: var(--color-surface-secondary) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    background-color: var(--color-primary);
    color: var(--color-text-inverse) !important;
    border-radius: var(--radius-full);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
}

/* Weekly view specific styling to match monthly layout exactly */
.fc-timeGridWeek-view .fc-col-header {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.fc-timeGridWeek-view .fc-col-header-cell {
    border-right: 1px solid var(--color-primary-600);
    padding: var(--space-4);
    min-height: 60px;
    text-align: center;
}

.fc-timeGridWeek-view .fc-col-header-cell-cushion {
    color: var(--color-text-inverse) !important;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-headings);
    font-size: var(--font-size-base);
    display: block;
    text-align: center;
    line-height: 1.2;
}

/* Weekly view day cells - make them spacious like monthly */
.fc-timeGridWeek-view .fc-timegrid-col {
    border-color: var(--color-primary-200);
    background-color: var(--color-surface);
    min-width: 140px; /* Ensure adequate column width */
}

/* Weekly view time grid styling - more spacious */
.fc-timeGridWeek-view .fc-timegrid-slot {
    border-color: var(--color-border-light);
    height: 80px; /* Increase row height significantly for better layout */
}

.fc-timeGridWeek-view .fc-timegrid-slot-label {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    padding: var(--space-3);
    font-weight: var(--font-weight-medium);
}

/* Weekly view today highlighting - just purple text, no box */
.fc-timeGridWeek-view .fc-day-today {
    background-color: var(--color-surface-secondary) !important; /* Light purple shading for today */
}

.fc-timeGridWeek-view .fc-day-today .fc-col-header-cell-cushion {
    color: var(--color-primary) !important; /* Purple text instead of white text in box */
    background-color: transparent !important; /* Remove the background box */
    font-weight: var(--font-weight-bold) !important;
    border-radius: 0 !important; /* Remove border radius */
    padding: var(--space-4) !important; /* Same padding as other days */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Make weekly view more spacious overall */
.fc-timeGridWeek-view .fc-timegrid {
    border-color: var(--color-primary-200);
}

.fc-timeGridWeek-view .fc-timegrid-axis {
    border-color: var(--color-primary-200);
    background-color: var(--color-surface);
}

/* Ensure all time grid events have proper spacing */
.fc-timeGridWeek-view .fc-timegrid-event {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    margin: 2px;
    padding: var(--space-2);
}

/* Fix all-day events in weekly view */
.fc-timeGridWeek-view .fc-timegrid-divider {
    border-color: var(--color-primary-200);
    background-color: var(--color-surface);
}

.fc-timeGridWeek-view .fc-daygrid-body {
    border-color: var(--color-primary-200);
    background-color: var(--color-surface);
}

/* All-day section in weekly view */
.fc-timeGridWeek-view .fc-daygrid-event {
    border-radius: var(--radius-md);
    margin: 2px;
    padding: var(--space-1);
}

/* Force the controls to stay in their proper position for weekly view */
.calendar-page .calendar-controls {
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Prevent wrapping to keep single row */
    gap: 1rem !important;
    width: 100% !important;
    margin-bottom: var(--space-4) !important;
    min-height: 60px !important; /* Ensure consistent height */
}

/* Prevent FullCalendar from interfering with our layout */
.fc-timeGridWeek-view {
    position: relative;
}

/* Ensure each section of controls maintains proper flex behavior */
.calendar-controls > div {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Left section: View switcher and filters */
.calendar-controls > div:first-child {
    flex-shrink: 0 !important;
}

/* Center section: Month navigation */
.calendar-controls > div:nth-child(2) {
    flex-shrink: 0 !important;
    justify-content: center !important;
}

/* Right section: Show and Team filters */
.calendar-controls > div:last-child {
    flex-shrink: 0 !important;
    justify-content: flex-end !important;
}

/* Fix the header alignment for weekly view */
.fc-timeGridWeek-view .fc-col-header-cell-cushion {
    color: var(--color-text-inverse) !important;
    font-weight: var(--font-weight-semibold) !important;
    font-family: var(--font-family-headings) !important;
    font-size: var(--font-size-base) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
    padding: var(--space-4) !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Fix any layout issues specific to weekly view */
.fc-timeGridWeek-view .fc-timegrid-axis-cushion {
    text-align: center;
    padding: var(--space-2);
}

/* Ensure the calendar container maintains proper structure */
.calendar-container {
    width: 100% !important;
    position: relative !important;
}

/* Fix the overall calendar layout for weekly view */
.fc-timeGridWeek-view .fc-view-harness {
    position: relative;
}

/* Make sure the weekly view respects our container boundaries */
.fc-timeGridWeek-view .fc-scrollgrid {
    width: 100% !important;
}

/* ===== ENHANCED EVENT CARD STYLING ===== */

.event-card {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    background-color: var(--color-surface);
    transition: all var(--transition-fast);
    min-height: 40px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* TV Show Events - Deep Purple Theme */
.event-card-tv {
    border-left-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
    border-color: var(--color-primary-200);
}

.event-card-tv:hover {
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-primary-200) 100%);
    border-color: var(--color-primary-300);
}

.event-card-tv .event-card-title {
    color: var(--color-primary-800);
    font-weight: var(--font-weight-semibold);
}

.event-card-tv .event-card-subtitle,
.event-card-tv .event-card-time {
    color: var(--color-primary-600);
}

/* Sports Events - Warm Amber/Gold Theme */
.event-card-sport {
    border-left-color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-secondary-50) 0%, var(--color-secondary-100) 100%);
    border-color: var(--color-secondary-200);
}

.event-card-sport:hover {
    background: linear-gradient(135deg, var(--color-secondary-100) 0%, var(--color-secondary-200) 100%);
    border-color: var(--color-secondary-300);
}

.event-card-sport .event-card-title {
    color: var(--color-secondary-800);
    font-weight: var(--font-weight-semibold);
}

.event-card-sport .event-card-subtitle,
.event-card-sport .event-card-time {
    color: var(--color-secondary-600);
}

/* Movie Events (if they exist) - Secondary Amber Theme */
.event-card-movie {
    border-left-color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-secondary-50) 0%, var(--color-secondary-100) 100%);
    border-color: var(--color-secondary-200);
}

.event-card-movie:hover {
    background: linear-gradient(135deg, var(--color-secondary-100) 0%, var(--color-secondary-200) 100%);
    border-color: var(--color-secondary-300);
}

.event-card-movie .event-card-title {
    color: var(--color-secondary-800);
    font-weight: var(--font-weight-semibold);
}

.event-card-movie .event-card-subtitle,
.event-card-movie .event-card-time {
    color: var(--color-secondary-600);
}

/* Event card content styling */
.event-card-image {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: var(--space-2);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.event-card-content {
    flex-grow: 1;
    min-width: 0;
}

.event-card-title {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-family-headings);
}

.event-card-subtitle {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.event-card-time {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    margin-top: 2px;
    font-weight: var(--font-weight-medium);
}

/* Modal styling enhancements */
.modal-body {
    text-align: center;
}

.event-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
}

/* Enhanced filter controls */
.form-select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
}

.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(76, 29, 149, 0.25);
}

.form-label {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive enhancements for calendar */
@media (max-width: 768px) {
    body.calendar-page .calendar-container {
        padding: var(--space-4);
        margin-left: 0;
        width: 100%;
        border-radius: var(--radius-lg);
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .event-card {
        padding: var(--space-2);
        min-height: 36px;
    }
    
    .event-card-image {
        width: 24px;
        height: 24px;
    }
    
    .event-card-title {
        font-size: var(--font-size-xs);
    }
    
    .event-card-subtitle,
    .event-card-time {
        font-size: 0.65rem;
    }
}

/* ===== RESPONSIVE LAYOUT SYSTEM ===== */

/* All pages now use Bootstrap's responsive container-fluid with px-lg-5 for consistent alignment */

body {
    background: var(--accent-svg-bg), linear-gradient(120deg, var(--color-primary-50) 0%, var(--color-secondary-50) 100%);
    background-repeat: no-repeat;
    background-size: contain, cover;
    background-position: top left, center;
    min-height: 100vh;
    font-family: var(--font-family-sans);
    color: var(--color-text-primary);
}

/* Watermark utility for background logo */
.bg-watermark {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 1200px !important;
    height: 1200px !important;
    opacity: 0.15 !important;
    /* background: url('/static/icons/tv-logo-watermark.svg') left top / cover no-repeat !important; */
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Accent icon utility */
.accent-icon-star {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: var(--accent-svg-star) center/contain no-repeat;
    vertical-align: middle;
}
.accent-icon-film {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: var(--accent-svg-film) center/contain no-repeat;
    vertical-align: middle;
}
.accent-icon-clapper {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: var(--accent-svg-clapper) center/contain no-repeat;
    vertical-align: middle;
}

.navbar,
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-toggle,
.navbar .dropdown-menu,
.navbar .dropdown-item {
    color: #fff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--color-secondary) !important;
    background-color: rgba(255,255,255,0.08);
    text-decoration: none !important;
}

.navbar .nav-link.active {
    color: var(--color-secondary) !important;
    background-color: rgba(255,255,255,0.16);
    font-weight: var(--font-weight-semibold);
}

/* Keep account dropdown text white on hover */
.navbar .nav-link.dropdown-toggle:hover,
.navbar .nav-link.dropdown-toggle:focus {
    color: #fff !important;
}

/* Restore classic purple dropdown menu with white text */
.navbar .dropdown-menu {
    background-color: #6f42c1 !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.navbar .dropdown-item {
    color: #fff !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #512a8a !important;
    color: #fff !important;
}

.navbar .dropdown-divider {
    border-top: 1px solid #a084ca;
}

.bg-primary, .bg-success, .bg-info, .bg-warning, .bg-danger, .bg-secondary, .bg-admin, .card-contrast {
    color: var(--color-text-inverse) !important;
}
.bg-primary *,
.bg-success *,
.bg-info *,
.bg-warning *,
.bg-danger *,
.bg-secondary *,
.bg-admin *,
.card-contrast * {
    color: var(--color-text-inverse) !important;
}

/* Scrollbar styles for horizontal scrolling containers */
.d-flex.flex-row.flex-nowrap.gap-3.overflow-auto {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-300) var(--color-surface-tertiary);
}

.d-flex.flex-row.flex-nowrap.gap-3.overflow-auto::-webkit-scrollbar {
    height: 8px;
}
.d-flex.flex-row.flex-nowrap.gap-3.overflow-auto::-webkit-scrollbar-track {
    background: var(--color-surface-tertiary);
    border-radius: var(--radius-full);
}
.d-flex.flex-row.flex-nowrap.gap-3.overflow-auto::-webkit-scrollbar-thumb {
    background-color: var(--color-primary-300);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-surface-tertiary);
}
.d-flex.flex-row.flex-nowrap.gap-3.overflow-auto::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-400);
}


footer {
    padding: calc(var(--space-8) * 0.8) 0 var(--space-8) 0; /* reduce top padding by 20% */
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}
footer h6 {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
}
footer a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
footer a:hover {
    color: var(--color-secondary);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */

@media (max-width: 480px) {
    .navbar {
        padding: var(--space-2) 0;
    }
    
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
        min-height: 44px; /* Maintain touch target size on mobile */
    }
    
    h1, .h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2, .h2 {
        font-size: var(--font-size-2xl);
    }
    
    /* Increase touch targets on mobile */
    .navbar-nav .nav-link {
        min-height: 48px;
        padding: var(--space-3) var(--space-4) !important;
    }
    
    .dropdown-item {
        min-height: 48px;
        padding: var(--space-3) var(--space-4);
    }
    
    .list-group-horizontal-md {
        flex-direction: column !important;
        overflow-x: visible !important;
    }
    .list-group-item.list-group-item-action.text-center img {
        max-width: 60px;
        height: auto;
        margin-bottom: 0.5rem;
    }
    .container, .card {
        padding-left: var(--space-2) !important;
        padding-right: var(--space-2) !important;
        overflow-x: hidden;
    }
    .card-body {
        padding: var(--space-3);
    }
    .table-responsive, .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Make watermark smaller on mobile to avoid overwhelming the content */
    .bg-watermark {
        width: 300px !important;
        height: 300px !important;
        max-width: 30vw !important;
        max-height: 30vh !important;
        opacity: 0.05 !important;
    }
}

/* Ensure all rating system styles are present and merged */

/* Interactive Star Rating */
.rating-stars {
    user-select: none;
}

.rating-stars .star {
    font-size: 2rem;
    color: var(--color-border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    line-height: 1;
}

.rating-stars .star:hover {
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rating-stars .star:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.rating-stars .star.active {
    color: var(--color-warning);
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.rating-stars .star.hover {
    color: var(--color-warning);
    opacity: 0.7;
}

/* Read-only Star Display */
.stars-display {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    position: relative;
}

.stars-display .star {
    font-size: 1rem;
    color: var(--color-warning);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1;
    position: relative;
    display: inline-block;
}

.stars-display .star.empty {
    color: var(--color-border-light);
}

.stars-display .star.filled {
    color: var(--color-warning);
}

/* Half-star implementation */
.stars-display .star.half-filled {
    position: relative;
    color: var(--color-border-light);
}

.stars-display .star.half-filled .star-half {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: var(--color-warning);
    z-index: 1;
}

.stars-display .star.half-filled .star-empty {
    position: relative;
    color: var(--color-border-light);
    z-index: 0;
}

/* Interactive star display */
.stars-display.interactive .star {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.stars-display.interactive .star:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.stars-display.interactive:hover .star {
    opacity: 0.6;
}

.stars-display.interactive:hover .star:hover,
.stars-display.interactive:hover .star:hover ~ .star {
    opacity: 1;
}

/* Size variants */
.stars-display.large .star {
    font-size: 1.25rem;
}

.stars-display.small .star {
    font-size: 0.875rem;
}

/* Tooltip enhancement */
.stars-display[title] {
    cursor: help;
}

/* High contrast mode support for stars */
@media (prefers-contrast: high) {
    .stars-display .star.filled,
    .stars-display .star.half-filled .star-half {
        color: #000000;
        text-shadow: 0 0 2px #ffffff;
    }
    
    .stars-display .star.empty,
    .stars-display .star.half-filled .star-empty {
        color: #666666;
        text-shadow: 0 0 1px #ffffff;
    }
}

/* Animation for rating changes */
.stars-display.animating .star {
    animation: starPulse 0.3s ease-out;
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Focus styles for accessibility */
.stars-display.interactive .star:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Rating text styling */
.stars-display .rating-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* Rating Button */
.rating-btn {
    border: 2px solid #ffd700 !important;
    color: #6f42c1 !important;
    background-color: transparent !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    background-color: #6f42c1 !important;
    color: white !important;
    border-color: #ffd700 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.rating-btn:focus {
    border-color: #ffd700 !important;
    color: #6f42c1 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Rating Modal Specific Styles */
#ratingModal .rating-content-image {
    flex-shrink: 0;
}

#ratingModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#ratingModal .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(76, 29, 149, 0.25);
}

/* Character Counter */
.form-text #comment-counter {
    font-weight: var(--font-weight-medium);
}

.form-text #comment-counter.warning {
    color: var(--color-warning);
}

.form-text #comment-counter.danger {
    color: var(--color-danger);
}

/* Rating Statistics */
.rating-stats {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background-color: var(--color-surface-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.rating-stats .avg-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rating-stats .avg-rating .number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.rating-stats .avg-rating .label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.rating-stats .stars-breakdown {
    flex: 1;
    min-width: 0;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.rating-bar:last-child {
    margin-bottom: 0;
}

.rating-bar .star-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    min-width: 20px;
}

.rating-bar .bar {
    flex: 1;
    height: 6px;
    background-color: var(--color-border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rating-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-warning), var(--color-warning-600));
    transition: width var(--transition-base);
}

.rating-bar .count {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    min-width: 30px;
    text-align: right;
}

/* Rating List Styles */
.rating-item {
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-4) 0;
}

.rating-item:last-child {
    border-bottom: none;
}

.rating-item .rating-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.rating-item .user-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.rating-item .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

.rating-item .rating-meta {
    margin-left: auto;
    text-align: right;
}

.rating-item .rating-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.rating-item .rating-comment {
    margin-top: var(--space-2);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .rating-stars .star {
        font-size: 1.75rem;
    }
    
    .rating-stats {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .rating-stats .avg-rating {
        order: -1;
    }
    
    .rating-item .rating-header {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .rating-item .rating-meta {
        margin-left: 0;
        text-align: left;
    }
}

/* Show Title Styling */
.show-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #6f42c1 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    line-height: 1.2 !important;
}

@media (max-width: 768px) {
    .show-title {
        font-size: 2rem !important;
    }
}

/* Ensure Details button focus/active outline is full and rounded */
.btn-info:focus, .btn-info:active, .btn-info:focus-visible {
    outline: 2px solid #7c3aed !important;
    outline-offset: 2px;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
}

.scrolling-card-row {
    padding-left: 1rem;
    padding-right: 1rem;
}

.scrolling-card-row > .card:first-child {
    margin-left: 1rem;
}
.scrolling-card-row > .card:last-child {
    margin-right: 1rem;
}

/* z-index fix for navbar dropdown */
.navbar .dropdown-menu {
    z-index: 1051;
}

/* Custom container for footer alignment */
.footer-content-wrapper {
  width: 100%;
  padding-right: var(--bs-gutter-x, .75rem);
  padding-left: var(--bs-gutter-x, .75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .footer-content-wrapper {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .footer-content-wrapper {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .footer-content-wrapper {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .footer-content-wrapper {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .footer-content-wrapper {
    max-width: 1320px;
  }
} 

/* Responsive footer logo */
.footer-logo {
  display: block;
  height: auto;
  width: min(141px, 26vw); /* another 20% smaller from previous */
  max-width: 141px;        /* desktop cap */
  margin-top: -4px;        /* nudge logo slightly upward */
}

@media (max-width: 576px) {
  .footer-logo {
    width: min(115px, 38vw); /* another 20% smaller */
    max-width: 115px;        /* mobile cap */
  }
} 