* {
    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 & Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(23, 70%, 50%);
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: hsl(23, 70%, 50%);
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: hsl(23, 70%, 70%);
}

.cookie-btn {
    background: hsl(23, 70%, 50%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, hsl(23, 70%, 50%) 0%, hsl(23, 60%, 40%) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: hsl(23, 70%, 50%);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: hsl(23, 70%, 50%);
    border: 2px solid hsl(23, 70%, 50%);
}

.btn-secondary:hover {
    background: hsl(23, 70%, 50%);
    color: white;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
}

/* Sections */
.popular-comparisons,
.features,
.content-section {
    padding: 4rem 0;
}

.popular-comparisons h2,
.features h2,
.content-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.comparison-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.comparison-card-content {
    padding: 1.5rem;
}

.comparison-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.comparison-category {
    display: inline-block;
    background: hsl(23, 70%, 95%);
    color: hsl(23, 70%, 40%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.comparison-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: hsl(23, 70%, 50%);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Comparison Details */
.comparison-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.comparison-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-header img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comparison-section {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.comparison-section h3 {
    margin-bottom: 1rem;
    color: hsl(23, 70%, 50%);
    border-bottom: 2px solid hsl(23, 70%, 50%);
    padding-bottom: 0.5rem;
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.comparison-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: hsl(23, 70%, 50%);
    font-weight: bold;
}

.comparison-list.cons li:before {
    content: "✗";
    color: #dc3545;
}

.external-links {
    margin-top: 2rem;
    padding: 1.5rem;
    background: hsl(23, 70%, 95%);
    border-radius: 8px;
}

.external-links h4 {
    margin-bottom: 1rem;
    color: hsl(23, 70%, 40%);
}

.external-links a {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.5rem 1rem;
    background: white;
    color: hsl(23, 70%, 50%);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid hsl(23, 70%, 50%);
    transition: all 0.3s ease;
}

.external-links a:hover {
    background: hsl(23, 70%, 50%);
    color: white;
}

/* Search and Filter */
.search-filter {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.search-filter-content {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: hsl(23, 70%, 50%);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: hsl(23, 70%, 50%);
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: hsl(23, 70%, 50%);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: hsl(23, 70%, 50%);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    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 {
    margin-bottom: 1rem;
    color: hsl(23, 70%, 70%);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: hsl(23, 70%, 70%);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .search-filter-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input,
    .filter-select {
        min-width: auto;
        width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .popular-comparisons,
    .features,
    .content-section {
        padding: 2rem 0;
    }

    .comparison-card-content {
        padding: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

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

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

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

[dir="rtl"] .comparison-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .comparison-list li:before {
    left: auto;
    right: 0;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }