/*
Theme Name: Neon Gaming Theme Pro
Author: Custom Developer
Description: Complete, fully responsive cyberpunk theme framework layout for gaming blogs.
Version: 4.0
License: GNU General Public License v2 or later
Text Domain: neon-gaming
*/

/* ==========================================================================
   1. CORE VARIABLES & GLOBAL SETUP
   ========================================================================== */
:root {
    --bg-dark: #06070d;
    --panel-bg: #0d111c;
    --neon-cyan: #00f3ff;
    --neon-pink: #ff0055;
    --text-main: #ade8f4;
    --text-muted: #64748b;
    --glow: 0 0 10px rgba(0, 243, 255, 0.3), 0 0 20px rgba(0, 243, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 0, 85, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 243, 255, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* ==========================================================================
   2. HEADER NAVIGATION BAR
   ========================================================================== */
header {
    background: rgba(13, 17, 28, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--neon-pink);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header h1 a {
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--neon-pink);
}

header nav a {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

header nav a:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: inset var(--glow);
}

/* ==========================================================================
   3. INDESTRUCTIBLE GRID COLUMN CONTROLLER (FIXES SIDEBAR FOOTER BUG)
   ========================================================================== */
/* We target every single possible container wrapper variant to completely ban wrapping */
.wp-gaming-master-grid,
.container,
#page .container,
body .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    max-width: 1250px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    gap: 40px !important;
}

/* Forces main feed to hold 66% width cleanly on the left */
.wp-gaming-main-feed,
main,
.container > main {
    width: 66% !important;
    max-width: 66% !important;
    flex: 0 0 66% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 35px !important;
}

/* Forces the sidebar to stay locked tightly at 30% width on the right */
.wp-gaming-sidebar,
aside,
.container > aside {
    width: 30% !important;
    max-width: 30% !important;
    flex: 0 0 30% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 35px !important;
}

/* ==========================================================================
   4. ARTICLES & MEDIA IMAGES
   ========================================================================== */
article {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--neon-cyan);
    border-radius: 6px;
    padding: 30px;
    width: 100% !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow), 0 10px 30px rgba(0, 0, 0, 0.6);
    border-color: var(--neon-pink);
}

article h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

article h2 a {
    color: #ffffff;
}

.post-meta {
    font-size: 0.8em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.post-content {
    color: #94a3b8;
    font-size: 16px;
}

.featured-image-container {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

article img {
    user-select: none !important;
    -webkit-user-drag: none !important;
}

/* ==========================================================================
   5. UNIFIED SIDEBAR MODULES
   ========================================================================== */
.sidebar-widget {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--neon-pink);
    border-radius: 6px;
    padding: 25px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sidebar-widget h3 {
    color: #ffffff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.search-form { display: flex; gap: 10px; width: 100%; }
.search-form label { flex: 1; }
.search-form .search-field {
    width: 100%;
    background: #06070d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px 12px;
    color: #ffffff;
    outline: none;
}
.search-form .search-field:focus { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0, 243, 255, 0.4); }
.search-form .search-submit {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--neon-pink);
    border-radius: 4px;
    padding: 0 15px;
    font-weight: bold;
    cursor: pointer;
}
.search-form .search-submit:hover { background: var(--neon-pink); }

.recent-posts-widget ul, .categories-widget ul { list-style: none; }
.recent-posts-widget li, .categories-widget li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}
.recent-posts-widget li:last-child, .categories-widget li:last-child { border-bottom: none; }

.sidebar-post-title { color: #ffffff; font-size: 14px; font-weight: 600; }
.sidebar-post-item:hover .sidebar-post-title { color: var(--neon-cyan); }
.sidebar-post-date { font-size: 11px; color: var(--text-muted); }

.categories-widget li a { display: flex; justify-content: space-between; align-items: center; color: #ffffff; font-size: 14px; }
.categories-widget li a:hover { color: var(--neon-cyan); padding-left: 5px; }
.categories-widget .cat-count { background: rgba(255, 0, 85, 0.1); color: var(--neon-pink); border: 1px solid var(--neon-pink); font-size: 11px; padding: 2px 8px; border-radius: 20px; }

/* ==========================================================================
   6. COMMENTS, SHARING HUB & INTERNAL WATERMARKS
   ========================================================================== */
#comments { margin-top: 50px; padding-top: 30px; border-top: 2px dashed rgba(0, 243, 255, 0.2); }
.comments-title, .comment-reply-title { color: #ffffff; font-size: 20px; text-transform: uppercase; margin-bottom: 25px; }
.comment-list { list-style: none; }
.comment-list .comment-body { background: var(--panel-bg); border-left: 3px solid var(--neon-pink); padding: 20px; margin-bottom: 20px; border-radius: 4px; }
.comment-author cite { color: var(--neon-cyan); font-style: normal; font-weight: bold; }
.comment-form p { display: flex; flex-direction: column; gap: 5px; margin-bottom: 15px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { background: #06070d; border: 1px solid rgba(255, 255, 255, 0.1); padding: 12px; color: #ffffff; border-radius: 4px; }
.comment-form .submit { background: transparent; color: #ffffff; border: 1px solid var(--neon-pink); padding: 10px 25px; font-weight: bold; cursor: pointer; border-radius: 4px; }
.comment-form .submit:hover { background: var(--neon-pink); box-shadow: 0 0 15px var(--neon-pink); }

.neon-share-box { margin: 40px 0 20px 0; padding: 20px; background: var(--panel-bg); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 4px; display: flex; flex-direction: column; gap: 12px; }
.share-title-text { font-size: 12px; text-transform: uppercase; color: var(--text-muted); font-weight: bold; }
.share-buttons-row { display: flex; flex-wrap: wrap; gap: 12px; }
.share-btn { font-size: 12px; font-weight: bold; text-transform: uppercase; padding: 10px 20px; border-radius: 4px; color: #ffffff !important; background: #06070d; }

.share-btn.fb { border: 1px solid #1877f2; } .share-btn.fb:hover { background: #1877f2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.6); }
.share-btn.x-twitter { border: 1px solid #ffffff; } .share-btn.x-twitter:hover { background: #ffffff; color: #000000 !important; box-shadow: 0 0 15px #fff; }
.share-btn.reddit { border: 1px solid #ff4500; } .share-btn.reddit:hover { background: #ff4500; box-shadow: 0 0 15px rgba(255, 69, 0, 0.6); }
.share-btn.whatsapp { border: 1px solid #25d366; } .share-btn.whatsapp:hover { background: #25d366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.6); }
.share-btn.linkedin { border: 1px solid #0a66c2; } .share-btn.linkedin:hover { background: #0a66c2; box-shadow: 0 0 15px rgba(10, 102, 194, 0.6); }
.share-btn.pinterest { border: 1px solid #bd081c; } .share-btn.pinterest:hover { background: #bd081c; box-shadow: 0 0 15px rgba(189, 8, 28, 0.6); }
.share-btn.telegram { border: 1px solid #24a1de; } .share-btn.telegram:hover { background: #24a1de; box-shadow: 0 0 15px rgba(36, 161, 222, 0.6); }
.share-btn.threads { border: 1px solid #444444; } .share-btn.threads:hover { background: #ffffff; color: #000000 !important; box-shadow: 0 0 15px #fff; }
.img-copyright-wrapper { position: relative !important; display: inline-block !important; max-width: 100% !important; margin: 15px 0 !important; }
.img-copyright-wrapper img { display: block !important; max-width: 100% !important; height: auto !important; }
.img-copyright-wrapper .internal-img-copyright { position: absolute !important; bottom: 12px !important; right: 12px !important; z-index: 5 !important; font-size: 11px !important; color: #ffffff !important; font-weight: bold !important; text-transform: uppercase !important; background: rgba(6, 7, 13, 0.85) !important; padding: 5px 12px !important; border-radius: 4px !important; border-bottom: 2px solid var(--neon-pink) !important; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important; pointer-events: none !important; }
/* ==========================================================================
7. FOOTER & GLOBAL MOBILE BREAKS
========================================================================== */
footer {
background: #090d16;
border-top: 1px solid rgba(255, 255, 255, 0.05);
text-align: center;
padding: 30px;
margin-top: 80px;
font-size: 14px;
color: var(--text-muted);
width: 100% !important;
clear: both !important;
}
@media (max-width: 968px) {
.wp-gaming-master-grid, .container, #page .container, body .container {
flex-direction: column !important;
}
.wp-gaming-main-feed, main, .container > main,
.wp-gaming-sidebar, aside, .container > aside {
width: 100% !important;
max-width: 100% !important;
flex: 0 0 100% !important;
}
}