/* assets/css/digital-clock-modern.css */

:root {
    --clock-font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --clock-font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --clock-font-retro: 'Press Start 2P', cursive;

    --theme-primary: #ffffff;
    --theme-bg: #0c0c0c;
    --theme-accent: #4caf50;
    --theme-glow: 0 0 20px rgba(255, 255, 255, 0.1);

    --panel-bg: rgba(255, 255, 255, 0.05);
    --panel-border: rgba(255, 255, 255, 0.1);
    --panel-blur: 15px;
}

/* Themes */
body.theme-midnight {
    --theme-primary: #ffffff;
    --theme-bg: #050505;
    --theme-glow: 0 0 30px rgba(255, 255, 255, 0.15);
}

body.theme-cyberpunk {
    --theme-primary: #00ffcc;
    --theme-bg: #0d0221;
    --theme-accent: #ff007f;
    --theme-glow: 0 0 25px rgba(0, 255, 204, 0.4), 0 0 50px rgba(0, 255, 204, 0.1);
}

body.theme-sunset {
    --theme-primary: #ffcc33;
    --theme-bg: #2b0b3d;
    --theme-accent: #ff5733;
    --theme-glow: 0 0 25px rgba(255, 204, 51, 0.3);
}

body.theme-matrix {
    --theme-primary: #00ff41;
    --theme-bg: #000000;
    --theme-accent: #003b00;
    --theme-glow: 0 0 20px rgba(0, 255, 65, 0.4), 0 0 40px rgba(0, 255, 65, 0.1);
}

/* Base Layout */
.tool-hero.bg-dark {
    background: var(--theme-bg) !important;
    position: relative;
    overflow: hidden;
    transition: background 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic Ambient Background */
.ambient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    z-index: 1;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.digital-clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    min-height: 65vh;
    position: relative;
    z-index: 5;
}

/* Clock Display */
.clock-display-wrapper {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.digital-clock-display {
    font-family: var(--clock-font-mono);
    font-size: clamp(4rem, 20vw, 15rem);
    font-weight: 800;
    color: var(--theme-primary);
    text-shadow: var(--theme-glow);
    text-align: center;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
}

.date-display {
    font-size: clamp(0.9rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* Day Progress Bar */
.day-progress-container {
    width: clamp(200px, 60%, 800px);
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 3rem;
    overflow: hidden;
    position: relative;
}

.day-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent));
    box-shadow: 0 0 10px var(--theme-primary);
    transition: width 1s linear;
}

.progress-label {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Controls Bar */
.clock-controls-bar {
    display: flex;
    gap: 1rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--panel-bg);
    padding: 1rem;
    border-radius: 100px;
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(var(--panel-blur));
}

.control-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.control-btn.active {
    color: #fff;
    background: var(--theme-accent);
}

.control-btn svg {
    width: 18px;
    height: 18px;
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 8px;
    margin-top: 1.5rem;
}

.theme-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.theme-dot:hover {
    transform: scale(1.2);
}

.theme-dot.active {
    border-color: #fff;
}

.dot-midnight {
    background: #333;
}

.dot-cyberpunk {
    background: #00ffcc;
}

.dot-sunset {
    background: #ff5733;
}

.dot-matrix {
    background: #00ff41;
}

/* Fullscreen Mode */
body.is-fullscreen .tool-hero {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.is-fullscreen .digital-clock-container {
    width: 100%;
    height: 100%;
    padding: 0;
}

body.is-fullscreen .clock-controls-bar,
body.is-fullscreen .main-header,
body.is-fullscreen footer,
body.is-fullscreen .content-area {
    display: none !important;
}

.exit-fullscreen-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10000;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s;
}

body.is-fullscreen .exit-fullscreen-btn {
    display: flex;
}

body.is-fullscreen:hover .exit-fullscreen-btn {
    opacity: 1;
}

/* Confetti Effect */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--theme-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
}

/* Responsive */
@media (max-width: 768px) {
    .digital-clock-display {
        font-size: 5rem;
    }

    .clock-controls-bar {
        border-radius: 30px;
        flex-direction: column;
        width: 90%;
    }

    .control-btn {
        width: 100%;
        justify-content: center;
    }
}