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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 14px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.logo, .footer-logo {
    width: 32px;
    height: 32px;
}

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

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 14px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

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

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border-color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e1e8ed;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.card-category {
    display: inline-block;
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-overview {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.card-link {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}

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

/* Features Grid */
.features {
    background: #f8f9fa;
}

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

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

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.category-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.category-card p {
    color: #666;
    margin: 0;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Disclaimer Notice */
.disclaimer-notice {
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
}

.notice-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.notice-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

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

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

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

.detail-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.detail-category {
    background: #3498db;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.detail-overview {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

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

.detail-section {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 30px;
}

.detail-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 25px;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.cons-list li::before {
    content: "×";
    color: #e74c3c;
}

.pricing-note {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
}

.external-links {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.external-links h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.external-links a {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

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

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

.search-filter-content {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    min-width: 150px;
    background: white;
}

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

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

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

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Content Pages */
.content-page {
    padding: 40px 0;
}

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

.content-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

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

.content-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-body h2 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin: 40px 0 20px 0;
    text-align: left;
}

.content-body h3 {
    font-size: 1.375rem;
    color: #2c3e50;
    margin: 30px 0 15px 0;
}

.content-body p {
    margin-bottom: 20px;
    color: #444;
}

.content-body ul,
.content-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-body li {
    margin-bottom: 8px;
    color: #444;
}

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

.contact-info h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #3498db;
}

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

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

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

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

.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

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

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

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

.footer-section ul li a:hover {
    color: white;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filter-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input,
    .filter-select {
        min-width: auto;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .comparison-card,
    .feature-card,
    .category-card {
        padding: 20px;
    }
    
    .detail-section {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

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

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

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

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

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

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

[dir="rtl"] .detail-list li {
    padding-right: 25px;
    padding-left: 0;
}

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

[dir="rtl"] .pricing-note {
    border-right: 4px solid #3498db;
    border-left: none;
}