/* AR Web App Styles */

/* Canvas */
#recordCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Action Buttons */
.action-buttons {
    position: fixed;
    z-index: 1000;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease-in-out;
}

/* 세로 모드 → 하단 중앙 */
.portrait {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
}

/* 가로 모드 → 오른쪽 중앙 */
.landscape {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    flex-direction: column;
}

.btn-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 1.5rem;
    touch-action: manipulation;
}

/* 작은 보조 버튼 */
.btn-circle-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    touch-action: manipulation;
    background-color: rgba(108, 117, 125, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-circle-sm:hover {
    background-color: rgba(108, 117, 125, 0.5) !important;
    color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* 리셋 버튼 컨테이너 (좌하단) */
.reset-button-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

/* 설정 버튼 컨테이너 (우상단) */
.settings-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* 보조 버튼 컨테이너 (deprecated - 하위 호환성) */
.secondary-buttons {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.secondary-buttons > * {
    pointer-events: auto;
}

/* AR Start Guide */
.ar-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.ar-guide.hidden {
    display: none;
}

.guide-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: center;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.3;
    }
}

.ar-guide .btn {
    min-width: 180px;
    font-size: 1.3rem;
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    max-width: calc(100vw - 40px);
    width: auto;
}

.toast-container .toast {
    max-width: 100%;
    margin: 0 auto;
}

/* Recording Indicator */
.recording-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1500;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Utility Classes */
.hidden {
    display: none !important;
}
