/* Aerolith Design System - Ghost Theme CSS */
/* Dark Mode Only */

:root {
    /* Core Surface Colors */
    --background: #0A0A0F;
    --card: #101018;
    --popover: #08080D;
    --border: #202028;
    --border-subtle: #1A1A24;
    --hover-surface: #0D0D18;

    /* Brand and Accent Colors */
    --primary: #A70303;
    --primary-hover: #8B0202;
    --destructive: #FF4B4B;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF; /* gray-400 */
    --text-lighter: #D1D5DB;   /* gray-300 */

    /* Spacing & Radius */
    --radius: 0.625rem;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Layout */
.container {
    max-width: 80rem; /* 1280px / max-w-7xl approx */
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.gh-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gh-viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.gh-main {
    flex-grow: 1;
}

/* Header */
.gh-head {
    padding: 0;
    height: 4rem; /* 64px like the reference */
    border-bottom: 1px solid var(--border);
    background-color: #000000; /* As per Navigation.vue */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gh-head-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 4rem;
    align-items: center;
    width: 100%;
}

.gh-head-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gh-head-menu {
    display: flex;
    justify-content: center;
}

.gh-head-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.btn-subscribe {
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-subscribe:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.gh-head-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-head-logo span {
    color: #FFFFFF !important;
}

@media (max-width: 767px) {
    .gh-head-logo span {
        display: none;
    }
}

.gh-head-logo img {
    height: 2rem;
    width: auto;
}

.gh-head-menu ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

@media (max-width: 767px) {
    .gh-head-menu {
        display: none;
    }
    
    .gh-head-inner {
        grid-template-columns: auto 1fr auto;
    }
}

.gh-head-menu li {
    font-size: 0.875rem;
    font-weight: 500;
}

.gh-head-menu a {
    color: #D1D5DB; /* gray-300 */
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.gh-head-menu a:hover {
    background-color: #0D0D18;
    color: #FFFFFF;
}

/* Cards */
.gh-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gh-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.gh-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 1rem;
}

.gh-card-title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.gh-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    flex-grow: 1;
}

.gh-card-meta {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Post Content */
.gh-content {
    max-width: 45rem;
    margin: 0 auto;
    padding: 3rem 0;
}

.gh-content img {
    max-width: 100%;
    border-radius: var(--radius);
}

/* Footer */
.gh-foot {
    margin-top: 5rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    background-color: var(--background);
}

.gh-foot-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gh-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (max-width: 767px) {
    .gh-foot-links {
        gap: 1rem;
        justify-content: center;
    }
    
    .gh-foot-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .gh-foot-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.gh-foot-links a {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.gh-foot-links a:hover {
    color: var(--primary);
}

.gh-foot-socials {
    display: flex;
    gap: 1.5rem;
}

.gh-foot-social-link {
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.gh-foot-social-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.gh-foot-social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.gh-foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.gh-foot-copyright {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.gh-foot-powered {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.gh-foot-powered a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.gh-foot-powered a:hover {
    color: var(--text-primary);
}

/* Typography Overrides */
.gh-content h1, .gh-content h2, .gh-content h3 {
    color: var(--text-primary);
}

.gh-content p {
    margin-bottom: 1.5rem;
}

.gh-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
    padding: 1rem 2rem;
    background-color: var(--hover-surface);
    border-radius: var(--radius);
    font-style: italic;
}

.gh-content code {
    background-color: var(--hover-surface);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

.gh-content pre {
    background-color: var(--popover);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    border: 1px solid var(--border);
}

/* Required Koenig Editor Classes */
.kg-width-wide img {
    max-width: 85vw;
    width: 100%;
    margin-left: calc(50% - 42.5vw);
    border-radius: var(--radius);
}

.kg-width-full img {
    max-width: 100vw;
    width: 100%;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
}

.kg-card {
    margin: 2rem 0;
}

.kg-image-card img {
    width: 100%;
    height: auto;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
}
