:root {
    --primary: #dc2626;
    --secondary: #991b1b;
    --accent: #16a34a;
    --bg-primary: #fef2f2;
    --bg-secondary: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-radius: 16px;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(220,38,38,0.3);
}

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

.logo {
    font-size: 26px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo span:last-child { color: #fef08a; }

.nav { display: flex; gap: 6px; }

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🏷️';
    position: absolute;
    font-size: 300px;
    opacity: 0.1;
    top: -50px;
    right: -50px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 18px;
}

/* Grids */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.tool-card:hover::after { transform: scaleX(1); }

.tool-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.tool-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.tool-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.article-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.article-image { display: block; overflow: hidden; }

.article-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img { transform: scale(1.08); }

.article-info { padding: 24px; }

.article-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p { opacity: 0.9; font-size: 18px; }

/* Cards & Forms */
.card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 36px;
    box-shadow: var(--card-shadow);
}

.form-group { margin-bottom: 24px; }

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 15px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220,38,38,0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220,38,38,0.35);
}

.btn-secondary {
    background: var(--accent);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22,163,74,0.35);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fef08a;
}

.footer p, .footer a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 2;
    text-decoration: none;
}

.footer a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* Article Content */
.article-content { max-width: 850px; margin: 0 auto; padding: 60px 24px; }
.article-content h2 { font-size: 28px; margin: 48px 0 20px; color: var(--primary); font-weight: 800; }
.article-content p { font-size: 17px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 24px; }
.article-content .lead { font-size: 20px; color: var(--text-primary); font-weight: 600; }
.article-content img { width: 100%; border-radius: 12px; margin: 32px 0; }
.article-tags { display: flex; gap: 10px; margin-top: 48px; flex-wrap: wrap; }
.tag { padding: 8px 16px; background: var(--bg-primary); border-radius: 20px; font-size: 14px; color: var(--primary); font-weight: 600; border: 2px solid var(--primary); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-card { background: var(--bg-secondary); padding: 36px 24px; border-radius: var(--border-radius); box-shadow: var(--card-shadow); }
.stat-number { font-size: 48px; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-secondary); margin-top: 8px; font-weight: 600; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 34px; }
    .nav { display: none; }
    .tools-grid, .articles-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .mobile-menu-btn { display: block; color: white; background: none; border: none; font-size: 24px; cursor: pointer; }
}

.mobile-menu-btn { display: none; }
