/*
Theme Name: PW247 Ultimate
Theme URI: https://prowrestling247.com
Author: Ivanito
Author URI: https://prowrestling247.com
Description: The official high-performance media theme for Pro Wrestling 24/7.
Version: 1.0
Text Domain: pw247-ultimate
*/

/* GLOBAL RESET & THEME DEFAULTS */
body { background-color: #000000; color: #ffffff; font-family: 'Arial', sans-serif; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none !important; transition: 0.3s; }
h1, h2, h3, h4, .accent { color: #FFAA00; }

/* PERSISTENT HEADER (128px) */
#pw247-header { height: 128px; background: rgba(0,0,0,0.75); border-bottom: 5px solid #FFFFFF; position: sticky; top: 0; z-index: 9999; }

/* GORILLA SCROLLER (20px) */
#pw247-scroller { height: 20px; background: rgba(0,0,0,0.75); color: #FFAA00; font-size: 14px; line-height: 20px; border-bottom: 1px solid #333; }

/* PERSISTENT FOOTER (128px) */
#pw247-footer { height: 128px; background: rgba(0,0,0,0.75); border-top: 5px solid #FFFFFF; position: fixed; bottom: 0; width: 100%; z-index: 9999; }

/* Core Reset & Typography */
body { background-color: #000000; color: #ffffff; font-family: Arial, sans-serif; margin: 0; padding: 0; }
a { color: #ffffff; text-decoration: none !important; }
h1, h2, h3, h4, h5, h6 { color: #FFAA00; font-family: Arial, sans-serif; }

/* Layout Elements */
#pw247-header { height: 128px; position: sticky; top: 0; z-index: 999; border-bottom: 5px solid #FFFFFF; }
#pw247-ticker { height: 20px; color: #FFAA00; font-size: 9pt; overflow: hidden; white-space: nowrap; }

/* Menu & Turnbuckle Caret */
.main-nav ul { list-style: none; display: flex; align-items: center; }
.main-nav li { margin-right: 20px; position: relative; }
.main-nav a { color: #FFAA00; font-weight: bold; }
.main-nav a:hover { color: #FFFFFF; background: rgba(0,0,0,var(--menu-hover-opacity)); }
.main-nav li:hover::before { 
    content: ''; position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; 
    background: url('images/turnbuckle.png') no-repeat center; background-size: contain; 
}

/* Footer & Radio */
#pw247-footer { height: 128px; position: fixed; bottom: 0; width: 100%; border-top: 5px solid #FFFFFF; z-index: 999; }
.copyright { float: right; color: #FFAA00; font-family: Arial; text-transform: uppercase; padding: 20px; }

/* Glowing Live Button */
.live-glow { color: #ff0000; animation: glow-red 1.5s infinite alternate; font-weight: bold; }
@keyframes glow-red { from { text-shadow: 0 0 5px #f00; } to { text-shadow: 0 0 20px #f00, 0 0 30px #f00; } }/*
Theme Name: PW247 Ultimate
Theme URI: https://prowrestling247.com
Author: Gemini AI
Version: 1.0
Text Domain: pw247
*/

body {
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #FFAA00;
}

a {
    color: inherit;
    text-decoration: none !important;
}

/* Header & Scroller Styles */
#pw247-header {
    height: 128px;
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 5px solid #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 9999;
}

#pw247-scroller {
    height: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #FFAA00;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
}

.scroller-title {
    font-weight: bold;
    padding-right: 15px;
}

/* Footer Styles */
#pw247-footer {
    height: 128px;
    background: rgba(0, 0, 0, 0.75);
    border-top: 5px solid #FFFFFF;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.copyright {
    color: #FFAA00;
    font-family: Arial;
    text-transform: uppercase;
    float: right;
    padding: 20px;
}

.pw247-turnbuckle {
    width: 100px;
    height: 100px;
    background: url('images/turnbuckle.png');
    position: relative;
}

.pw247-bell-icon {
    width: 50px;
    height: 50px;
    background: url('images/ring-bell.png');
    transition: 0.3s;
}

.pw247-turnbuckle:hover {
    background-color: rgba(170, 255, 0, 0.5); /* #AAFF00 with transparency */
}

/* Tilt the bells as requested */
.prev-btn .pw247-bell-icon { transform: rotate(-15deg); }
.next-btn .pw247-bell-icon { transform: rotate(15deg); }

.turnbuckle-caret {
    display: none;
    width: 20px;
    height: 20px;
    background: url('images/turnbuckle-tiny.png') no-repeat center;
    position: absolute;
    top: -25px;
}
.menu-item:hover .turnbuckle-caret {
    display: block;
}
.menu-item:hover a {
    background-color: rgba(0,0,0, 0.25); /* Default 25% transparency */
}

/* The CRT Scanline Effect */
.live-broadcast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    ), linear-gradient(
        90deg, 
        rgba(255, 0, 0, 0.03), 
        rgba(0, 255, 0, 0.01), 
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 3px 100%;
    z-index: 9998; /* Just below the menu/header but above content */
    pointer-events: none; /* Allows users to still click through to links */
    display: none; /* Hidden by default */
}

/* When the "Live" class is active on the body */
body.is-live-on-air .live-broadcast-overlay {
    display: block;
    animation: flicker 0.15s infinite;
}

/* Subtle CRT Flicker */
@keyframes flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

.pw247-live-btn.glow-red {
    background: #FF0000;
    color: #FFFFFF;
    font-weight: bold;
    border: 1px solid #770000;
    text-shadow: 0 0 5px #FFF;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pw247-live-btn.glow-red:hover {
    box-shadow: 0 0 40px rgba(255, 0, 0, 1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .playlist-featured-wrapper { float: none !important; margin: 0 auto 20px !important; }
    #pw247-header, #pw247-footer { height: auto; min-height: 100px; }
}

/**
 * PW247 Kayfabe Age Filter
 * Applies to images in the Hall of Fame grid
 */

.kayfabe-age-filter {
    position: relative;
    overflow: hidden;
    filter: sepia(1) saturate(0.5) contrast(0.9); /* OId Paper Toning */
}

/* Creating the custom 'Aged Mask' overlay (This needs a transparent PNG mask file) */
.gallery-trophy-case .kayfabe-age-filter::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a 'Tattered/Broken Edge' PNG for the mask */
    background: url('images/aged-paper-mask.png') no-repeat center;
    background-size: 100% 100%;
    z-index: 2;
    opacity: 0.8; /* Slight overlay transparency */
    pointer-events: none; /* Allows the image to remain clickable */
}

/* Optional: Add a subtle paper texture over the image */
.gallery-trophy-case::before {
    content: "";
    position: absolute;
    top: 15px; /* Matches padding */
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: url('images/paper-texture-overlay.jpg') repeat;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

#pw247-header {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
}

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.main-menu {
    animation: slideIn 1s ease;
}

.menu-item a:hover {
    background-color: #FFAA00;
    color: #FFFFFF !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.site-title a {
    color: #FFAA00;
    -webkit-text-stroke: 2px #FFFFFF;
    text-stroke: 2px #FFFFFF;
}

.menu-item a {
    background: linear-gradient(to right, #FFAA00, #FF6600);
    color: #FFFFFF !important;
}

#pw247-footer {
    box-shadow: inset 0 10px 20px -10px rgba(255, 170, 0, 0.4), 0 -5px 15px rgba(0, 0, 0, 0.8);
    border-top: 5px solid #FFFFFF;
}

#pw247-footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255, 170, 0, 0.05) 20px, rgba(255, 170, 0, 0.05) 40px);
    mask-image: linear-gradient(to top, black, transparent);
    pointer-events: none;
}

#pw247-footer {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.75);
}

.pw247-live-btn.glow-red {
    position: relative;
}
.pw247-live-btn.glow-red::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, transparent 70%);
    animation: pulse-ambient 2s infinite;
    z-index: -1;
}

@keyframes pulse-ambient {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
}

.social-icon { color: #ffffff; font-size: 18px; transition: 0.3s; } .social-icon:hover { color: #FFAA00; }

/* GORILLA SCROLLER LOGIC */
#pw247-gorilla-scroller {
    height: 20px;
    background: #000000;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
}

#pw247-gorilla-scroller .ticker-label {
    background: #FFAA00;
    color: #000000;
    font-weight: bold;
    font-size: 9pt; /* Your specific requirement */
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

#pw247-gorilla-scroller marquee {
    color: #FFAA00;
    font-size: 9pt; /* Your specific requirement */
    font-family: 'Courier New', Courier, monospace;
}

/* MAIN HEADER LOGIC */
#pw247-main-header {
    height: 108px;
    position: fixed;
    top: 20px; /* Sits below the Gorilla scroller */
    width: 100%;
    z-index: 9999;
    border-bottom: 5px solid #FFFFFF;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 0 auto;
}

/* MENU POP EFFECTS */
.main-navigation ul { list-style: none; display: flex; gap: 20px; margin: 0; }
.main-navigation a {
    color: #FFFFFF;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
}

.main-navigation a:hover {
    color: #FFAA00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}

.site-title a {
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5), 0 0 20px rgba(255, 170, 0, 0.3);
    animation: titantron-glow 3s infinite alternate;
}
@keyframes titantron-glow {
    from { opacity: 0.8; }
    to { opacity: 1; text-shadow: 0 0 15px rgba(255, 170, 0, 0.8); }
}

/* BROADCAST SCANLINE OVERLAY */
#pw247-main-header::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creates a repeating 2px pattern: 1px black, 1px transparent */
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    ), 
    linear-gradient(
        90deg, 
        rgba(255, 0, 0, 0.02), 
        rgba(0, 255, 0, 0.01), 
        rgba(0, 0, 255, 0.02)
    );
    background-size: 100% 2px, 3px 100%; /* The horizontal lines and tiny vertical RGB jitter */
    z-index: 1; /* Sits behind the text/logo but over the background color */
    pointer-events: none; /* Ensures users can still click the menu */
}

/* TITANTRON LOGO GLOW */
.site-title a, .site-branding img {
    position: relative;
    z-index: 2; /* Sits above the scanlines */
    filter: drop-shadow(0 0 5px rgba(255, 170, 0, 0.5));
    animation: titantron-flicker 5s infinite;
}

/* Subtle 'Power On' Flicker Effect */
@keyframes titantron-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.9; }
    94% { opacity: 1; }
    96% { opacity: 1; }
    97% { opacity: 0.85; }
    98% { opacity: 1; }
}
.header-container {
    position: relative;
    z-index: 5; /* This keeps everything sharp and above the scanline overlay */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 0 auto;
}

/* RETRO HALFTONE TEXTURE */
#pw247-home-arena {
    background-image: radial-gradient(#1a1a1a 1px, transparent 0);
    background-size: 20px 20px; /* This creates a subtle dot grid like old newsprint */
}

/* CARDS POP */
.program-card {
    transition: all 0.2s ease-in-out;
}

.program-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px #FFAA00 !important;
}

/* NEWSTAND IMAGES */
.news-grid article:hover img {
    filter: contrast(1.1) grayscale(0) !important;
}


body { background-color: #000; color: #fff; margin: 0; padding: 0; font-family: 'Arial', sans-serif; overflow-x: hidden; }
.accent { color: #FFAA00; }

/* Layout UI */
#pw247-gorilla-scroller { height: 20px; background: #000; border-bottom: 1px solid #333; position: fixed; top: 0; width: 100%; z-index: 10000; display: flex; align-items: center; color: #FFAA00; font-size: 9pt; font-family: monospace; }
#pw247-main-header { height: 108px; position: fixed; top: 20px; width: 100%; z-index: 9999; border-bottom: 5px solid #FFF; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); }
#pw247-footer { height: 128px; position: fixed; bottom: 0; width: 100%; background: #000; border-top: 5px solid #FFF; z-index: 9999; }
.header-spacer { height: 128px; }

/* Menu Styling */
#pw247-navigation-bar { background: #000; border: 1px solid #FFF; padding: 0 20px; }
.pw247-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.pw247-menu li a { display: block; padding: 15px 25px; color: #FFAA00; text-decoration: none; font-family: 'Impact', sans-serif; text-transform: uppercase; transition: 0.3s; }
.pw247-menu li:hover > a { background: rgba(139, 101, 0, 0.4); color: #FFF; }
.pw247-menu ul { position: absolute; background: transparent; backdrop-filter: blur(10px); list-style: none; min-width: 250px; padding: 0; display: none; border: 1px solid #FFF; z-index: 10001; }
.pw247-menu li:hover > ul { display: block; }

/* Retro TV Styling */
.has-retro-overlay .tv-screen-wrapper::after {
    content: ""; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.25) 50%), linear-gradient(90deg, rgba(255,0,0,0.06), rgba(0,255,0,0.02), rgba(0,0,255,0.06));
    background-size: 100% 3px, 6px 100%; pointer-events: none; z-index: 10;
}
