:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 네비게이션 바 */
.navbar {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: var(--bg-secondary);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* 메인 컨텐츠 */
.main-content {
    min-height: calc(100vh - 64px - 80px);
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 헤더 섹션 */
.header-section {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* 필터 섹션 */
.filter-section {
    margin-bottom: 32px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-primary);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 카드 그리드 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* 카드 아이템 */
.card-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-item.hidden {
    display: none;
}

/* 카드 배지 */
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    color: white;
}

.card-badge.best {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.card-badge.premium {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
}

/* 카드 이미지 */
.card-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* 카드 컨텐츠 */
.card-content {
    padding: 24px;
}

.card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 카드 정보 */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 카드 상세 정보 */
.card-details {
    margin-bottom: 16px;
}

.detail-item {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* 세금 혜택 태그 */
.tax-benefits {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tax-tag {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.tax-tag.available {
    background-color: #d1fae5;
    color: #065f46;
}

.tax-tag.unavailable {
    background-color: #fee2e2;
    color: #991b1b;
}


/* 안내 섹션 */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.info-box {
    background-color: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.info-box.warning {
    border-left-color: var(--warning-color);
}

.info-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.info-box li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.info-box.warning li:before {
    color: var(--warning-color);
}

/* 푸터 */
.footer {
    background-color: white;
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 16px 20px;
        gap: 12px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
    }

    .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 24px 16px;
    }

    .card-content {
        padding: 20px;
    }

    .card-name {
        font-size: 18px;
    }
}
