/* 왼쪽 사이드바 */
.sidebar {
    position: fixed;
    top: 2rem;
    left: calc(2rem - 5px);
    width: clamp(240px, 24vw, 370px);
    height: calc(100vh - 4rem);
    background: white;
    border-radius: 1rem;
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.1);
    padding: clamp(0.5rem, 1vw, 1rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 남은 질문 수 표시 */
.remaining-questions {
    background: white;
    border-radius: clamp(0.5rem, 1vw, 1rem);
    padding: clamp(0.5rem, 1vw, 1rem);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
                0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: auto;
    min-height: 60px;
    transition: box-shadow 0.3s ease;
    margin: 0;
    position: relative;
    z-index: 1;
}

.remaining-questions:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

.remaining-text {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: #64748b;
    line-height: 1.2;
}

.remaining-count {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

/* 타이머 컨테이너 */
.timer-container {
    background: white;
    border-radius: clamp(0.5rem, 1vw, 1rem);
    padding: clamp(0.75rem, 1vw, 1rem);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
                0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 120px;
    transition: box-shadow 0.3s ease;
    margin: 0;
    position: relative;
    z-index: 1;
}

.timer-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 시계 크기 */
.timer-clock {
    font-size: clamp(3.2rem, 6.48vw, 6.48rem);
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    font-family: 'Noto Sans Mono', monospace;
    letter-spacing: -2px;
    line-height: 1;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .sidebar {
        width: clamp(220px, 20vw, 320px);
    }

    .sidebar-image-container {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 180px;
        flex-direction: row;
        justify-content: space-between;
        padding: clamp(0.75rem, 1vw, 1rem);
        gap: clamp(0.75rem, 1vw, 1rem);
        background: #f8fafc;
        border-radius: 0;
        z-index: 10;
        overflow-y: visible;
    }
    
    .sidebar-top {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .sidebar-image-container {
        height: 129px;
    }

    .remaining-questions,
    .timer-container {
        flex: 1;
        padding: clamp(0.75rem, 1vw, 1rem);
        height: auto;
        min-height: 100px;
    }

    .remaining-text {
        font-size: clamp(1rem, 1.4vw, 1.4rem);
    }

    .remaining-count {
        font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    }

    .timer-clock {
        font-size: clamp(3.5rem, 4.5vw, 4.5rem);
    }

    .sidebar-image-container img {
        padding: 0.25rem;
    }
}

@media (max-width: 576px) {
    .sidebar {
        flex-direction: column;
        height: auto;
        min-height: 240px;
        padding: clamp(0.5rem, 0.75vw, 0.75rem);
        gap: clamp(0.5rem, 0.75vw, 0.75rem);
    }

    .sidebar-top {
        flex-direction: column;
        width: 100%;
    }

    .sidebar-image-container {
        height: 108px;
    }
    
    .remaining-questions,
    .timer-container {
        width: 100%;
        height: auto;
        min-height: 80px;
    }

    .remaining-text {
        font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    }

    .remaining-count {
        font-size: clamp(1.6rem, 2vw, 2rem);
    }

    .timer-clock {
        font-size: clamp(3rem, 4vw, 4rem);
    }

    .sidebar-image-container img {
        padding: 0.25rem;
    }
}

/* 이미지 컨테이너 스타일 */
.sidebar-image-container {
    width: 100%;
    height: 172px;
    background: transparent;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.sidebar-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    background-color: #f8fafc;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    gap: 0.5rem;
    color: #64748b;
}

.image-placeholder i {
    font-size: 2rem;
}

.image-placeholder span {
    font-size: 0.9rem;
    text-align: center;
} 