@import url('color.css');
@import url('font.css');

.clock-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-family: 'pretendard';
    background: transparent;
    color: var(--maindiv-text-color);
}

/* 🎯 디지털 시계 스타일 */
.digital-container {
    text-align: center;
}

.digital-date {
    color: var(--maindiv-title-info-text);
    font-size: 10px;
    font-weight: 300;
    font-family: 'pretendard';
    letter-spacing: 1px;
}

.digital-time {
    color: var(--maindiv-text-color);
    font-size: 2.8em;
    font-weight: bold;
    font-family: 'pretendard';
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 8px rgb(from var(--maindiv-acc-text) r g b / 0.3);
}

.time-separator {
    color: var(--maindiv-acc-text);
    animation: blink 1s infinite;
    margin: 0 4px;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

/* 🎯 아날로그 시계 */
.analog-clock {
    position: relative;
}

.clock-hands {
    width: 120px;
    height: 120px;
    position: relative;
    background: rgb(from var(--maindiv-acc-text) r g b / 70%);
    border-radius: 50%;
    filter: drop-shadow(0px 3px 2px rgb(from var(--maindiv-title-text) r g b / 0.3));
}

.clock-hand {
    background: var(--maindiv-text-color);
    position: absolute;
    transform-origin: bottom center;
    left: 50%;
    bottom: 50%;
    border-radius: 2px;
    transition: all 0.1s ease;
    box-shadow: 0 0 4px rgb(from var(--maindiv-shadow-color) r g b / 0.3);
}

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

.minute-hand {
    width: 2px;
    height: 45px;
    margin-left: -1px;
    z-index: 2;
}

.clock-center {
    background: var(--maindiv-button-red);
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 6px rgb(from var(--maindiv-shadow-color) r g b / 0.4);
}

/* 🎯 간단한 시계 */
.simple-time {
    color: var(--maindiv-text-color);
    font-size: 3em;
    font-weight: 100;
    font-family: 'pretendard';
    letter-spacing: 1px;
    text-shadow: 0 2px 4px var(--maindiv-shadow-color);
}

/* 🎯 날짜만 */
.date-only {
    text-align: center;
}

.date-main {
    color: var(--maindiv-text-color);
    font-size: 25px;
    font-weight: bold;
    font-family: 'pretendard';
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px var(--maindiv-shadow-color);
}

.date-weekday {
    color: var(--maindiv-title-info-text);
    font-family: 'pretendard';
    font-size: 9px;
    font-weight: 300;
    opacity: 0.8;
}

/* 🎯 전체 날짜시간 */
.full-datetime {
    text-align: center;
}

.full-datetime .date-part {
    color: var(--maindiv-title-info-text);
    font-size: 8px;
    font-weight: 300;
    font-family: 'pretendard';
    opacity: 0.8;
}

.full-datetime .time-part {
    color: var(--maindiv-text-color);
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'pretendard';
    letter-spacing: 1px;
    text-shadow: 0 2px 4px var(--maindiv-shadow-color);
}

::-webkit-scrollbar {
    display: none;
}