/* Modern Light / Clean GitHub-style Aesthetic Tokens */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent-blue: #0052cc;
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Typography & Accent Elements */
.gradient-text {
    color: var(--primary);
    background: linear-gradient(135deg, #1d4ed8 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 48px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h2, .section-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.link-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.link-more:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    border-color: var(--border-dark);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.825rem;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Hero Section */
.hero-section {
    padding: 64px 0 48px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--primary-light);
    border: 1px solid #bfdbfe;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 28px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
    max-width: 650px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

/* Category Cards */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.card-icon.blue { background: #eff6ff; }
.card-icon.purple { background: #f3e8ff; }
.card-icon.green { background: #ecfdf5; }
.card-icon.orange { background: #fffbeeb; }
.card-icon.red { background: #fef2f2; }
.card-icon.cyan { background: #ecfeff; }

.category-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Review Cards */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.review-card.featured {
    border-color: #93c5fd;
    background: #f8fafc;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-top {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary);
    color: white;
    font-size: 0.725rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 10px;
}

.badge-top.secondary {
    background: #e2e8f0;
    color: var(--text-secondary);
}

.review-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.rating {
    font-size: 0.85rem;
    color: #d97706;
    margin-bottom: 14px;
}

.rating span {
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 4px;
}

.features-list {
    margin-bottom: 16px;
}

.features-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-actions .btn {
    flex: 1;
}

/* Clean Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: var(--transition);
}

.article-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-dark);
}

.article-tag {
    padding: 3px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.article-tag.green { background: #ecfdf5; color: var(--accent-green-dark); }
.article-tag.purple { background: #f3e8ff; color: #7e22ce; }
.article-tag.orange { background: #fffbeeb; color: #b45309; }

.article-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.article-info h4 a:hover {
    color: var(--primary);
}

.article-meta {
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* Sub-page Table Styles (Clean Table) */
.data-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-card-hover);
}

.tag-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-status.online { background: #ecfdf5; color: var(--accent-green-dark); }
.tag-status.fast { background: var(--primary-light); color: var(--primary); }

/* Coupon Box */
.coupon-card {
    background: var(--bg-card);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.code-box {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary);
    border: 1px solid var(--border);
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 10px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 20px !important;
    font-size: 0.775rem !important;
    color: var(--text-muted) !important;
}
