/* Reset and Base Styles */
* {
    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 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.nav-container {
    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: 32px;
    height: 32px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

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

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

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

/* Hero Section */
.hero {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

/* Page Header */
.page-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

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

.comparison-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

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

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

.comparison-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.comparison-card .category {
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.comparison-card .btn {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s;
}

.comparison-card .btn:hover {
    background-color: #2980b9;
}

/* Popular Comparisons */
.popular-comparisons {
    padding: 4rem 0;
}

.popular-comparisons h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Features */
.features {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.value-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.value-card h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input,
.category-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

.category-select {
    min-width: 200px;
}

/* Comparison Detail */
.comparison-detail {
    padding: 2rem 0;
}

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

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

.detail-header h1 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.detail-header .category {
    color: #3498db;
    font-weight: 500;
}

.detail-content {
    display: grid;
    gap: 3rem;
}

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

.detail-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.detail-section ul {
    list-style-position: inside;
    color: #555;
}

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

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pros {
    background: #d4edda;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.cons {
    background: #f8d7da;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.external-links {
    margin-top: 2rem;
}

.external-links a {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.external-links a:hover {
    background-color: #2980b9;
}

/* Contact */
.contact-content {
    padding: 3rem 0;
}

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

.contact-details {
    margin-top: 2rem;
}

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

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

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

/* Forms */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

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

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

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

.form-input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Legal Content */
.legal-content {
    padding: 3rem 0;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    margin: 2rem 0 1rem 0;
    color: #2c3e50;
}

.content-section h3 {
    margin: 1.5rem 0 0.5rem 0;
    color: #34495e;
}

.content-section ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

/* Notice Box */
.notice-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.disclaimer-notice {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

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

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

.cookie-content p {
    margin: 0;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.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: #ecf0f1;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

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

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

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

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

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

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

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

    .filters {
        flex-direction: column;
    }

    .search-input {
        min-width: 100%;
    }
}

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

    .hero {
        padding: 2rem 0;
    }

    .page-header {
        padding: 2rem 0;
    }

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

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

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

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

[dir="rtl"] .comparison-card {
    text-align: right;
}

[dir="rtl"] .contact-grid {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}