@font-face {
    font-family: 'Oswald';
    src: url('/assets/fonts/Oswald.ttf') format('truetype');
}

@font-face {
    font-family: 'Assistant';
    src: url('/assets/fonts/Assistant-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'FiraCode';
    src: url('/assets/fonts/FiraCode-VF.ttf') format('truetype');
}

@font-face {
    font-family: 'PPSupply';
    src: url('/assets/fonts/PPSupplySans-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

:root {
    --pico-font-family-monospace: FiraCode, monospace;
    --pico-font-family: Inter, sans-serif;
    --pico-font-weight: 400;
    --pico-line-height: 1.5;
    --pico-primary: #0000FF;
    --pico-primary-hover: #0000CC;
    --pico-background-color: #ffffff;
}

body {
    background-color: #ffffff;
}

html {
    overflow-y: scroll;
}

/* Remove all box shadows and borders */
article, .container, .post, main {
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
}

/* Global anchor tag styles */
a {
    color: #0000FF;
}

a:hover {
    color: #0000CC;
}

/* Site title styling */
a.contrast {
    color: #1a1a1a !important;
}

a.contrast:hover {
    color: #1a1a1a !important;
}

/* Navigation links styling */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links li {
    list-style: none;
}

.nav-separator {
    color: #000000;
    padding: 0 0.25rem;
}

.current-page {
    color: #000000;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 500;
}

a.nav-link {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

a.nav-link:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'PPSupply', sans-serif;
    --pico-font-weight: 400;
    --pico-line-height: 1.3;
    margin-bottom: 0.2em;
    color: #1a1a1a;
}

/* Headers inside anchors should maintain dark color */
a h1,
a h2,
a h3,
a h4,
a h5,
a h6 {
    color: #1a1a1a;
}

/* Keep hover effect subtle for headers */
a:hover h1,
a:hover h2,
a:hover h3,
a:hover h4,
a:hover h5,
a:hover h6 {
    color: #1a1a1a;
}

.title {
    text-decoration: none;
    color: inherit;
}

.title h2 {
    font-weight: 400;
    font-size: 1.8em;
    line-height: 1;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.title:hover h2 {
    text-decoration: underline;
    color: #0000FF;
}

pre {
    background: rgb(224, 227, 231);
}

#subscribe-form {
    max-width: 400px
}

#subscribe-form-parent {
    position: relative;
}

#subscribe-form-container {
    position: absolute;
    top: 1em;
    right: 2em;
}

/* Tag styles */
.tag-label {
    background-color: #0066ff;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    margin-right: 0.5em;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5em;
}

.tag-label:hover {
    background-color: #0052cc;
    color: white;
    text-decoration: none;
}

/* Blog Posts heading */
.container h1 {
    font-size: 3rem;
    margin-bottom: 0.3rem;
}

/* Filter navigation styles */
nav[hx-boost] ul {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    margin-top: 0;
}

nav[hx-boost] a.secondary {
    background-color: transparent;
    color: #0000FF;
    padding: 0.15em 0.6em;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 4px;
    display: inline-block;
}

nav[hx-boost] a.secondary:hover {
    text-decoration: underline;
    color: #0000CC;
}

nav[hx-boost] a.secondary[style*="background-color"] {
    background-color: #0000FF !important;
    color: white !important;
    text-decoration: none;
}

nav[hx-boost] a.secondary[style*="background-color"]:hover {
    background-color: #0000CC !important;
    text-decoration: none;
}

/* Content wrapper for main content */
.content-wrapper {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Blog post preview */
.post-preview {
    margin-bottom: 3em;
    padding-bottom: 0;
}

.post-preview .title {
    text-decoration: none;
}

.post-preview .title h2 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* Blog post card hover effect */
.post-preview:hover .title h2 {
    color: #0000FF;
    text-decoration: underline;
}

.post-preview p {
    color: #666;
    margin: 0.5em 0 1em 0;
    line-height: 1.6;
}

.post-preview > div {
    color: #666;
    margin: 0.5em 0 1em 0;
    line-height: 1.6;
}

/* Blog post page specific styles */
.post > h1 {
    text-align: center;
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 3rem;
}

/* Content h1 should be normal */
.post-content h1 {
    text-align: left;
    font-size: 2rem;
}

/* Video card container */
.video-card-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Video card image */
.video-card-container img.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

/* Video card overlay */
.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    z-index: 2;
}

/* Video overlay title styling */
.video-overlay-title {
    color: white;
    margin: 0;
    font-family: 'PPSupply', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

/* Video title hover effect */
.video-card-container:hover .video-overlay-title {
    text-decoration: underline;
}

/* Video date text */
.video-card-date {
    color: rgba(255,255,255,0.8);
    font-size: 0.8em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* Video play button */
.video-card-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15%;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

@media only screen and (max-width: 600px) {
    #subscribe-form {
        position: inherit;
        background-color: inherit;
        border: 0;
        box-shadow: none;
        max-width: inherit;
    }
    #subscribe-form-parent {
        position: relative;
    }
    #subscribe-form-container {
        right: 0;
        top: 0;
        position: inherit;
    }
    #one-cont {
        class: container-fluid;
    }
}
