/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, 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;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo img {
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: hsl(23, 70%, 50%);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Comparison Grid */
.popular-comparisons {
    padding: 80px 0;
}

.popular-comparisons h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: #333;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.comparison-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

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

.comparison-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.comparison-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

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

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

.comparison-card .learn-more {
    display: inline-block;
    background: hsl(23, 70%, 50%);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.comparison-card .learn-more:hover {
    background: hsl(23, 70%, 40%);
}

/* Features Section */
.features {
    background: #f8f9fa;
    padding: 80px 0;
}

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

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

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

/* Comparison Detail Page */
.comparison-detail {
    padding: 40px 0;
}

.comparison-header {
    text-align: center;
    margin-bottom: 50px;
}

.comparison-header img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.comparison-header h1 {
    margin-bottom: 15px;
    color: #333;
}

.comparison-header .category {
    display: inline-block;
    background: hsl(23, 70%, 95%);
    color: hsl(23, 70%, 40%);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.comparison-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.comparison-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
}

.comparison-section h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid hsl(23, 70%, 50%);
    padding-bottom: 10px;
}

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

.comparison-section li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-section li:before {
    content: "✓";
    color: hsl(23, 70%, 50%);
    font-weight: bold;
    margin-right: 10px;
}

.external-links {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 40px;
}

.external-links a {
    display: inline-block;
    background: hsl(23, 70%, 50%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background 0.3s;
}

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

/* Directory Page */
.directory-header {
    padding: 40px 0;
    text-align: center;
    background: #f8f9fa;
}

.directory-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.search-input,
.category-filter {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-input {
    min-width: 300px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

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

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

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

.submit-button {
    background: hsl(23, 70%, 50%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: hsl(23, 70%, 40%);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 20px;
    z-index: 2000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

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

.cookie-dismiss {
    background: hsl(23, 70%, 50%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    color: hsl(23, 70%, 50%);
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

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

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

    .directory-controls {
        flex-direction: column;
        align-items: center;
    }

    .search-input {
        min-width: auto;
        width: 100%;
        max-width: 400px;
    }

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

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

    .nav-container {
        padding: 0 15px;
    }

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

    .comparison-card {
        padding: 20px;
    }
}

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

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.content-section {
    padding: 40px 0;
}

.content-section h1 {
    margin-bottom: 30px;
    color: #333;
}

.content-section h2 {
    margin: 30px 0 15px;
    color: #333;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.content-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 5px;
    color: #666;
}