/* BTBF - Born To Be Fuck | SEO Site */
/* Mobile-first, dark theme, system fonts, <15KB gzipped */

:root {
    --bg: #0a0a0a;
    --bg-2: #111;
    --bg-3: #1a1a1a;
    --bg-card: #141414;
    --text: #e8e8e8;
    --text-muted: #999;
    --text-dim: #666;
    --accent: #ff6a00;
    --accent-hover: #ff8c33;
    --accent-soft: rgba(255, 106, 0, 0.1);
    --border: #222;
    --border-light: #2a2a2a;
    --radius: 10px;
    --radius-sm: 6px;
    --max-w: 1200px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition: 0.2s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

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

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

/* Container */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links {
    display: none;
    list-style: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 0;
}
.nav-links.nav-open { display: flex; }

.nav-links li a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.nav-links li:last-child a { border: none; }
.nav-links li a:hover { color: var(--accent); }

.lang-switch {
    font-size: 0.8rem !important;
    font-weight: 700;
    padding: 0.3rem 0.6rem !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm);
    display: inline-block !important;
}

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem !important;
    text-align: center;
    border-bottom: none !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* Hero */
.hero {
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--accent); }

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-cta {
    background: var(--accent);
    color: #fff;
}
.btn-cta:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* CTA Block */
.cta-block {
    text-align: center;
    padding: 2rem 0;
}

.cta-banner {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-3) 100%);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.cta-banner h3 { margin-bottom: 0.5rem; }
.cta-banner p { color: var(--text-muted); margin-bottom: 1rem; }

/* Section */
.section {
    padding: 3rem 1rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-link:hover { color: inherit; }

.card-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-body { padding: 1.25rem; }

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--bg-3);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}
a.tag:hover { background: var(--accent-soft); color: var(--accent); }

/* Breadcrumb */
.breadcrumb {
    padding: 1rem;
    max-width: var(--max-w);
    margin: 0 auto;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.breadcrumb li::after { content: '/'; margin-left: 0.25rem; color: var(--text-dim); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Content */
.content-header {
    padding: 2rem 1rem 1rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.content-body {
    padding: 0 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.content-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.content-body h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-body p { margin-bottom: 1.2rem; }
.content-body ul, .content-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.content-body li { margin-bottom: 0.5rem; }
.content-body a { text-decoration: underline; }

/* Article header */
.article-header {
    padding: 2.5rem 1rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.article-hero {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* TOC */
.toc {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
}
.toc h4 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Category single */
.category-header {
    padding: 3rem 1rem 1rem;
    text-align: center;
    max-width: var(--max-w);
    margin: 0 auto;
}
.category-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* 404 */
.page-404 {
    text-align: center;
    padding: 5rem 1rem;
}
.page-404 h1 { font-size: 4rem; color: var(--accent); }
.page-404 p { color: var(--text-muted); margin: 1rem 0 2rem; }

/* Footer */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 3rem 1rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand .logo-text { font-size: 1.8rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

.site-footer h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer li a {
    color: var(--text);
    font-size: 0.9rem;
}
.site-footer li a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}
.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    color: var(--text);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Responsive */
@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .logo-tagline { display: inline; }
}

@media (min-width: 900px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .footer-container { grid-template-columns: 2fr 1fr 1fr 1fr; }

    .nav-toggle { display: none; }
    .nav-links {
        display: flex;
        position: static;
        background: none;
        border: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }
    .nav-links li a {
        padding: 0.4rem 0.75rem;
        border: none;
        font-size: 0.9rem;
    }

    .hero { padding: 5rem 2rem; }
    .section { padding: 4rem 2rem; }
}

@media (min-width: 1100px) {
    .grid-home { grid-template-columns: repeat(4, 1fr); }
}

/* Print */
@media print {
    .site-header, .site-footer, .cta-block, .cta-banner, .nav-cta { display: none; }
    body { background: #fff; color: #000; }
}
