/* Sleeping Bag Picks - Main Stylesheet */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2d5a3d;
    --primary-dark: #1e3d2a;
    --primary-light: #4a7c5d;
    --secondary: #8b4513;
    --accent: #f4a460;
    --text: #333;
    --text-light: #666;
    --bg: #fafafa;
    --bg-alt: #f0f4f1;
    --white: #fff;
    --border: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: 0.3s ease;
}

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

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 32px;
    height: 32px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

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

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #e6944f;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--bg-alt);
}

.btn-amazon {
    background: #ff9900;
    color: #111;
}

.btn-amazon:hover {
    background: #e68a00;
}

/* Section Styling */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 40px;
}

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

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-card-content {
    padding: 20px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    padding: 20px;
    background: var(--bg-alt);
    text-align: center;
}

.product-image img {
    max-height: 200px;
    margin: 0 auto;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    margin: 8px 0;
    color: var(--text);
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.spec-tag {
    background: var(--bg-alt);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.stars {
    color: #ffc107;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--bg-alt);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: var(--radius);
}

.pros {
    background: #e8f5e9;
}

.cons {
    background: #ffebee;
}

.pros h4, .cons h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros h4 {
    color: #2e7d32;
}

.cons h4 {
    color: #c62828;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.pros li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
}

.cons li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #c62828;
    font-weight: bold;
}

/* Guide Content */
.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-content h2 {
    color: var(--primary-dark);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.guide-content h3 {
    color: var(--primary);
    margin: 30px 0 15px;
}

.guide-content p {
    margin-bottom: 15px;
}

.guide-content ul, .guide-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.guide-content li {
    margin-bottom: 8px;
}

/* Info Box */
.info-box {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.info-box.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.info-box.tip {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.affiliate-disclosure {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 20px 0;
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }

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

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

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

    .product-actions {
        flex-direction: column;
    }
}

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

    .hero {
        padding: 50px 0;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
}
