/* 태블릿 최적화 CSS */

/* 터치 인터페이스 최적화 */
button, a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

/* 입력 필드는 기본 터치 동작 허용 */
input, select, textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: auto;
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 로딩 애니메이션 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 답안 선택 버튼 호버 효과 */
.answer-choice {
    transition: all 0.2s ease-in-out;
}

.answer-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.answer-choice:active {
    transform: translateY(0);
}

/* 점수 카드 그라데이션 */
.score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 반응형 최적화 */
@media (max-width: 640px) {
    .grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* 입력 필드 명시적 허용 및 가시성 */
input, textarea, select {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    color: #F5F5F5 !important;
}

/* Placeholder 가시성 */
input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* 포커스 스타일 */
input:focus, button:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    ring-offset: 2px;
}

/* ===== 캘린더 방학 일정 커스텀 스타일 ===== */
/* 모든 캘린더 일정 글자 크기 조정 */
.fc-event,
.fc-event-title,
.fc-event-title-container {
    font-size: 0.75rem !important;
}

/* 방학 일정: 얇은 라인 스타일 + 투명도 조정 */
.vacation-event {
    background-color: rgba(139, 92, 246, 0.3) !important; /* 보라색, 투명도 30% */
    border-left: 3px solid #8B5CF6 !important; /* 왼쪽 강조선 */
    border-radius: 2px !important;
    padding: 2px 6px !important;
    height: 20px !important; /* 높이 축소 */
    min-height: 20px !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 월간 뷰에서 방학 일정 높이 더 축소 */
.fc-daygrid-event.vacation-event {
    height: 18px !important;
    min-height: 18px !important;
}

/* 방학 일정 화살표 아이콘 */
.vacation-arrow {
    font-weight: bold;
    margin-right: 4px;
    color: #8B5CF6;
}

/* 방학 일정 호버 효과 */
.vacation-event:hover {
    background-color: rgba(139, 92, 246, 0.5) !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* 방학 일정 제목 스타일 */
.vacation-event .fc-event-title,
.vacation-event .fc-event-title-container {
    font-size: 0.75rem !important;
    font-weight: 500;
    color: #FFFFFF !important; /* 흰색 */
}

/* 주간/일간 뷰에서 방학 일정 */
.fc-timegrid-event.vacation-event {
    border: none !important;
    border-left: 3px solid #8B5CF6 !important;
}