/*
Theme Name: Practically Real Gaming Custom Portal
Theme URI: https://practicallyrealgaming.com
Author: PRG Frontend Core Dev Team
Description: Custom, high-performance 1994-era web directory theme optimized for Full HD displays. Built with an absolute zero-bloat standard for community funnel efficiency.
Version: 1.2.0
Text Domain: prg-retro
*/

/* --- 90s Color Palette & Brand Coordinates --- */
:root {
    --bg-color: #d9d9d9;       /* Retro System Station Gray */
    --window-bg: #ffffff;     /* White Content Panel Trays */
    --text-color: #000000;    
    --shadow-color: #5a5a5a;  /* Windows 95 Border Shadow Tone */
    
    /* --- Your Official High-Contrast Brand Palette --- */
    --brand-title-color: #15b71d;   /* Vibrant Tactical Laser Green */
    --brand-tagline-color: #2232c3; /* Bright Console Blue */
    --portal-blue: #2232c3;         /* Syncs all structural titlebars to your brand blue */
}

/* --- Global Workstation Engine Reset --- */
* {
    box-sizing: border-box;
}

body {
    background-color: #0d130e; /* Deep tactical midnight-olive backdrop */
    
    /* THE COMPLETE TWO-AXIS TACTICAL ENGINE:
       Layers 1-4: Topographical Elevation Contour Rings
       Layer 5: Major Vertical 1km Grid Lines (2px / 0.15 Intensity)
       Layer 6: Major Horizontal 1km Grid Lines (2px / 0.15 Intensity) - RESTORED
       Layer 7: Minor Vertical 100m Micro-Lines (1px / 0.04 Subtle)
       Layer 8: Minor Horizontal 100m Micro-Lines (1px / 0.04 Subtle)
    */
    background-image: 
        /* --- Topographical Elevation Contour Rings --- */
        radial-gradient(circle at 20% 30%, transparent 120px, rgba(21, 183, 29, 0.05) 121px, rgba(21, 183, 29, 0.05) 123px, transparent 124px),
        radial-gradient(circle at 20% 30%, transparent 240px, rgba(21, 183, 29, 0.04) 241px, rgba(21, 183, 29, 0.04) 244px, transparent 245px),
        radial-gradient(circle at 75% 65%, transparent 180px, rgba(21, 183, 29, 0.05) 181px, rgba(21, 183, 29, 0.05) 183px, transparent 184px),
        radial-gradient(circle at 75% 65%, transparent 360px, rgba(21, 183, 29, 0.04) 361px, rgba(21, 183, 29, 0.04) 365px, transparent 366px),
        
        /* --- Primary 1km Major Lines (Both vertical & horizontal are now 2px wide) --- */
        linear-gradient(90deg, rgba(21, 183, 29, 0.15) 2px, transparent 2px),
        linear-gradient(0deg, rgba(21, 183, 29, 0.15) 2px, transparent 2px),
        
        /* --- Secondary 100m Minor Lines (Subtle background texture tracking grid) --- */
        linear-gradient(90deg, rgba(21, 183, 29, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(21, 183, 29, 0.04) 1px, transparent 1px);

    /* TRACK SIZING RESOLUTION LOCK:
       Major grid boxes are perfectly square at 200px by 200px.
       Minor subdivisions create crisp 20px cell tracking tracks.
    */
    background-size: 
        100% 100%, 100% 100%, 100% 100%, 100% 100%,
        200px 200px, /* Major 1km blocks (Vertical) */
        200px 200px, /* Major 1km blocks (Horizontal) */
        20px 20px,   /* Micro 100m verticals */
        20px 20px;   /* Micro 100m horizontals */
        
    background-attachment: fixed;
    font-family: "MS Sans Serif", Geneva, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 12px 65px; 
    line-height: 1.5;
    position: relative;
}

/* --- THE LEFT MARGIN 1KM NAVIGATION READOUT --- */
body::before {
    content: "0214\A\A\A\A\A 0215\A\A\A\A\A 0216\A\A\A\A\A 0217\A\A\A\A\A 0218\A\A\A\A\A 0219\A\A\A\A\A 0220\A\A\A\A\A 0221";
    white-space: pre;
    position: fixed;
    top: 40px;
    left: 15px;
    z-index: 0;
    
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 11px;
    /* 200px line-height perfectly syncs the text numbers with our primary 1km grid blocks */
    line-height: 200px; 
    color: rgba(21, 183, 29, 0.35); /* Crisp laser green data glow */
    pointer-events: none;
}

/* --- THE RIGHT MARGIN 1KM NAVIGATION READOUT (Symmetrical Double-Display) --- */
body::after {
    content: "0214\A\A\A\A\A 0215\A\A\A\A\A 0216\A\A\A\A\A 0217\A\A\A\A\A 0218\A\A\A\A\A 0219\A\A\A\A\A 0220\A\A\A\A\A 0221";
    white-space: pre;
    position: fixed;
    top: 40px;
    right: 15px;
    z-index: 0;
    
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 11px;
    line-height: 200px; /* Locked to the 1km grid tracking pace */
    color: rgba(21, 183, 29, 0.35);
    pointer-events: none;
    text-align: right;
}

/* --- Responsive Full HD Portal Container --- */
#portal-container {
    max-width: 1800px; /* Sweeps beautifully across rich widescreen resolution fields */
    margin: 0 auto;
    border: 2px solid;
    border-color: #fff var(--shadow-color) var(--shadow-color) #fff; /* Classic 3D Outset Frame */
    padding: 6px;
    background-color: var(--bg-color);
}

/* --- Masthead Brand Framing System --- */
#portal-header {
    background: var(--bg-color);
    border: 2px solid;
    border-color: #fff var(--shadow-color) var(--shadow-color) #fff;
    margin-bottom: 6px;
}

.brand-title {
    background-color: var(--portal-blue);
    color: #ffffff;
    padding: 3px 8px;
    font-weight: bold;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
}

#masthead {
    padding: 30px 20px;
    text-align: center;
    max-width: 80%; /* Binds text footprint down horizontally to 80% of container space */
    margin: 0 auto;
}

.site-title {
    font-family: "antique-olive-compact", "Impact", "Arial Black", sans-serif;
    font-weight: 400; /* Antique Olive Compact is thick by default; prevents artificial double-bolding */
    font-size: calc(24px + 2vw); /* Fluid display calculations scale cleanly on screen resize */
    letter-spacing: 6px; /* Horizontal wide tracking spread fills out space layout */
    margin: 0;
    line-height: 1.1;
}

.site-title a {
    color: var(--brand-title-color); /* Neon Green #15b71d applied directly to name links */
    text-decoration: none;
    display: block;
}

.site-title a:hover {
    text-decoration: none;
    color: var(--brand-title-color);
}

.site-description {
    font-family: "antique-olive", "Arial", sans-serif;
    font-weight: 700;
    font-size: calc(11px + 0.4vw); /* Proportional scaling lock steps with title element */
    letter-spacing: 4px;
    margin: 12px 0 0 0;
    color: var(--brand-tagline-color); /* Console Blue #2232c3 */
}

/* --- Text-Based Navigation & Target Conversion Links --- */
#navigation {
    background: var(--bg-color);
    border: 2px solid;
    border-color: #fff var(--shadow-color) var(--shadow-color) #fff;
    margin-bottom: 8px;
    padding: 4px;
}

#menu-main {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

#menu-main li a {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    padding: 4px 10px;
    display: inline-block;
}

#menu-main li a:hover,
#menu-main li.current-menu-item a {
    border: 1px solid;
    border-color: var(--shadow-color) #fff #fff var(--shadow-color); /* Inset button click simulation */
    background: #e0e0e0;
}

/* THE CONVERSION TARGET: High-visibility Discord focus anchor button layout */
#menu-main li.discord-funnel-link a {
    color: #ffffff !important;
    background: var(--brand-tagline-color);
    border: 1px solid #ffffff;
}

#menu-main li.discord-funnel-link a:hover {
    background: var(--brand-title-color);
    color: #000000 !important;
    border-color: var(--shadow-color);
}

/* --- Widescreen Responsive Sizing Splitter Grid --- */
#portal-main-layout {
    display: flex;
    gap: 10px;
}

#main-content {
    flex: 4; /* Delivers primary content layout width weight on HD monitors */
    background: var(--window-bg);
    border: 2px solid;
    border-color: var(--shadow-color) #fff #fff var(--shadow-color); /* Inset main reading well */
    padding: 25px;
}

#sidebar-resource-column {
    flex: 1;
    min-width: 320px;
    max-width: 420px;
    background: var(--bg-color);
    border: 2px solid;
    border-color: #fff var(--shadow-color) var(--shadow-color) #fff; /* Outset panel card */
    padding: 12px;
}

/* --- Responsive Home Page 35% Hero Graphic Element --- */
.portal-hero-module {
    width: 35%; /* Restricts display scale signature exclusively to 35% width on desktops */
    margin-bottom: 20px;
    display: inline-block;
}

.portal-hero-wrapper {
    background: #000000;
    border: 2px solid;
    border-color: var(--shadow-color) #fff #fff var(--shadow-color); /* Inset graphic well */
    padding: 2px;
}

.portal-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.portal-hero-caption {
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    color: #4a4a4a;
    padding: 4px 2px;
    border-left: 2px solid var(--shadow-color);
    margin-top: 4px;
    margin-left: 2px;
}

/* --- Specificity Typography Overrides for Native Gutenberg Outputs --- */
.wp-block-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-bottom: 2px dashed var(--shadow-color);
    padding-bottom: 4px;
    margin-top: 25px;
    margin-bottom: 12px;
}

#main-content h2.wp-block-heading:first-of-type {
    margin-top: 0;
}

.side-title {
    background: var(--portal-blue);
    color: #ffffff;
    font-size: 12px;
    padding: 3px 6px;
    border-bottom: none;
    margin-top: 0;
}

/* Overriding direct Gutenberg selector arrays to lock down the clean Workstation sans-serif font size */
.wp-block-paragraph, 
.wp-block-list li,
.entry-content p,
.entry-content li {
    font-family: "MS Sans Serif", Geneva, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111111;
}

/* High-Contrast Laser Green Bold Accents */
.entry-content strong, 
.wp-block-paragraph strong {
    color: var(--brand-title-color);
    background: #f0fdf0; /* Subtle green tint tray wraps bold phrases */
    padding: 0 4px;
    border: 1px inset #fff;
}

/* --- Dedicated Article Accent Block styles (GZW Post Needs) --- */
.headline {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 34px;
    color: var(--brand-tagline-color);
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.2;
}

.divider-small {
    display: block;
    width: 100%;
    height: 2px;
    border-bottom: 1px solid var(--shadow-color);
    border-top: 1px solid #fff;
    margin-bottom: 20px;
}

/* Terminal Green Mainframe Readout Layout */
.wp-block-code {
    background: #000000 !important;
    color: #33ff33 !important;
    font-family: "Courier New", Courier, monospace !important;
    font-size: 13px !important;
    padding: 12px !important;
    border: 2px inset var(--shadow-color) !important;
    overflow-x: auto;
    line-height: 1.4;
    margin: 20px 0;
}

/* Specialized Squad Economy Blockquote List Box */
.wp-block-quote {
    background: #f5f5f5;
    border: 2px solid;
    border-color: var(--shadow-color) #fff #fff var(--shadow-color);
    padding: 15px 20px !important;
    margin: 25px 0 !important;
}

.wp-block-quote ul.wp-block-list {
    list-style-type: square;
    padding-left: 20px;
}

.wp-block-quote ul.wp-block-list li strong {
    color: var(--brand-tagline-color) !important;
    background: transparent;
    border: none;
    padding: 0;
}

/* --- High-Performance 16:9 Aspect Ratio Grid Frame --- */
.wp-block-embed-youtube,
.wp-block-embed.is-type-video,
.wp-block-embed {
    margin: 25px auto !important;
    border: 2px solid !important;
    border-color: var(--shadow-color) #fff #fff var(--shadow-color) !important; /* Inset frame look */
    padding: 3px !important;
    background: #000000 !important;
    max-width: 840px !important; /* Insulates video scale on Full HD displays */
    width: 100% !important;
    height: auto !important;
}

/* Vaporizes the hidden pseudo padding blocks generated by default WordPress styles */
.wp-block-embed-youtube .wp-block-embed__wrapper::before,
.wp-block-embed.is-type-video .wp-block-embed__wrapper::before,
.wp-block-embed .wp-block-embed__wrapper::before {
    content: none !important;
    display: none !important;
    padding-top: 0 !important;
}

/* Establishes the 16:9 presentation layout layer box constraint */
.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed.is-type-video .wp-block-embed__wrapper,
.wp-block-embed .wp-block-embed__wrapper {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important; /* Forces crisp widescreen display metrics */
}

/* THE HARDCODED VALUE OVERRIDE:
   By using inline child constraints, we smash the custom width="500" 
   and height="281" variables injected by the core WordPress block engine, 
   forcing the video to stretch cleanly to 100% of our 16:9 container track.
*/
.wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe,
.wp-block-embed .wp-block-embed__wrapper iframe,
.wp-block-embed iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important; /* Overrides 281px block formatting completely */
    border: none !important;
}

#portal-footer {
    margin-top: 10px;
    padding: 15px;
    text-align: center;
    background: var(--bg-color);
    border: 2px solid;
    border-color: #fff var(--shadow-color) var(--shadow-color) #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

/* --- Fluid Breakpoint Layout Drop Engine --- */
@media (max-width: 960px) {
    #portal-main-layout {
        flex-direction: column;
    }
    #sidebar-resource-column {
        max-width: 100%;
        min-width: 100%;
    }
    .portal-hero-module {
        width: 100%; /* Snaps hero graphic seamlessly to full scale footprint on compact mobile views */
        display: block;
    }
}

/* ==========================================================================
   MOBILE VIEWPORT TRACKING & MEDIA MEDIA QUERY BREAKPOINTS
   ========================================================================== */

/* --- Portrait & Small Handset Viewport Constraint --- */
@media (max-width: 480px) {
    #masthead {
        padding: 15px 10px !important;
        max-width: 100% !important; /* Frees horizontal breathing room */
    }
    
    .site-title {
        font-size: 20px !important; /* Eliminates calc override bugs entirely */
        letter-spacing: 2px !important; /* Pulls dense retro tracking close together */
        line-height: 1.2 !important;
        word-wrap: break-word !important; /* Force breaks clean character lines if pushed */
    }
    
    .site-description {
        font-size: 11px !important;
        letter-spacing: 1px !important;
        margin-top: 8px !important;
    }
}

/* --- Landscape Handset Viewport Constraint --- */
@media (max-width: 960px) and (orientation: landscape) {
    #masthead {
        padding: 12px 15px !important;
        max-width: 90% !important;
    }
    
    .site-title {
        font-size: 24px !important; /* Hardlocks title scaling against high-aspect view flips */
        letter-spacing: 3px !important;
        line-height: 1.1 !important;
    }
    
    .site-description {
        font-size: 11px !important;
        letter-spacing: 2px !important;
        margin-top: 4px !important;
    }
}