/* Base Layout */
body {
    -webkit-tap-highlight-color: transparent;
}

/* Animations */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
    }
}

/* Item Cards (Days, Events) */
.chrono-card {
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid #4f46e5;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 100px;
    text-align: center;
}

.chrono-card:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
    z-index: 50;
}

/* Drop Slots */
.chrono-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    min-width: 100px;
    height: 70px;
    /* Adjust based on card content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chrono-slot.hovered {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.8);
}

/* Clock Numbers */
.clock-num {
    position: absolute;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-family: 'Exo 2', sans-serif;
    font-weight: bold;
    color: #1e293b;
    pointer-events: none;
}

/* Timeline specific */
.timeline-card-lg {
    min-width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-slot-lg {
    min-width: 120px;
    height: 120px;
}

/* Clock Hand Interactivity */
.clock-hand {
    cursor: grab;
    transition: filter 0.2s, transform 0.1s;
}

.clock-hand:hover {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(79, 70, 229, 0.6));
}

.clock-hand.dragging {
    cursor: grabbing;
    filter: brightness(1.5) drop-shadow(0 0 15px rgba(79, 70, 229, 0.9));
    z-index: 100;
}

.clock-hand.snapping {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* High-quality claymation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('clay_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}