/* ==========================================
   WIA Books - 도서 상세 페이지 스타일
   ========================================== */

:root {
    --wia-primary: #4A5FC1;
    --wia-primary-dark: #3d4f9d;
    --wia-success: #22c55e;
    --wia-warning: #f59e0b;
    --wia-info: #3b82f6;
    --wia-gray-50: #f9fafb;
    --wia-gray-100: #f3f4f6;
    --wia-gray-200: #e5e7eb;
    --wia-gray-300: #d1d5db;
    --wia-gray-700: #374151;
    --wia-gray-900: #111827;
}

.wia-book-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--wia-gray-50);
}

/* ==========================================
   1️⃣ HERO 섹션
   ========================================== */
.wia-hero-section {
    background: white;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hero-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 48px;
    align-items: start;
}

.hero-left .book-cover {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.book-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--wia-gray-900);
    margin: 0;
    line-height: 1.2;
}

.book-meta {
    display: flex;
    gap: 24px;
    font-size: 18px;
    color: var(--wia-gray-700);
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-vr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-braille {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-wiabook {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.book-price {
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 95, 193, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-left: 4px solid var(--wia-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--wia-primary);
}

.price-note {
    color: var(--wia-gray-700);
    font-size: 14px;
}

.book-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.book-actions .edd-submit {
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.book-actions .edd-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================
   공통 섹션 스타일
   ========================================== */
.wia-content-section {
    background: white;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--wia-gray-900);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--wia-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--wia-gray-700);
}

.section-content p {
    margin-bottom: 16px;
}

.section-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--wia-gray-900);
    margin: 32px 0 16px 0;
}

/* ==========================================
   목차 섹션
   ========================================== */
.wia-toc-section .toc-content {
    background: var(--wia-gray-50);
    padding: 32px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 2;
}

/* ==========================================
   상세 정보 테이블
   ========================================== */
.details-table table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th,
.details-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--wia-gray-200);
}

.details-table th {
    font-weight: 600;
    color: var(--wia-gray-900);
    width: 150px;
    background: var(--wia-gray-50);
}

.details-table td {
    color: var(--wia-gray-700);
}

.details-table tr:last-child th,
.details-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   Book Detail Page 이미지
   ========================================== */
.wia-detail-image-section .detail-page-image {
    text-align: center;
}

.wia-detail-image-section .detail-page-image img {
    max-width: 754px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   VR 환경 섹션
   ========================================== */
.vr-environments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vr-env-item {
    padding: 24px;
    background: linear-gradient(135deg, rgba(74, 95, 193, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.vr-env-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(74, 95, 193, 0.15);
}

.vr-env-item .vr-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.vr-env-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--wia-gray-900);
    margin: 0 0 8px 0;
}

.vr-env-item p {
    font-size: 14px;
    color: var(--wia-gray-700);
    margin: 0;
}

/* ==========================================
   리뷰 섹션
   ========================================== */
.wia-reviews-section .reviews-content {
    padding: 24px;
    background: var(--wia-gray-50);
    border-radius: 12px;
}

/* ==========================================
   반응형
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .vr-environments {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wia-book-detail-page {
        padding: 10px;
    }
    
    .wia-hero-section,
    .wia-content-section {
        padding: 24px;
    }
    
    .book-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .vr-environments {
        grid-template-columns: 1fr;
    }
    
    .book-actions {
        flex-direction: column;
    }
    
    .book-actions .edd-submit {
        width: 100%;
    }
}
