/**
 * packs.css - 테마 팩 관련 스타일
 * 
 * 섹션 구성:
 * 1. 팩 그리드
 * 2. 팩 아이템
 * 3. 팩 상세 모달
 * 4. 미니 기프트 카드 (팩 상세용)
 * 5. 전용 기프트 스타일
 */

/* ============================================
   1. 팩 그리드
   ============================================ */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    gap: 0.9375rem;
    padding: 1.25rem;
    align-items: center;
    min-width: 60rem;
}

/* ============================================
   2. 팩 아이템
   ============================================ */
.pack-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.2s ease;
    background-color: transparent;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-item img {
    width: 100%;
    height: auto;
    /* object-fit: cover; */
    display: block;
    /* zoom: 0.6; */
}

.pack-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #ffae00;
    box-shadow: 
        0 0 15px rgba(255, 174, 0, 0.6),
        inset 0 0 10px rgba(255, 174, 0, 0.2);
    z-index: 10;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.1rem;
}

/* Pack Detail Modal */
#pack-detail-modal .modal-content,
.pack-detail-modal .modal-content {
    width: 75rem;
    max-width: 75rem;
    min-width: 75rem;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-radius: 0.625rem;
    overflow: hidden;
}

.pack-detail-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-width: 73rem;
}

.pack-detail-left {
    width: 21.875rem;
    min-width: 21.875rem;
    flex-shrink: 0;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-right: 1px solid #333;
}

.pack-detail-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.5);
}

.pack-detail-right {
    flex: 1;
    min-width: 50rem;
    padding: 1.5625rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pack-detail-right h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 0.625rem;
}

.pack-floors-container {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    background-color: #252525;
    padding: 0.9375rem;
    border-radius: 0.375rem;
}

.floor-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 0.3125rem;
}

.pack-floors-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floor-row {
    display: flex;
    align-items: center;
}

.floor-row .label {
    font-weight: bold;
    color: #aaa;
    width: 6.25rem;
    flex-shrink: 0;
    margin-right: 1.25rem;
}

.floor-info span:last-child {
    flex: 1;
    text-align: right;
    color: #fff;
}

.pack-gifts-section h3 {
    margin: 0 0 0.9375rem 0;
    font-size: 1.2rem;
    color: #ffffff !important;
}

.pack-gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.625rem, 1fr));
    gap: 0.625rem;
}

.no-gifts {
    color: #666;
    font-style: italic;
}

/* Mini Gift Card Overrides */
.mini-gift-card {
    padding: 0.375rem; /* Reduced padding */
}

.mini-gift-card .gift-image-container {
    width: 5.625rem;
    height: 5.625rem;
}

.mini-gift-card .gift-image-placeholder {
    width: 3.75rem;
    height: 3.75rem;
}

.mini-gift-card .gift-tier-badge {
    font-size: 1.5rem;
    top: -0.25rem;
    left: 0.25rem;
}

.mini-gift-card .gift-attribute-icon {
    width: 1.5rem;
    height: 1.5rem;
    bottom: 0.125rem;
    right: 0.125rem;
}

.mini-gift-card:hover {
    transform: translateY(-4px) scale(1.05);
}

.mini-gift-card:hover .gift-image-container {
    filter: brightness(1.1);
}

/* Responsive - DISABLED for fixed sizing */
/*
@media (max-width: 768px) {
    .pack-detail-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .pack-detail-left, .pack-detail-right {
        width: 100%;
        border-right: none;
    }

    .pack-detail-left {
        height: 200px;
        border-bottom: 1px solid #333;
    }
    
    .pack-detail-right {
        overflow-y: visible;
    }
}
*/

/* Exclusive Gift Style (팩 상세 모달용) */
.exclusive-gift {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4) !important;
}

/* Floor Filter Bar */
.floor-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3125rem;
    align-items: center;
    margin: 0 0.625rem;
    flex-shrink: 0;
}

.floor-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(139, 115, 85, 0.5);
    background: rgba(42, 36, 25, 0.6);
    color: #c4b59d;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.floor-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

.floor-btn.active {
    background: var(--gold-accent);
    color: #1a1a1a;
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Difficulty Filters */
.difficulty-filters {
    display: flex;
    gap: 0.3125rem;
    margin-right: 0.625rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.difficulty-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(139, 115, 85, 0.5);
    background: rgba(42, 36, 25, 0.6);
    color: #c4b59d;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.difficulty-btn:hover {
    transform: translateY(-2px);
}

/* Normal Mode Button - 연두색 */
.difficulty-btn[data-difficulty="normal"] {
    color: #aaffaa;
    border: 1px solid rgba(170, 255, 170, 0.3);
}

.difficulty-btn[data-difficulty="normal"]:hover {
    background: rgba(170, 255, 170, 0.2);
    box-shadow: 0 0 8px rgba(170, 255, 170, 0.3);
}

.difficulty-btn[data-difficulty="normal"].active {
    background: #90ee90;
    color: #1a1a1a;
    border-color: #90ee90;
    box-shadow: 0 0 12px rgba(144, 238, 144, 0.6);
}

/* Hard Mode Button - 다홍색 */
.difficulty-btn[data-difficulty="hard"] {
    color: #ff9999;
    border: 1px solid rgba(255, 153, 153, 0.3);
}

.difficulty-btn[data-difficulty="hard"]:hover {
    background: rgba(255, 153, 153, 0.2);
    box-shadow: 0 0 8px rgba(255, 153, 153, 0.3);
}

.difficulty-btn[data-difficulty="hard"].active {
    background: #ff6347;
    color: #1a1a1a;
    border-color: #ff6347;
    box-shadow: 0 0 12px rgba(255, 99, 71, 0.6);
}

/* Extreme Button Special Style */
.difficulty-btn[data-difficulty="extreme"] {
    border-color: rgba(220, 20, 60, 0.5);
    color: #ff6b6b;
}

.difficulty-btn[data-difficulty="extreme"]:hover {
    background: rgba(220, 20, 60, 0.2);
    border-color: #dc143c;
    color: #ff4d4d;
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
}

.difficulty-btn[data-difficulty="extreme"].active {
    background: #dc143c;
    color: white;
    border-color: #dc143c;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.4);
}
