/**
 * Advanced Clock Styles for OS-themed Personal Bio Website
 * clock.css
 */

/* Digital Clock Styles */
#digital-clock {
    position: absolute;
    top: 50px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px 20px;
    color: white;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    user-select: none;
    cursor: move;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#digital-clock.visible {
    transform: scale(1);
    opacity: 1;
}

.clock-time {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 174, 239, 0.7);
}

.clock-date {
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.7;
}

/* Analog Clock Styles */
#analog-clock {
    position: absolute;
    top: 100px;
    left: 100px;
    width: 150px;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    user-select: none;
    cursor: move;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#analog-clock.visible {
    transform: scale(1);
    opacity: 1;
}

.clock-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.hour-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hour-mark {
    position: absolute;
    width: 3px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    left: 50%;
    margin-left: -1.5px;
    top: 5px;
    transform-origin: 50% 50px;
}

.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    background-color: white;
    border-radius: 10px;
}

.hour-hand {
    height: 35px;
    width: 4px;
    margin-left: -2px;
    background-color: white;
    z-index: 3;
}

.minute-hand {
    height: 50px;
    width: 3px;
    margin-left: -1.5px;
    background-color: #00bcf2;
    z-index: 2;
}

.second-hand {
    height: 60px;
    width: 1px;
    margin-left: -0.5px;
    background-color: #ff4136;
    z-index: 1;
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    margin-left: -4px;
    background-color: #00bcf2;
    border-radius: 50%;
    z-index: 4;
}

/* Taskbar Date Display */
#date-display {
    padding: 0 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#date-display:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Taskbar Time Display Enhancements */
#time-display {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#time-display.clock-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Analog Clock Toggle Button */
#analog-clock-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#analog-clock-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
