:root {
    --bg-color: #0f0f13;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ba;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Ambient Glow */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(37, 37, 60, 0.4) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



main {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Main Clock Section */
.clock-container {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.clock-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.location-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.digital-clock {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.2em;
}

.digital-clock .colon {
    color: var(--text-secondary);
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.date-display {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.timezone-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Utility Grid */
.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Load Shedding Status */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 600;
}

.status-indicator.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Market Status */
.market-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ef4444;
    /* Default closed */
    box-shadow: 0 0 10px #ef4444;
}

.status-dot.open {
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
}

/* Buttons */
.controls {
    display: flex;
    gap: 1rem;
    width: 100%;
}

button[class^="btn-"] {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

button[class^="btn-"]:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Content Area */
.content-area {
    padding: 0 1rem;
    color: var(--text-secondary);
}

.content-area h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.ad-slot {
    margin-top: 2rem;
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .digital-clock {
        font-size: 15vw;
    }

    .clock-container {
        padding: 2rem 1rem;
    }
}

/* World Clock Styles */
.world-time-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.world-time-item:last-child {
    border-bottom: none;
}

.world-time-item .city {
    color: var(--text-secondary);
}

.world-time-item .time {
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Finance Block Styles */
.finance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.finance-item:last-child {
    border-bottom: none;
}

.finance-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.finance-item .value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

.finance-item .change {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.finance-item .change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Large Ad Rectangle */
.ad-slot.large-rectangle {
    width: 100%;
    max-width: 970px;
    /* Leaderboard size */
    height: 250px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.ad-slot.large-rectangle p {
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 700;
}