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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.25rem;
    color: #2563eb;
}

.logo {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2563eb;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: #f8fafc;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #64748b;
}

/* Sections */
.content-section {
    padding: 3rem 0;
}

.popular-comparisons,
.categories,
.comparisons-directory {
    padding: 3rem 0;
}

.popular-comparisons h2,
.categories h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3rem;
}

/* Grids */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.comparison-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comparison-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-category {
    font-size: 0.875rem;
    color: #2563eb;
    background: #dbeafe;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 1rem;
}

.card-overview {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Category Cards */
.category-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #64748b;
    margin-bottom: 1rem;
}

.category-count {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 500;
}

/* Filters */
.filters {
    background: #f8fafc;
    padding: 2rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input,
.category-select {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.search-input:focus,
.category-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Disclosure */
.disclosure {
    background: #fef3c7;
    padding: 3rem 0;
}

.disclosure-box {
    background: #fff;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.disclosure-box h3 {
    color: #92400e;
    margin-bottom: 1rem;
}

.disclosure-box p {
    color: #78350f;
}

/* Comparison Detail */
.comparison-detail {
    max-width: 800px;
    margin: 0 auto;
}

.comparison-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 2rem;
}

.comparison-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.comparison-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.comparison-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comparison-section {
    margin-bottom: 3rem;
}

.comparison-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5e9;
}

.comparison-section ul {
    list-style-position: inside;
    color: #64748b;
}

.comparison-section li {
    margin-bottom: 0.5rem;
}

.external-links {
    background: #f8fafc;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
}

.external-links h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.external-links ul {
    list-style: none;
}

.external-links a {
    color: #2563eb;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.external-links a:hover {
    text-decoration: underline;
}

.external-links a:last-child {
    border-bottom: none;
}

/* Content Layout */
.content-grid {
    display: grid;
    gap: 3rem;
}

.content-main {
    max-width: 800px;
}

.content-main h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.content-main h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem 0;
}

.content-main p {
    color: #64748b;
    margin-bottom: 1rem;
}

.content-main ul {
    color: #64748b;
    margin: 1rem 0 1rem 2rem;
}

.content-main li {
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
}

.contact-info {
    padding: 1rem 0;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #64748b;
}

.contact-item small {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #fff;
    padding: 1rem;
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Utilities */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.not-found {
    text-align: center;
    padding: 4rem 0;
}

.not-found h1 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.not-found p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .comparison-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comparison-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .filter-controls {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .content-main ul {
    margin: 1rem 2rem 1rem 0;
}

[dir="rtl"] .comparison-section ul {
    list-style-position: inside;
    text-align: right;
}