/* ==========================================================================
   Grethel Theme Stylesheet - Editorial Noir DNA
   ========================================================================== */

/* Typography Overrides & Custom Font Support */
body {
    font-family: var(--gh-font-body, 'Inter', system-ui, -apple-system, sans-serif);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gh-font-heading, 'Playfair Display', Georgia, serif);
}

/* Glassmorphism Panels */
.glass-card {
    background: rgba(32, 31, 31, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    border-color: rgba(208, 188, 255, 0.2);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #131313;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d0bcff;
}

/* ==========================================================================
   Ghost Content Rendering Styles (.gh-content)
   ========================================================================== */

.gh-content {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
    color: #e5e2e1;
    font-size: 1.125rem;
}

.gh-content p {
    margin-top: 0;
    margin-bottom: 2rem;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    color: #e5e2e1;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.gh-content h1 { font-size: 2.5rem; }
.gh-content h2 { font-size: 2rem; }
.gh-content h3 { font-size: 1.5rem; }
.gh-content h4 { font-size: 1.25rem; }

.gh-content a {
    color: #d0bcff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.gh-content a:hover {
    color: #a078ff;
}

.gh-content figure {
    margin: 3rem 0;
    clear: both;
}

.gh-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    filter: grayscale(100%);
    transition: filter 0.7s ease, transform 0.7s ease;
}

.gh-content img:hover {
    filter: grayscale(0%);
}

.gh-content figcaption {
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #cbc3d7;
    text-align: center;
    font-style: italic;
}

.gh-content blockquote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    line-height: 1.4;
    color: #d0bcff;
    border-left: 4px solid #d0bcff;
    padding-left: 2rem;
    margin: 3.5rem 0;
    font-style: italic;
}

.gh-content ul,
.gh-content ol {
    margin-top: 0;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.gh-content li {
    margin-bottom: 0.5rem;
}

.gh-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    background: #201f1f;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gh-content pre {
    background: #1c1b1b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 3rem 0;
}

.gh-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    font-size: 0.9rem;
    color: #e5e2e1;
}

.gh-content hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4rem 0;
}

/* Table styling */
.gh-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.gh-content th,
.gh-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}
.gh-content th {
    font-weight: 600;
    color: #e5e2e1;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Wide and Full Width Ghost Cards */
.kg-width-wide {
    max-width: 1040px;
    margin: 3.5rem auto;
}

.kg-width-full {
    max-width: 100vw;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin: 3.5rem -50vw;
}
