/*
Theme Name: GeneratePress Child - Reload Kimmel
Description: Custom child theme for Jimmy Kimmel fan website with red/black design and glitchy effects
Template: generatepress
Version: 1.0.0
*/

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

/* ===== RELOAD KIMMEL CUSTOM STYLES ===== */

/* Root Variables for Consistent Colors */
:root {
    --primary-red: #FF0000;
    --primary-black: #000000;
    --accent-white: #FFFFFF;
    --dark-red: #CC0000;
    --light-gray: #F5F5F5;
    --border-gray: #333333;
}

/* ===== GLOBAL STYLES ===== */

body {
    background-color: var(--primary-black);
    color: var(--accent-white);
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
}

/* ===== HEADER STYLES ===== */

.site-header {
    background-color: var(--primary-black);
    border-bottom: 3px solid var(--primary-red);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-red);
    animation: glitch-border 2s infinite;
}

/* ===== GLITCHY BORDER EFFECTS ===== */

@keyframes glitch-border {
    0%, 100% { 
        transform: translateX(0);
        opacity: 1;
    }
    10% { 
        transform: translateX(-2px);
        opacity: 0.8;
    }
    20% { 
        transform: translateX(2px);
        opacity: 0.9;
    }
    30% { 
        transform: translateX(-1px);
        opacity: 0.7;
    }
    40% { 
        transform: translateX(1px);
        opacity: 0.95;
    }
    50% { 
        transform: translateX(-1px);
        opacity: 0.85;
    }
    60% { 
        transform: translateX(1px);
        opacity: 0.9;
    }
    70% { 
        transform: translateX(0);
        opacity: 1;
    }
}

/* Glitchy TV Static Effect for Content Boxes */
.glitch-box {
    position: relative;
    border: 2px solid var(--primary-red);
    background-color: var(--primary-black);
    padding: 20px;
    margin: 20px 0;
    overflow: hidden;
}

.glitch-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 98%,
        var(--primary-red) 98%,
        var(--primary-red) 100%
    );
    background-size: 3px 100%;
    animation: tv-static 0.3s infinite;
    pointer-events: none;
    opacity: 0.1;
}

@keyframes tv-static {
    0% { background-position: 0 0; }
    10% { background-position: -1px 0; }
    20% { background-position: 1px 0; }
    30% { background-position: 0 -1px; }
    40% { background-position: -1px -1px; }
    50% { background-position: 1px 1px; }
    60% { background-position: 0 1px; }
    70% { background-position: -1px 0; }
    80% { background-position: 1px -1px; }
    90% { background-position: 0 0; }
    100% { background-position: -1px 1px; }
}

/* ===== NAVIGATION STYLES ===== */

.main-navigation {
    background-color: var(--primary-black);
}

.main-navigation a {
    color: var(--accent-white);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--primary-red);
    text-shadow: 0 0 5px var(--primary-red);
}

.main-navigation .current-menu-item a {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

/* ===== CONTENT AREA STYLES ===== */

.site-main {
    background-color: var(--primary-black);
    padding: 40px 20px;
}

.entry-header h1,
.entry-header h2 {
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.entry-content {
    color: var(--accent-white);
    background-color: rgba(255,255,255,0.05);
    padding: 30px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
}

/* ===== BUTTON STYLES ===== */

.wp-block-button__link,
.button,
input[type="submit"],
button {
    background-color: var(--primary-red);
    color: var(--accent-white);
    border: 2px solid var(--primary-red);
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 3px;
}

.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover,
button:hover {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
    transform: translateY(-2px);
}

/* ===== FORM STYLES ===== */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background-color: var(--primary-black);
    color: var(--accent-white);
    border: 2px solid var(--border-gray);
    padding: 10px;
    border-radius: 3px;
    width: 100%;
    max-width: 400px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 5px rgba(255,0,0,0.3);
}

/* ===== SIDEBAR STYLES ===== */

.widget-area {
    background-color: rgba(255,255,255,0.05);
    padding: 20px;
    border: 1px solid var(--border-gray);
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.widget a {
    color: var(--accent-white);
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--primary-red);
}

/* ===== FOOTER STYLES ===== */

.site-footer {
    background-color: var(--primary-black);
    color: var(--accent-white);
    border-top: 3px solid var(--primary-red);
    padding: 40px 20px 20px;
    text-align: center;
}

.site-footer a {
    color: var(--accent-white);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-red);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First Approach */
@media (max-width: 768px) {
    .site-main {
        padding: 20px 10px;
    }
    
    .entry-content {
        padding: 20px;
    }
    
    .glitch-box {
        margin: 10px 0;
        padding: 15px;
    }
    
    .main-navigation a {
        padding: 10px;
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .site-main {
        padding: 30px 15px;
    }
}

@media (min-width: 1025px) {
    .site-main {
        padding: 50px 20px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* High contrast for better readability */
.high-contrast {
    filter: contrast(1.2);
}

/* ===== CUSTOM COMPONENT STYLES ===== */

/* Meme Generator Styles */
.meme-generator {
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border: 2px solid var(--primary-red);
    border-radius: 5px;
    margin: 20px 0;
}

.meme-canvas {
    border: 2px solid var(--border-gray);
    background-color: var(--accent-white);
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

/* Petition Counter Styles */
.petition-counter {
    background-color: var(--primary-red);
    color: var(--accent-white);
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.social-share a {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: var(--accent-white);
    background-color: var(--border-gray);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-share a:hover {
    background-color: var(--primary-red);
    transform: scale(1.1);
}

/* Discord Widget Container */
.discord-widget {
    background-color: rgba(255,255,255,0.05);
    padding: 20px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    margin: 30px 0;
    min-height: 400px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-gray);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FULL-WIDTH LAYOUT (NO SIDEBAR) ===== */

/* Remove sidebar on homepage and about page, make content full-width */
.home .site-main,
.page .site-main {
    width: 100%;
    max-width: none;
}

.home .content-area,
.page .content-area {
    width: 100%;
    float: none;
}

.home .widget-area,
.page .widget-area {
    display: none;
}

/* Center the main content container */
.home .site-content,
.page .site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Adjust homepage specific elements for full-width */
.home .entry-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* About page content styling */
.page .entry-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Make petition form centered and well-spaced */
.home .petition-form,
.page .petition-form {
    max-width: 600px;
    margin: 40px auto;
}

/* Center any meme generator */
.home .meme-generator,
.page .meme-generator {
    max-width: 700px;
    margin: 40px auto;
}

/* Homepage hero section styling */
.home .entry-header {
    text-align: center;
    padding: 60px 0 40px;
}

.home .entry-header h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

/* Page header styling */
.page .entry-header {
    text-align: center;
    padding: 40px 0 30px;
}

.page .entry-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Full-width call-to-action sections */
.home .glitch-box,
.page .glitch-box {
    margin: 40px auto;
    max-width: 900px;
}
