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

:root {
    --primary-color: #e11d48;
    --primary-dark: #be123c;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-content h2 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content ul,
.page-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

.page-content p {
    margin-bottom: 1rem;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.page-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav { padding: 1rem 0; }

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-small { width: 40px; height: 40px; }
.logo-medium { width: 150px; height: auto; }
.logo-large { width: 200px; height: auto; }

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

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

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

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.hero {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.features {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.latest-posts {
    padding: 4rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.article-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.article-icon {
    font-size: 2rem;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.article-title a {
    color: var(--text-dark);
    font-weight: 600;
}

.article-title a:hover { color: var(--primary-color); }

.article-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-readmore {
    color: var(--primary-color);
    font-weight: 500;
    align-self: flex-start;
}

.article-readmore:hover { color: var(--primary-dark); }

.how-we-test {
    padding: 4rem 0;
    background: var(--bg-white);
}

.test-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .test-content-wrapper { grid-template-columns: 1fr; }
}

.test-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.test-text li { margin-bottom: 0.5rem; }

.post-title a {
    color: var(--text-dark);
    font-weight: 600;
}

.post-title a:hover { color: var(--primary-color); }

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover { color: var(--primary-dark); }

.posts-cta { text-align: center; }

.categories {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

.category-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.category-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.category-link {
    color: var(--primary-color);
    font-weight: 500;
}

.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.product-table tbody tr:last-child { border-bottom: none; }

.product-table tbody tr:hover {
    background: var(--bg-light);
    transform: scale(1.02);
}

.product-table td {
    padding: 1rem;
    vertical-align: middle;
}

.product-image { width: 120px; text-align: center; }

.product-image img {
    max-width: 100px;
    height: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.product-image img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.product-title { padding: 1rem 1.5rem; }

.product-title a {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

.product-title a:hover { color: var(--primary-color); }

.product-button { width: 150px; text-align: center; }

.check-price-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #dc2626);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.check-price-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #dc2626, var(--accent-color));
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0.9;
}

.post-content { padding: 3rem 0; }

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.post-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.post-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.post-body ul, .post-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-body li { margin-bottom: 0.5rem; }

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.affiliate-notice {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.post-navigation .nav-link {
    display: block;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.post-navigation .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-prev { text-align: left; }
.nav-next { text-align: right; }

.nav-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.nav-title {
    color: var(--text-dark);
    font-weight: 600;
}

.related-posts {
    background: var(--bg-light);
    padding: 4rem 0;
}

.disclosure-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.disclosure-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.disclosure-content p { color: var(--text-light); }

.footer {
    background: var(--text-dark);
    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 h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

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

.affiliate-disclosure {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.page-header {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: white;
    text-decoration: underline;
}

.breadcrumbs .current { opacity: 0.8; }

.post-meta {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.post-meta strong { font-weight: 600; }

.blog-listing { padding: 3rem 0; }

.posts-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

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

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title { font-size: 2rem; }
    .hero-buttons { justify-content: center; }

    .features-grid, .posts-grid, .categories-grid { grid-template-columns: 1fr; }
    .post-navigation { grid-template-columns: 1fr; }

    .product-table { font-size: 0.9rem; }
    .product-image { width: 80px; }
    .product-image img { max-width: 60px; }
    .product-title { padding: 0.5rem; }
    .product-button { width: 120px; }
    .check-price-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .post-title { font-size: 2rem; }

    .product-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .product-table tbody tr { display: table-row; }
}

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

.post-card, .feature-card, .category-card {
    animation: fadeIn 0.6s ease-out;
}

@media print {
    .header, .footer, .hero-buttons, .post-navigation, .related-posts, .affiliate-disclosure { display: none; }

    .product-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .check-price-btn {
        background: #f0f0f0;
        color: #000;
    }
}