/* 기본 배경 및 폰트 설정 */
body {
    background-color: #0f111a;
    color: white;
    font-family: 'Pretendard', sans-serif;
}
.accent { color: #00d4ff; }

/* 네비게이션 바 투명도 조절 */
.navbar-dark {
    background-color: rgba(26, 29, 41, 0.9) !important;
    border-bottom: 1px solid #333;
}

/* 메인 배너 (히어로 섹션) */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, #1a1d29 0%, #0f111a 100%);
    text-align: center;
}

/* 필터 버튼 스타일 */
.budget-btn {
    border: 1px solid #333;
    color: white;
    background-color: transparent;
    transition: 0.3s;
    font-size: 0.9rem;
    margin-right: 5px;
    margin-bottom: 10px;
    padding: 8px 18px;
    border-radius: 20px;
}
.budget-btn:hover, .budget-btn.active {
    background-color: #00d4ff;
    color: black;
    border-color: #00d4ff;
    font-weight: bold;
}

/* 프리셋/장비 카드 공통 스타일 */
.card-preset {
    background: #1a1d29;
    border: 1px solid #333;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-preset:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.15);
}

/* 카드 내부 텍스트 스타일 */
.card-preset h5 {
    color: #ffffff !important;
    margin-top: 10px;
    font-weight: 700;
}
.card-preset .text-muted {
    color: #adb5bd !important;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* 이미지 컨테이너 */
.card-img-container {
    height: 200px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}
.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 이미지가 잘리지 않게 조정 */
}

/* 가격 및 뱃지 */
.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #00d4ff;
    letter-spacing: -0.5px;
}
.badge {
    font-weight: 600;
    padding: 5px 10px;
}
.w-fit-content { width: fit-content; }

/* [NEW] 뷰 전환 버튼 스타일 */
.view-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 25px;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: bold;
}
.view-btn.active {
    background: #0dcaf0; /* 부트스트랩 info 색상 */
    color: #000;
}
.view-btn:hover:not(.active) {
    color: #fff;
    background: #333;
}

/* [NEW] 프리셋 이미지 그리드 스타일 */
.preset-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
}
.grid-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.grid-item.no-img {
    background-color: #333;
}
/* 장비가 1개일 때 */
.preset-img-grid:has(.grid-item:nth-child(1):last-child) {
    grid-template-columns: 1fr;
}
/* 장비가 3개일 때 (첫 번째 이미지를 크게) */
.preset-img-grid:has(.grid-item:nth-child(3):last-child) .grid-item:first-child {
    grid-row: span 2;
}
/* 장비가 4개 초과일 때 +N 표시 */
.grid-item.more-count {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}