/*
Theme Name: LeBonDeal Theme
*/

:root {
    --bg: #0b0b0b;
    --bg-elev: #111;
    --bg-card: #151515;
    --border: #222;
    --border-soft: rgba(255,255,255,0.07);
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* HEADER */
header.site-header {
    background: rgba(17,17,17,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

header.site-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
header.site-header h1 a { color: var(--text); }
header.site-header h1 span { color: var(--accent); }

/* NAV */
nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}
nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color .2s;
}
nav a:hover { color: var(--accent); }

/* WRAP */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* BLOG HERO */
.blog-hero {
    text-align: center;
    padding: 80px 24px 60px;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse at top, rgba(245,158,11,0.08), transparent 60%);
}
.blog-hero .eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}
.blog-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.blog-hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* BLOG GRID */
.blog-section { padding: 60px 0 100px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* BLOG CARD */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,158,11,0.4);
    box-shadow: 0 20px 40px -20px rgba(245,158,11,0.25);
}
.blog-card .thumb {
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}
.blog-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-card:hover .thumb img { transform: scale(1.05); }

.blog-card .card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.blog-card .meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.blog-card h2 {
    font-size: 19px;
    margin: 0;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.blog-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.55;
}
.blog-card .read-more {
    margin-top: auto;
    padding-top: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-card .read-more::after {
    content: "→";
    transition: transform .2s;
}
.blog-card:hover .read-more::after { transform: translateX(4px); }

/* SINGLE ARTICLE */
.single-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}
.single-article .meta {
    color: var(--accent);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 16px;
}
.single-article h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    font-weight: 800;
}
.single-article .featured {
    width: 100%;
    border-radius: 16px;
    margin: 24px 0 32px;
    border: 1px solid var(--border-soft);
}
.single-article .content {
    font-size: 17px;
    line-height: 1.75;
    color: #e5e7eb;
}
.single-article .content p { margin: 0 0 20px; }
.single-article .content h2 {
    font-size: 28px;
    margin: 40px 0 16px;
    letter-spacing: -0.01em;
}
.single-article .content h3 { font-size: 22px; margin: 32px 0 12px; }
.single-article .content img { max-width: 100%; border-radius: 12px; margin: 20px 0; }
.single-article .content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
}
.single-article .content code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* PAGINATION */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* FOOTER */
footer.site-footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 720px) {
    header.site-header { padding: 16px 20px; flex-direction: column; gap: 12px; }
    nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .blog-hero { padding: 60px 20px 40px; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}
