/* Clock 전용 스타일 */

/* 상하 여백 (스크롤 조정용) */
.spacer-top,
.spacer-bottom {
    height: 60vh;
    pointer-events: none;
}

.clock-container {
    text-align: center;
    user-select: none;
}

.clock-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* 시간 표시 */
.time {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 27, 84, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.time:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
    .time {
        color: #e0e0e0;
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    }
}

body.dark-mode .time {
    color: #e0e0e0;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* 날짜 표시 */
.date {
    font-size: clamp(1rem, 2.5vw, 2rem);
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 500;
    margin-top: 10px;
}

/* 타임존 래퍼 */
.timezone-wrapper {
    margin-top: 15px;
}

/* 타임존 */
.timezone {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.6;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.timezone:hover {
    opacity: 1;
    background-color: rgba(0, 27, 84, 0.05);
}

@media (prefers-color-scheme: dark) {
    .timezone:hover {
        background-color: rgba(68, 193, 196, 0.1);
    }
}

body.dark-mode .timezone:hover {
    background-color: rgba(68, 193, 196, 0.1);
}

/* 타임존 선택기 */
.timezone-selector {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 10px;
}

.timezone-selector.active {
    max-height: 400px;
    overflow-y: auto;
}

/* 타임존 리스트 */
.timezone-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
}

/* 타임존 아이템 */
.timezone-item {
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.6;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.timezone-item:hover {
    opacity: 1;
}

.timezone-item.active {
    opacity: 1;
    font-weight: 600;
    color: var(--brand-navy);
}

@media (prefers-color-scheme: dark) {
    .timezone-item.active {
        color: var(--brand-mint);
    }
}

body.dark-mode .timezone-item.active {
    color: var(--brand-mint);
}

/* 스크롤바 */
.timezone-selector::-webkit-scrollbar {
    width: 6px;
}

.timezone-selector::-webkit-scrollbar-track {
    background: transparent;
}

.timezone-selector::-webkit-scrollbar-thumb {
    background: var(--brand-navy);
    border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
    .timezone-selector::-webkit-scrollbar-thumb {
        background: var(--brand-mint);
    }
}

body.dark-mode .timezone-selector::-webkit-scrollbar-thumb {
    background: var(--brand-mint);
}


/* 전체화면 힌트 */
.fullscreen-hint {
    margin-top: 25px;
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.4;
}

/* 전체화면 모드 */
.fullscreen-mode .time {
    font-size: clamp(5.5rem, 17vw, 32rem);
}

.fullscreen-mode .date {
    font-size: clamp(1.8rem, 4.5vw, 4.5rem);
}

.fullscreen-mode .fullscreen-hint {
    display: none;
}

.fullscreen-mode .timezone-wrapper {
    display: none;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    /* clamp()로 자동 조정되므로 font-size 설정 불필요 */
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    /* clamp()로 자동 조정되므로 time, date font-size 설정 불필요 */

    .timezone {
        font-size: 0.9rem;
    }

    .fullscreen-hint {
        font-size: 0.7rem;
        margin-top: 20px;
    }

    .fullscreen-mode .timezone {
        font-size: 1rem;
        margin-top: 20px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    /* clamp()로 자동 조정되므로 font-size 설정 불필요 */
}

/* 애니메이션 - 페이드 인 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clock-display {
    animation: fadeIn 0.5s ease-out;
}
