/* style.css */
:root {
    --color-racing-blue: #5EC6FF;
    --color-deep-black: #050505;
    --color-dark-gray: #1a1a1a;
    --color-off-white: #eaeaea;
    --font-heading: 'Bebas Neue', display, sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-strong: 0 10px 20px rgba(0, 0, 0, 0.8);
    --glow-blue: 0 0 15px rgba(94, 198, 255, 0.4);
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--color-deep-black);
    color: var(--color-off-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Film Grain Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-deep-black);
}

::-webkit-scrollbar-thumb {
    background: var(--color-dark-gray);
    border: 1px solid var(--color-deep-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-racing-blue);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-top: 0;
    letter-spacing: 1px;
}

a {
    color: var(--color-racing-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-off-white);
    text-shadow: var(--glow-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-strong);
    border-bottom: 1px solid rgba(94, 198, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 40px;
}

.site-logo.text-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-off-white);
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
    margin: 0;
}

.site-logo.text-logo:hover {
    color: var(--color-racing-blue);
    text-shadow: var(--glow-blue);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu li a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-off-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-menu li.nav-current a,
.nav-menu li a:hover {
    color: var(--color-racing-blue);
    text-shadow: var(--glow-blue);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--color-off-white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--color-dark-gray);
    padding: 20px;
    border-bottom: 2px solid var(--color-racing-blue);
}

.mobile-menu.is-active {
    display: block;
}

.mobile-menu .nav-menu {
    flex-direction: column;
    gap: 15px;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(60%) contrast(110%);
    z-index: 1;
    animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-bg.no-image {
    background: var(--color-dark-gray);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-racing-blue);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-title {
    font-size: 8rem;
    text-transform: uppercase;
    text-shadow: var(--shadow-strong);
    margin-bottom: 30px;
    line-height: 1;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-racing-blue);
    color: var(--color-off-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(94, 198, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hero:hover {
    background: var(--color-racing-blue);
    color: var(--color-deep-black);
    box-shadow: var(--glow-blue);
    transform: scale(1.05);
}

.hero-description {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Container */
.main-container {
    padding: 60px 20px;
    background: var(--color-deep-black);
    position: relative;
    z-index: 4;
}

.pt-extra {
    padding-top: 120px;
}

.section-title h2 {
    font-size: 2.5rem;
    border-left: 4px solid var(--color-racing-blue);
    padding-left: 15px;
    margin-bottom: 40px;
    text-shadow: var(--shadow-strong);
}

.archive-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.archive-title {
    font-size: 4rem;
    color: var(--color-racing-blue);
    text-transform: uppercase;
    text-shadow: var(--glow-blue);
}

.archive-description {
    font-size: 1.2rem;
    color: #aaa;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--color-dark-gray);
    border: 1px solid #222;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-strong);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-racing-blue);
    box-shadow: var(--shadow-strong), var(--glow-blue);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--color-off-white);
}

.post-card-image-wrap {
    height: 200px;
    overflow: hidden;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.post-card:hover .post-card-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.post-card-image-wrap.no-image {
    background: #222;
}

.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-tag {
    font-size: 0.8rem;
    color: var(--color-racing-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.post-card-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.older-posts,
.newer-posts {
    border: 1px solid var(--color-racing-blue);
    padding: 10px 20px;
    color: var(--color-racing-blue);
    text-transform: uppercase;
}

.older-posts:hover,
.newer-posts:hover {
    background: var(--color-racing-blue);
    color: var(--color-deep-black);
    box-shadow: var(--glow-blue);
}

.page-number {
    color: #666;
}

/* Single Post / Page */
.single-post,
.single-page {
    position: relative;
    padding-bottom: 80px;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background: var(--color-racing-blue);
    width: 0%;
    box-shadow: var(--glow-blue);
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-tag {
    color: var(--color-racing-blue);
    margin-right: 15px;
}

.post-date {
    margin-right: 15px;
}

.post-title,
.page-title {
    font-size: 4rem;
    text-transform: uppercase;
    text-shadow: var(--shadow-strong);
    max-width: 900px;
    margin: 0 auto;
}

.post-image-container,
.page-image-container {
    margin-bottom: 50px;
}

.post-image,
.page-image {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-strong);
}

.post-content,
.page-content {
    max-width: 800px;
    font-size: 1.1rem;
    color: #ccc;
    margin: 0 auto;
}

.post-content h2,
.post-content h3,
.post-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--color-off-white);
    margin-top: 2em;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--color-racing-blue);
    background: var(--color-dark-gray);
    margin: 2em 0;
    padding: 1.5em;
    font-style: italic;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.post-content a,
.page-content a {
    text-decoration: underline;
    text-decoration-color: rgba(94, 198, 255, 0.5);
}

.post-content a:hover,
.page-content a:hover {
    text-decoration-color: var(--color-racing-blue);
}

.post-footer {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--color-dark-gray);
    border: 1px solid #333;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-right: 10px;
    margin-bottom: 10px;
}

.post-tags a:hover {
    border-color: var(--color-racing-blue);
    box-shadow: var(--glow-blue);
}

.copy-link-btn {
    background: transparent;
    border: 1px solid var(--color-racing-blue);
    color: var(--color-racing-blue);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.copy-link-btn:hover {
    background: var(--color-racing-blue);
    color: var(--color-deep-black);
    box-shadow: var(--glow-blue);
}

/* Footer */
.site-footer {
    background: #000;
    padding: 60px 0 30px;
    border-top: 2px solid var(--color-dark-gray);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-off-white);
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #aaa;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: var(--color-racing-blue);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .archive-title {
        font-size: 3rem;
    }

    .post-title,
    .page-title {
        font-size: 2.5rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* Koenig Editor Styles */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin-left: calc(50% - 42.5vw);
    margin-right: calc(50% - 42.5vw);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    min-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-width-full img {
    border-radius: 0;
}