/* Diablo Fonts */
@font-face {
    font-family: 'Diablo Heavy';
    src: url('/fonts/Diablo Heavy.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Diablo Light';
    src: url('/fonts/Diablo Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-bg-color, black);
    color: var(--primary-text-color, white);
    min-height: 100vh;
    padding: 20px;
}

/* Style the Jubaroo Hub header with Diablo font and gold line */
header h1 {
    font-family: 'Diablo Heavy', Arial, sans-serif !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    position: relative !important;
    padding-bottom: 15px !important;
}

header h1::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 150px !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #d4af37, transparent) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

h1, .page-title {
    color: var(--primary-text-color, white);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-family: 'Diablo Heavy', Arial, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

h1::after, .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.description {
    text-align: center;
    color: var(--secondary-text-color, #999);
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Current Time Display */
.time-display {
    text-align: center;
    margin-bottom: 40px;
}

.time-display h3 {
    color: var(--secondary-text-color, #999);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.current-time {
    font-size: 2.5em;
    color: var(--header-bg-color, darkred);
    font-weight: bold;
    font-family: 'Diablo Heavy', 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Timers Grid */
.timers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.timer-card {
    background: var(--input-bg-color, #1a1a1a);
    border: 2px solid var(--input-border-color, darkred);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: visible;
}

/* Decorative corners */
.timer-card::after,
.timer-card::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #d4af37;
    opacity: 0.5;
    transition: opacity 0.3s;
    pointer-events: none;
}

.timer-card::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.timer-card::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

.timer-card:hover::before,
.timer-card:hover::after {
    opacity: 1;
}

.timer-card:hover {
    border-color: var(--button-hover-bg-color, red);
    box-shadow: var(--input-shadow, 0 0 15px rgba(255, 0, 0, 0.5));
    transform: translateY(-3px);
}

.timer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.timer-icon {
    font-size: 2em;
}

.timer-header h2 {
    color: var(--primary-text-color, white);
    font-size: 1.3em;
    margin: 0;
    font-family: 'Diablo Light', Arial, sans-serif;
}

.timer-desc {
    color: var(--secondary-text-color, #999);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.time-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--header-bg-color, darkred);
    font-family: 'Diablo Heavy', 'Courier New', monospace;
    line-height: 1;
    letter-spacing: 2px;
}

.time-label {
    font-size: 0.8em;
    color: var(--secondary-text-color, #999);
    text-transform: uppercase;
    margin-top: 5px;
}

.reset-time {
    text-align: center;
    color: var(--secondary-text-color, #999);
    font-size: 0.9em;
    padding-top: 15px;
    border-top: 1px solid #555;
}

.reset-time span {
    color: var(--primary-text-color, white);
    font-weight: bold;
}

/* Season Ending Soon Effect */
.timer-card.season-ending {
    border-color: #ff6b00;
    animation: season-pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
}

.timer-card.season-ending .timer-header h2 {
    color: #ff6b00;
}

.timer-card.season-ending .time-value {
    color: #ff6b00;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
    animation: number-glow 1.5s infinite;
}

.timer-card.season-ending .season-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b00, #ff9500);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 0.5px;
    animation: badge-pulse 2s infinite;
    z-index: 10;
}

@keyframes season-pulse {
    0%, 100% {
        border-color: #ff6b00;
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
    }
    50% {
        border-color: #ff9500;
        box-shadow: 0 0 30px rgba(255, 149, 0, 0.8);
    }
}

@keyframes number-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 107, 0, 1), 0 0 30px rgba(255, 149, 0, 0.6);
    }
}

@keyframes badge-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Shop Info */
.shop-info {
    background: var(--input-bg-color, #1a1a1a);
    border: 2px solid var(--input-border-color, darkred);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.shop-info h2,
.section-title {
    color: var(--primary-text-color, white);
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Diablo Heavy', Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before {
    content: '⟨';
    position: absolute;
    left: calc(50% - 150px);
    color: #d4af37;
    font-size: 1.2em;
    opacity: 0.7;
}

.section-title::after {
    content: '⟩';
    position: absolute;
    right: calc(50% - 150px);
    color: #d4af37;
    font-size: 1.2em;
    opacity: 0.7;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #000;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 20px;
}

.info-card h3 {
    color: var(--header-bg-color, darkred);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.info-card p {
    color: var(--secondary-text-color, #999);
    line-height: 1.6;
    font-size: 0.95em;
}

/* Resources */
.resources {
    background: var(--input-bg-color, #1a1a1a);
    border: 2px solid var(--input-border-color, darkred);
    border-radius: 12px;
    padding: 25px;
}

.resources h3 {
    color: var(--primary-text-color, white);
    text-align: center;
    margin-bottom: 20px;
}

.resource-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.resource-link {
    background: var(--button-bg-color, darkred);
    color: var(--button-text-color, white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.resource-link:hover {
    background: var(--button-hover-bg-color, red);
}

/* Light Theme */
[data-theme="light"] h1,
[data-theme="light"] .timer-header h2,
[data-theme="light"] .shop-info h2,
[data-theme="light"] .resources h3 {
    color: var(--primary-text-color) !important;
}

[data-theme="light"] .timer-card,
[data-theme="light"] .shop-info,
[data-theme="light"] .resources {
    background: white;
}

[data-theme="light"] .info-card {
    background: #f8f9fa;
    border-color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .current-time {
        font-size: 2em;
    }

    .timers-grid {
        grid-template-columns: 1fr;
    }

    .countdown {
        gap: 10px;
    }

    .time-value {
        font-size: 2em;
    }

    .time-block {
        min-width: 50px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
