/*
Theme Name: Sound of Robot Theme
Author: Hal
Description: A custom full-width, sidebar-free theme designed for Sound Of Robot. Features psychedelic animations, custom header overlays, and an immersive layout.
Version: 1.0
Text Domain: sound-of-robot
*/

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--wp--preset--font-family--primary, 'Segoe UI', Roboto, sans-serif);
    background-color: #0b0c10;
    color: #c5c6c7;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Psychedelic Animated Background Layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(31, 178, 204, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(199, 44, 226, 0.15) 0%, transparent 40%);
    animation: driftCircles 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes driftCircles {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(3%, 5%); }
}

/* Container Layout (No Sidebars) */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-area {
    width: 100%;
}

/* News Post Snippets */
.news-snippet {
    background: rgba(31, 40, 51, 0.4);
    border: 1px solid #45f3ff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.news-snippet:hover {
    transform: translateY(-5px);
}

.news-snippet a {
    color: #66fcf1;
    text-decoration: none;
    font-weight: bold;
}

.news-snippet a:hover {
    text-decoration: underline;
    color: #45f3ff;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}
/* ==========================================
   HAMBURGER & POP-OUT MENU STYLES
   ========================================== */

/* The 3-Bars Button Layout */
.menu-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 30px;
    background: rgba(11, 12, 16, 0.85);
    border: 1px solid #45f3ff;
    box-shadow: 0 0 10px rgba(69, 243, 255, 0.3);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 6px;
    cursor: pointer;
    z-index: 9999; /* Keeps it on top of everything */
    transition: all 0.3s ease;
}

.menu-toggle .bar {
    width: 100%;
    height: 30px;
    background-color: #45f3ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Transform the 3 bars into an "X" when active */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hidden Popout Drawer (Slides out from the right) */
.popout-navigation {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden completely off-screen by default */
    width: 300px;
    height: 100vh;
    background: rgba(11, 12, 16, 0.98);
    border-left: 2px solid #45f3ff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    padding: 100px 30px 30px 30px;
    z-index: 9998;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

/* When active, slide it into view */
.popout-navigation.active {
    right: 0;
}

/* Navigation Links inside the Popout */
.popout-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.popout-menu-list li a {
    color: #c5c6c7;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.2s ease;
    display: block;
}

.popout-menu-list li a:hover {
    color: #45f3ff;
    text-shadow: 0 0 8px rgba(69, 243, 255, 0.6);
    padding-left: 5px; /* Subtle shift on hover */
}
/* Emergency text color override for the menu items */
.popout-navigation ul li a,
.popout-navigation div li a {
    color: #c5c6c7 !important;
}
.popout-navigation ul li a:hover {
    color: #45f3ff !important;
}
/* ==========================================
   NEWS DATE STAMP STYLING
   ========================================== */
.news-date {
    font-size: 0.85rem;
    color: #45f3ff; /* Matching your neon cyan accent color */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
    margin-bottom: 15px;
    opacity: 0.8;
}