:root {
    --primary-color: #0066ff;
    --primary-gradient: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.background-blob {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, rgba(0, 102, 255, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
}

.update-badge {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

header h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 15px auto 0;
}

/* Filters */
.filters-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.filter-item select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.button-group {
    display: flex;
    gap: 10px;
}

.apply-btn {
    flex: 2;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.apply-btn:hover {
    opacity: 0.9;
}

.reset-btn {
    flex: 1;
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.reset-btn:hover {
    background: #f1f5f9;
}

/* Model Grid */
.model-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.model-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.model-card.recommended {
    border: 2px solid var(--primary-color);
    background: linear-gradient(to bottom right, #fff, #f0f7ff);
}

.badge {
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 4px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.license-tag {
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
}

.description {
    color: var(--text-main);
    font-size: 1.05rem;
    margin: 0 0 25px;
}

/* Score Section */
.score-section {
    margin-bottom: 25px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.score-header strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.score-bar-container {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.score-bar-container.main {
    height: 12px;
}

.score-bar {
    height: 100%;
    border-radius: 5px;
}

.score-bar.premium {
    background: var(--primary-gradient);
}

.score-bar.high {
    background: #10b981;
}

.score-bar.medium {
    background: #f59e0b;
}

.score-bar.low {
    background: #ef4444;
}

/* Category Scores Grid */
.category-scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cat-score-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cat-bar-container {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.cat-bar {
    height: 100%;
    background: var(--text-muted);
    opacity: 0.6;
    border-radius: 2px;
}

.model-card:hover .cat-bar {
    background: var(--primary-color);
    opacity: 0.8;
}

/* Meta Grid */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.meta-item {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item .icon {
    font-size: 1.2rem;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.08);
    padding: 4px 12px;
    border-radius: 8px;
}

/* Weekly Note */
.weekly-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.weekly-note strong {
    color: var(--primary-color);
}

/* Empty State Improved */
.no-results {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: 24px;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-results p {
    margin-bottom: 30px;
}

.inline-reset-btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.inline-reset-btn:hover {
    opacity: 0.9;
}

footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
    header h1 {
        font-size: 2.2rem;
    }

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

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

    .card-header {
        flex-direction: column;
        gap: 10px;
    }
}