/*
Theme Name: VJLoops Dark
Theme URI: https://vjloops.net
Author: Epochal Stock
Author URI: https://vjloops.net
Description: Custom dark theme for VJLoops.net blog — matching the main website design with gold accents and modern typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vjloops-dark
*/

/* === CSS Variables === */
:root {
    --bg: #0a0a0a;
    --card: #141414;
    --accent: #c9a84c;
    --accent2: #f4d675;
    --text: #e0e0e0;
    --muted: #888;
    --border: #222;
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1400px;
    --gap: 1.5rem;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    font-size: 16px;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent2);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Layout === */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.site-main {
    flex: 1;
    padding: 3rem 0;
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-branding a {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}
.site-branding a:hover {
    color: var(--accent);
}

.blog-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg);
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input[type="search"] {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    width: 180px;
    transition: border-color 0.2s, width 0.3s;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    width: 220px;
}
.search-form button {
    display: none;
}

/* === Hero Post === */
.hero-post {
    margin-bottom: 3rem;
}

.hero-post .hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    display: block;
}

.hero-card .hero-image {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.hero-card:hover .hero-image {
    transform: scale(1.02);
}

.hero-card .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.hero-card .hero-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-card .hero-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-card .hero-excerpt {
    color: #ccc;
    font-size: 1rem;
    max-width: 600px;
}

.hero-card .no-thumb {
    width: 100%;
    aspect-ratio: 21/9;
    background: linear-gradient(135deg, var(--card), #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 3rem;
}

/* === Post Grid === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.post-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.post-card a {
    color: inherit;
}

.post-card .card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .card-image img {
    transform: scale(1.05);
}

.post-card .no-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--card), #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2rem;
}

.post-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.post-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-card .card-excerpt {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

/* === Single Post === */
.single-hero {
    position: relative;
    margin: -3rem -2rem 3rem;
    border-radius: 0;
    overflow: hidden;
}

.single-hero img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    display: block;
}

.single-hero .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 3rem 3rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.single-hero .post-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    max-width: 800px;
}

.single-hero .post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #bbb;
}

.single-hero .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--card);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #ccc;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content pre {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.article-content code {
    background: var(--card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(201, 168, 76, 0.3);
    text-underline-offset: 3px;
}
.article-content a:hover {
    text-decoration-color: var(--accent);
}

/* === Related Posts === */
.related-posts {
    max-width: 1000px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-posts h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* === Comments === */
.comments-section {
    max-width: 720px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.comments-section h2 {
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 1.25rem;
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.comment-author {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: var(--accent2);
}

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.8rem;
}
.footer-links a:hover {
    color: var(--accent);
}

/* === Archive Header === */
.archive-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.archive-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--muted);
    font-size: 1rem;
}

/* === No Posts === */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.no-posts h2 {
    margin-bottom: 1rem;
    color: #fff;
}

/* === Page Template === */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content .page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .posts-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card .hero-title {
        font-size: 2rem;
    }

    .single-hero .post-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .search-form {
        display: none;
    }

    .posts-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-card .hero-title {
        font-size: 1.5rem;
    }

    .hero-card .hero-overlay {
        padding: 1.5rem;
    }

    .single-hero .post-title {
        font-size: 1.8rem;
    }

    .single-hero .hero-overlay {
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .site-branding a {
        font-size: 1.1rem;
    }

    .main-nav {
        display: none;
    }

    .hero-card .hero-excerpt {
        display: none;
    }
}
