/* ================================================
   iPad Air 가로화면 최적화 CSS
   해상도: 2360 x 1640 (논리 해상도: 1180 x 820)
   ================================================ */

/* iPad Air 가로 모드 (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {

    /* 전체 레이아웃 */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }

    /* 컨테이너 최대 너비 증가 */
    .container,
    .container-fluid {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* 터치 타겟 크기 (최소 48x48px) */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
        font-size: 16px;
    }

    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px;
        padding: 0.75rem 1rem;
    }

    .form-check-input {
        width: 24px;
        height: 24px;
        margin-top: 0;
    }

    /* 카드 레이아웃 - 3열로 표시 */
    .disposal-removal-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* 모달 크기 조정 */
    .modal-dialog {
        max-width: 700px;
    }

    /* 테이블 폰트 크기 */
    table {
        font-size: 16px;
    }

    table th,
    table td {
        padding: 1rem;
    }

    /* 제스처 영역 확대 */
    .clickable,
    .glass-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* 스크롤 영역 터치 최적화 */
    .overflow-auto,
    .overflow-y-auto {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* 상품 이미지 크기 조정 */
    .product-image-disposal {
        width: 100px !important;
        height: 100px !important;
    }

    /* 페이지 헤더 */
    .page-header {
        padding: 3rem 2rem !important;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    /* 필터 카드 */
    .filter-card {
        padding: 2rem !important;
    }

    /* 통계 카드 */
    .dashboard-card {
        margin-bottom: 2rem;
    }

    .dashboard-card h2,
    .dashboard-card .fs-2 {
        font-size: 2.5rem !important;
    }

    /* 리스트 아이템 간격 */
    .list-group-item {
        padding: 1.5rem !important;
        margin-bottom: 0.75rem;
    }

    /* 배지 크기 */
    .badge {
        font-size: 14px;
        padding: 0.5em 1em;
    }

    /* 폼 라벨 */
    .form-label {
        font-size: 16px;
        font-weight: 600;
    }

    /* 버튼 그룹 */
    .btn-group .btn {
        min-width: 120px;
    }

    /* 페이지네이션 */
    .pagination .page-link {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    /* 상세 페이지 정보 카드 */
    .info-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    /* 이미지 갤러리 (사진 첨부용) */
    .photo-gallery {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .photo-gallery img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 0.5rem;
    }

    /* 드래그 앤 드롭 영역 */
    .drop-zone {
        min-height: 200px;
        font-size: 18px;
        padding: 2rem;
    }

    /* Alert 메시지 */
    .alert {
        font-size: 16px;
        padding: 1.25rem;
    }

    /* 상태 배지 */
    .status-badge {
        font-size: 14px;
        padding: 0.75em 1.5em;
    }

    /* 차트 높이 조정 */
    canvas {
        max-height: 350px !important;
    }
}

/* iPad Pro 12.9인치 대응 (가로 1366px+) */
@media (min-width: 1366px) and (max-width: 1500px) and (orientation: landscape) {
    .disposal-removal-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo-gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 터치 최적화 - 모든 태블릿 */
@media (hover: none) and (pointer: coarse) {

    /* 호버 효과를 터치 효과로 변경 */
    .btn:hover {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    .glass-card:hover {
        transform: translateY(0);
    }

    /* 롱 프레스 방지 */
    * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* 텍스트 입력은 선택 가능 */
    input,
    textarea,
    [contenteditable] {
        -webkit-user-select: auto;
        user-select: auto;
    }

    /* 터치 피드백 */
    button,
    .btn,
    a {
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
    }
}