/*
Theme Name: GeneratePress Child - REVD Digital
Description: Child theme for REVD Digital website with custom templates
Template: generatepress
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../generatepress/style.css");

/* Your custom CSS variables */
:root {
    --primary-bg: #ffffff;
    --primary-text: #000000;
    --border-color: #000000;
    --border-width: 3px;
    
    /* Typography */
    --font-primary: 'Courier New', monospace;
    --font-size-h1: 48px;
    --font-size-h2: 32px;
    --font-size-h3: 20px;
    --font-size-body: 16px;
    --font-size-small: 14px;
    
    /* Spacing */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Effects */
    --shadow-offset: 6px;
    --transition-speed: 0.3s;
}

/* Your pixel design system CSS goes here */
/* (Add all the CSS from previous responses) */
/* Footer Styles */
/* ===== SINGLE POST LAYOUT FIXES ===== */

/* Post Hero Section */
/* ===== SINGLE POST LAYOUT (NO HERO) ===== */

/* Main Post Layout */
/* ===== SINGLE POST LAYOUT (WIDER CONTENT) ===== */

/* Main Post Layout - Wider Content Area */
.post-layout {
    display: grid;
    grid-template-columns: 2fr 350px; /* Increased main content width */
    gap: 50px; /* Increased gap */
    align-items: start;
    margin-top: 40px;
    max-width: 1400px; /* Increased max width */
    margin-left: auto;
    margin-right: auto;
}

/* Main Content Area */
.post-main-content {
    width: 100%;
    max-width: none; /* Remove width restriction */
}

.post-content {
    background: #fff;
    border: 3px solid #000;
    padding: 50px; /* Increased padding */
    position: relative;
    max-width: none;
}

/* Container Override for Single Posts */
.single .container {
    max-width: 1400px; /* Increased container width */
    padding: 0 30px;
}

/* Post Meta - At Top of Content */
.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    flex-wrap: wrap;
}

.post-meta span {
    color: #666;
    padding: 8px 15px;
    border: 2px solid #000;
    background: #f9f9f9;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.post-meta a {
    color: #000;
    text-decoration: none;
}

.post-meta a:hover {
    background: #000;
    color: #fff;
}

/* Post Title - In Content */
.post-title {
    font-size: 42px; /* Increased font size */
    margin: 0 0 40px 0;
    line-height: 1.2;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #000;
    border-bottom: 3px solid #000;
    padding-bottom: 25px;
}

/* Featured Image - After Title */
.post-featured-image {
    margin-bottom: 50px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border: 3px solid #000;
    position: relative;
}

/* Add shadow to featured image */
.post-featured-image {
    position: relative;
}

.post-featured-image::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background: #000;
    z-index: -1;
}

/* Post Body Content - Wider */
.post-body {
    width: 100%;
    font-size: 18px; /* Increased font size */
    line-height: 1.8; /* Improved line height */
    font-family: 'Courier New', monospace;
}

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    margin: 45px 0 25px;
    font-weight: bold;
    color: #000;
    font-family: 'Courier New', monospace;
}

.post-body h2 {
    font-size: 32px;
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
}

.post-body h3 {
    font-size: 26px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.post-body h4 {
    font-size: 22px;
}

.post-body h5 {
    font-size: 20px;
}

.post-body h6 {
    font-size: 18px;
}

.post-body p {
    margin-bottom: 25px;
    color: #333;
}

.post-body ul,
.post-body ol {
    margin: 25px 0;
    padding-left: 35px;
}

.post-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.post-body strong {
    font-weight: bold;
    color: #000;
}

/* Sidebar Styles - Improved TOC */
.post-sidebar {
    width: 100%;
}

.post-sidebar .widget {
    margin-bottom: 30px;
    border: 3px solid #000;
    background: #fff;
    padding: 25px;
    position: relative;
}

.post-sidebar .widget::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background: #000;
    z-index: -1;
}

.post-sidebar .widget-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

/* Enhanced Table of Contents with Hierarchy */
.toc-widget {
    position: sticky;
    top: 30px;
}

#table-of-contents {
    font-family: 'Courier New', monospace;
}

#table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#table-of-contents li {
    margin: 0;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease;
}

#table-of-contents li:hover {
    border-left-color: #000;
}

#table-of-contents a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0 8px 15px;
    display: block;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    position: relative;
}

#table-of-contents a:hover {
    background: #f9f9f9;
    padding-left: 20px;
}

/* Hierarchy Levels */
.toc-level-h2 {
    font-weight: bold;
    font-size: 15px;
}

.toc-level-h3 {
    padding-left: 20px;
    font-size: 14px;
}

.toc-level-h4 {
    padding-left: 35px;
    font-size: 13px;
    opacity: 0.9;
}

.toc-level-h5 {
    padding-left: 50px;
    font-size: 12px;
    opacity: 0.8;
}

.toc-level-h6 {
    padding-left: 65px;
    font-size: 12px;
    opacity: 0.7;
}

/* Active TOC Item */
.toc-active {
    background: #000 !important;
    color: #fff !important;
    font-weight: bold;
}

/* TOC Numbers */
.toc-number {
    display: inline-block;
    min-width: 20px;
    font-weight: bold;
    color: #666;
    margin-right: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .post-layout {
        grid-template-columns: 1.8fr 320px;
        gap: 40px;
    }
    
    .single .container {
        max-width: 1200px;
        padding: 0 25px;
    }
    
    .post-content {
        padding: 40px;
    }
}

@media (max-width: 968px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 20px;
    }
    
    .single .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .post-content {
        padding: 30px;
    }
    
    .post-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .post-content {
        padding: 25px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-body {
        font-size: 16px;
    }
    
    .post-body h2 {
        font-size: 28px;
    }
    
    .post-body h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .single .container {
        padding: 0 15px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-body {
        font-size: 15px;
    }
}