/**
 * NEWZEEFY LIVE HOLIDAYS & FESTIVALS STYLESHEET (govt-holidays.css)
 * Glassmorphism Dashboard, Modern Responsive Cards, Animated Badges, FullCalendar Overrides & Dark Mode
 */

:root {
    --nz-holiday-card-bg: rgba(255, 255, 255, 0.85);
    --nz-holiday-card-border: rgba(226, 232, 240, 0.8);
    --nz-holiday-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --nz-holiday-text-main: #1e293b;
    --nz-holiday-text-muted: #64748b;
    --nz-holiday-accent: #3b82f6;
    --nz-holiday-glass-blur: blur(12px);
}

body.dark-mode,
[data-bs-theme="dark"] {
    --nz-holiday-card-bg: rgba(15, 23, 42, 0.85);
    --nz-holiday-card-border: rgba(51, 65, 85, 0.6);
    --nz-holiday-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --nz-holiday-text-main: #f8fafc;
    --nz-holiday-text-muted: #94a3b8;
    --nz-holiday-accent: #60a5fa;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--nz-holiday-card-bg);
    backdrop-filter: var(--nz-holiday-glass-blur);
    -webkit-backdrop-filter: var(--nz-holiday-glass-blur);
    border: 1px solid var(--nz-holiday-card-border);
    box-shadow: var(--nz-holiday-shadow);
    border-radius: 1.25rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hero Section Gradient Cards */
.hero-gradient-card {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    color: #ffffff;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-gradient-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.today-gradient-card {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border-radius: 1.25rem;
}

.next-gradient-card {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border-radius: 1.25rem;
}

/* Countdown Clock Box */
.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 75px;
}

.countdown-box .count-val {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-box .count-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

/* Pill Badges */
.holiday-type-pill {
    font-size: 0.725rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.holiday-type-pill.gazetted,
.holiday-type-pill.national {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.holiday-type-pill.state,
.holiday-type-pill.festival {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.holiday-type-pill.public,
.holiday-type-pill.bank {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.holiday-type-pill.school,
.holiday-type-pill.optional {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Long Weekend Cards */
.long-weekend-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-radius: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.long-weekend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(2, 132, 199, 0.3);
}

/* Table Styling */
.table-custom-holidays {
    color: var(--nz-holiday-text-main);
    vertical-align: middle;
}

.table-custom-holidays th {
    background: rgba(241, 245, 249, 0.6);
    color: var(--nz-holiday-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 2px solid var(--nz-holiday-card-border);
}

body.dark-mode .table-custom-holidays th,
[data-bs-theme="dark"] .table-custom-holidays th {
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
}

.table-custom-holidays td {
    border-color: var(--nz-holiday-card-border);
    padding: 0.9rem 1rem;
}

.table-custom-holidays tbody tr {
    transition: background 0.15s ease;
}

.table-custom-holidays tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* FullCalendar Overrides */
.fc {
    font-family: inherit;
    --fc-border-color: var(--nz-holiday-card-border);
    --fc-today-bg-color: rgba(59, 130, 246, 0.1);
    --fc-page-bg-color: transparent;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nz-holiday-text-main);
}

.fc .fc-button-primary {
    background-color: var(--nz-holiday-accent);
    border-color: var(--nz-holiday-accent);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.fc .fc-button-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.fc-daygrid-day-number {
    font-weight: 600;
    color: var(--nz-holiday-text-main);
}

body.dark-mode .fc,
[data-bs-theme="dark"] .fc {
    color: #f8fafc;
}

body.dark-mode .fc-theme-standard td,
body.dark-mode .fc-theme-standard th,
[data-bs-theme="dark"] .fc-theme-standard td,
[data-bs-theme="dark"] .fc-theme-standard th {
    border-color: rgba(51, 65, 85, 0.6) !important;
}

/* Skeleton Loader */
.skeleton-loader {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    height: 20px;
}

body.dark-mode .skeleton-loader,
[data-bs-theme="dark"] .skeleton-loader {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Animations */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.glow-animation {
    animation: pulseGlow 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .countdown-box {
        min-width: 55px;
        padding: 0.5rem 0.6rem;
    }
    .countdown-box .count-val {
        font-size: 1.35rem;
    }
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
}
