/* ------------------- */
/* 1. Global & Variables  */
/* ------------------- */
:root {
    --primary-color: #005A9C; /* A trustworthy blue */
    --secondary-color: #f4f4f4; /* Light grey background */
    --accent-color: #FFC107; /* A gold/yellow for badges */
    --text-color: #333;
    --text-light: #777;
    --border-color: #ddd;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

/* ------------------- */
/* 2. Header & Navigation */
/* ------------------- */
.site-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s;
}

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

.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s;
}


/* ------------------- */
/* 3. Hero Section   */
/* ------------------- */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

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

/* ------------------- */
/* 4. Buttons & Cards */
/* ------------------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-secondary:hover {
    background-color: #004a80;
}

.category-grid {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.category-grid h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

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

.card h3 {
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.card p {
    margin: 0 1.5rem;
    color: var(--text-light);
    flex-grow: 1;
}

.card span {
    display: block;
    margin: 1.5rem;
    font-weight: 700;
}

.card-image-placeholder {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ccc;
}
/* Example background images - replace with your own */
.card-image-placeholder.ipl { background-image: url('https://images.unsplash.com/photo-1720424643392-4b63bd63d271?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTk3OTV8MHwxfGFsbHx8fHx8fHx8fDE3MjMwMjY2NTd8&ixlib=rb-4.0.3&q=80&w=1080'); }
.card-image-placeholder.vacuum { background-image: url('https://images.unsplash.com/photo-1590164409291-450e859ccb87?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTk3OTV8MHwxfGFsbHx8fHx8fHx8fDE3MjMwMjY2NTd8&ixlib=rb-4.0.3&q=80&w=1080'); }
.card-image-placeholder.coffee { background-image: url('https://images.unsplash.com/photo-1559496417-e7f25cb247f3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTk3OTV8MHwxfGFsbHx8fHx8fHx8fDE3MjMwMjY2NTh8&ixlib=rb-4.0.3&q=80&w=1080'); }


/* ------------------- */
/* 5. Article & Comparison Table */
/* ------------------- */
.article-page {
    padding: 3rem 0;
}
.article-header {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}
.article-header h1 { font-size: 2.8rem; }
.article-meta { color: var(--text-light); margin-bottom: 1rem; }
.detailed-review { margin-top: 3rem; }

.table-container {
    overflow-x: auto; /* For responsive tables */
    margin-top: 2rem;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.comparison-table th, .comparison-table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
}
.comparison-table th {
    background-color: var(--secondary-color);
    font-family: var(--font-heading);
}
.comparison-table tbody tr:nth-child(even) {
    background-color: var(--secondary-color);
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 700;
}
.top-pick-badge {
    display: block;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 0.8rem;
    padding: 0.25rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.check { color: #28a745; font-size: 1.5rem; }
.cross { color: #dc3545; font-size: 1.5rem; }
.rating-good { font-weight: 700; color: #28a745; }
.rating-ok { font-weight: 700; color: #ffc107; }

/* ------------------- */
/* 5.1 Article & Comparison Spacing */
/* ------------------- */

.detailed-review {
    margin-top: 3rem;
}

/* Add significant space above each new numbered section */
.detailed-review h3 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Style the horizontal rule to be a clean separator */
.detailed-review hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

/* Give bulleted lists some breathing room */
.detailed-review ul {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem; /* Standard indentation */
}

/* Add a small gap between each bullet point */
.detailed-review li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* Add space above the "Winner:" paragraph */
.detailed-review p:has(+ h3), /* Paragraph right before a new section */
.detailed-review ul + p {    /* Paragraph right after a list */
    margin-top: 1.5rem;
}

/* ------------------- */
/* 6. Footer         */
/* ------------------- */
.site-footer {
    background: #333;
    color: #ccc;
    padding: 2rem 0;
    text-align: center;
}
.site-footer p {
    margin-bottom: 0.5rem;
}
.site-footer small {
    font-size: 0.8rem;
    color: #999;
}

/* ------------------- */
/* 7. Responsive      */
/* ------------------- */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide nav on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 73px; /* Height of header */
        left: 0;
        background-color: #fff;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        display: flex; /* Show when active */
    }

    .main-nav li {
        text-align: center;
        padding: 1rem 0;
        width: 100%;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-nav-toggle {
        display: block; /* Show hamburger on mobile */
    }
    
    .hero h1 { font-size: 2.5rem; }
    .article-header h1 { font-size: 2rem; }
}