/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF1493;
    --primary-hover: #E6007E;
    --secondary-color: #4A90E2;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E1E8ED;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    padding-top: 80px;
}

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

/* Header and Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-light);
    padding: 0.5rem;
    border-radius: 8px;
}

.lang-option {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
}

.lang-option:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.lang-option.active {
    background-color: var(--primary-color);
    color: white;
}

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

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

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Content */
main {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
}

section {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
}

thead {
    background-color: var(--primary-color);
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

tr:hover {
    background-color: var(--bg-light);
}

.site-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background-color: var(--bg-light);
    padding: 5px;
    flex-shrink: 0;
}

.site-name {
    font-weight: 600;
    color: var(--primary-color);
}

.rating {
    font-weight: 600;
    color: var(--success-color);
    white-space: nowrap;
}

.pros {
    color: var(--success-color);
}

.cons {
    color: var(--warning-color);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.advice-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.advice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advice-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.advice-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* FAQ Section */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--border-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Privacy Policy */
.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.privacy-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: white;
    padding: 1.5rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.cookie-content {
    flex: 1;
    margin-right: 2rem;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-button {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-accept:hover {
    background-color: var(--primary-hover);
}

.cookie-decline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-learn-more {
    background-color: transparent;
    color: white;
    text-decoration: underline;
    border: none;
    padding: 0.7rem 1rem;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .language-selector {
        width: 100%;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.7rem 0.5rem;
    }
    
    .site-cell {
        flex-direction: column;
        text-align: center;
    }
    
    .site-logo {
        width: 50px;
        height: 50px;
    }
    
    .advice-grid {
        grid-template-columns: 1fr;
    }
    
    #cookie-banner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-content {
        margin-right: 0;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-button {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    .site-logo {
        width: 40px;
        height: 40px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    header, footer, #cookie-banner {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
    
    section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}