/* 
 * Preplijst.nl - Design System
 * Aesthetic: Rugged, Modern, Reliable
 */

:root {
    --primary: #d97757;
    /* Rugged Orange */
    --primary-dark: #b55d3e;
    --bg-dark: #141413;
    --bg-light: #faf9f5;
    --text-main: #141413;
    --text-muted: #666;
    --glass: rgba(255, 255, 255, 0.8);
    --border-radius: 8px;
    --container-width: 1100px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-dark);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    text-decoration: none;
    color: white;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-right: 32px;
}

.logo span {
    color: var(--primary);
}

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

.main-nav a {
    text-decoration: none;
    color: #ccc;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: white;
}

.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.btn-contact:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #ddd;
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-btn {
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

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

.hero-btn--primary:hover {
    background: var(--primary-dark);
}

.hero-btn--secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.hero-btn--secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Categories Grid */
.categories-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.category-card-image {
    height: 160px;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-body {
    padding: 22px 24px;
}

.category-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--bg-dark);
    font-size: 20px;
}

.category-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #999;
    padding: 80px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.site-footer h3,
.site-footer h4 {
    color: white;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: #999;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
}

/* Category Header */
.category-header {
    background: #f0f0ed;
    padding: 50px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0dc;
}

.category-header--image {
    background-size: cover;
    background-position: center;
    border-bottom: none;
    padding: 70px 0;
}

.category-header--image h1,
.category-header--image .category-intro {
    color: white;
}

.breadcrumb {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

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

.breadcrumb--light,
.breadcrumb--light a {
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb--light a:hover {
    color: white;
}

.category-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--bg-dark);
}

.category-intro {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 700px;
    margin-top: 10px;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.item-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}

.item-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.item-image {
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 20px;
}

.item-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-hint {
    display: block;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.btn-buy {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background 0.3s;
}

.btn-buy:hover {
    background: var(--primary);
}

.hot-deal {
    border: 2px solid var(--primary);
    position: relative;
}

.hot-deal::before {
    content: "DEAL";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

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

.segment {
    padding: 40px 0;
}

.empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    height: 180px;
    background: #f0f0ed;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
}

.blog-card-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.post-date {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.read-more {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

/* Post Single */
.post-layout {
    max-width: 800px;
    margin: 0 auto;
}

.post-main-image {
    max-width: 550px;
    margin: 0 auto 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-main-image img {
    width: 100%;
    display: block;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-heading);
    color: var(--bg-dark);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.post-content h1 { font-size: 32px; }
.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 19px; }

.post-content p {
    margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px 28px;
}

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

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

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

.post-content strong {
    font-weight: 700;
    color: var(--bg-dark);
}

.post-content em {
    font-style: italic;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 30px 0;
    padding: 16px 24px;
    background: #f5f4f0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content hr {
    border: none;
    border-top: 2px solid #e8e8e4;
    margin: 40px 0;
}

.post-content img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px auto;
    display: block;
}

.post-content code {
    background: #f0f0ed;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.affiliate-box {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid #e5e3da;
    border-radius: var(--border-radius);
    padding: 16px;
    margin: 24px 0;
}

.affiliate-box img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    margin: 0;
    flex-shrink: 0;
    background: white;
}

.affiliate-box .affiliate-box-info {
    flex: 1;
}

.affiliate-box .affiliate-box-title {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.affiliate-box .affiliate-box-price {
    color: var(--text-muted);
    font-size: 0.9em;
}

.affiliate-box .btn-buy {
    flex-shrink: 0;
    white-space: nowrap;
}

.post-footer {
    margin-top: 60px;
    color: #999;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Active nav */
.main-nav a.active {
    color: white;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #222;
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .hero h1 {
        font-size: 32px;
    }

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