/**
 * 80's Theme - Retro neon synthwave style
 *
 * Inspired by synthwave, retrowave, 80's pop culture, and cyberpunk aesthetics.
 * Features: Neon colors, grid patterns, VHS effects, bold typography.
 *
 * @package YAWC
 * @version 1.0.0
 */

[data-theme="80s"] {
    /* Brand Colors - Neon Palette */
    --theme-primary: #ff10f0;
    --theme-primary-dark: #d000c0;
    --theme-primary-light: #ff5aff;
    --theme-secondary: #00f0ff;
    --theme-accent: #ff006e;

    /* Backgrounds - Deep Purple Night */
    --theme-bg-primary: #1a0033;
    --theme-bg-secondary: #2d0052;
    --theme-bg-tertiary: #3d0066;
    --theme-bg-overlay: rgba(26, 0, 51, 0.95);

    /* Text Colors - Bright Neon */
    --theme-text-primary: #ffffff;
    --theme-text-secondary: #ff10f0;
    --theme-text-tertiary: #00f0ff;
    --theme-text-inverse: #1a0033;

    /* Border Colors - Neon Glow */
    --theme-border-primary: rgba(255, 16, 240, 0.5);
    --theme-border-secondary: rgba(0, 240, 255, 0.3);
    --theme-border-accent: var(--theme-primary);

    /* Typography - Bold & Futuristic */
    --theme-font-sans: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --theme-font-serif: Georgia, serif;
    --theme-font-mono: 'Share Tech Mono', 'Courier New', monospace;
    --theme-font-display: 'Orbitron', sans-serif;

    /* Font Weights - Bold emphasis */
    --theme-font-weight-normal: 500;
    --theme-font-weight-medium: 600;
    --theme-font-weight-semibold: 700;
    --theme-font-weight-bold: 900;

    /* Font Sizes - Larger scale */
    --theme-font-size-xs: 0.75rem;
    --theme-font-size-sm: 0.875rem;
    --theme-font-size-base: 1rem;
    --theme-font-size-lg: 1.25rem;
    --theme-font-size-xl: 1.5rem;
    --theme-font-size-2xl: 2rem;
    --theme-font-size-3xl: 2.5rem;
    --theme-font-size-4xl: 3.5rem;

    /* Spacing */
    --theme-spacing-xs: 0.25rem;
    --theme-spacing-sm: 0.5rem;
    --theme-spacing-md: 1rem;
    --theme-spacing-lg: 1.5rem;
    --theme-spacing-xl: 2rem;
    --theme-spacing-2xl: 3rem;
    --theme-spacing-3xl: 4rem;

    /* Border Radius - Sharp edges */
    --theme-radius-none: 0;
    --theme-radius-sm: 0;
    --theme-radius-md: 4px;
    --theme-radius-lg: 4px;
    --theme-radius-xl: 8px;
    --theme-radius-full: 0;

    /* Shadows - Neon Glow */
    --theme-shadow-xs: 0 0 5px rgba(255, 16, 240, 0.5);
    --theme-shadow-sm: 0 0 10px rgba(255, 16, 240, 0.6);
    --theme-shadow-md: 0 0 20px rgba(255, 16, 240, 0.7);
    --theme-shadow-lg: 0 0 30px rgba(255, 16, 240, 0.8);
    --theme-shadow-xl: 0 0 40px rgba(255, 16, 240, 0.9);
    --theme-shadow-2xl: 0 0 60px rgba(255, 16, 240, 1);

    /* Special Effects - Neon Glow */
    --theme-glow: 0 0 10px rgba(255, 16, 240, 0.8), 0 0 20px rgba(255, 16, 240, 0.6), 0 0 30px rgba(255, 16, 240, 0.4);
    --theme-glow-hover: 0 0 15px rgba(255, 16, 240, 1), 0 0 30px rgba(255, 16, 240, 0.8), 0 0 45px rgba(255, 16, 240, 0.6);
    --theme-gradient-primary: linear-gradient(135deg, #ff10f0 0%, #ff006e 50%, #00f0ff 100%);
    --theme-gradient-secondary: linear-gradient(135deg, #00f0ff 0%, #ff10f0 100%);

    /* Transitions - Snappy */
    --theme-transition-fast: 0.1s ease;
    --theme-transition-base: 0.2s ease;
    --theme-transition-slow: 0.3s ease;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Share+Tech+Mono&display=swap');

/* Grid background effect */
[data-theme="80s"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 16, 240, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 16, 240, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform-origin: center bottom;
    pointer-events: none;
    z-index: 0;
}

/* Sun/horizon gradient */
[data-theme="80s"] body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(255, 16, 240, 0.2) 0%,
        rgba(0, 240, 255, 0.1) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Content above background */
[data-theme="80s"] .site-header,
[data-theme="80s"] .site-content,
[data-theme="80s"] .site-footer {
    position: relative;
    z-index: 1;
}

/* Typography - Neon glow */
[data-theme="80s"] h1,
[data-theme="80s"] h2,
[data-theme="80s"] h3 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: var(--theme-glow);
    font-weight: var(--theme-font-weight-bold);
}

/* Animated neon flicker */
@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    60% { opacity: 1; }
    65% { opacity: 0.9; }
    80% { opacity: 1; }
}

[data-theme="80s"] h1 {
    animation: neon-flicker 3s infinite;
}

/* Buttons - Neon style */
[data-theme="80s"] .button,
[data-theme="80s"] .wp-block-button__link,
[data-theme="80s"] input[type="submit"],
[data-theme="80s"] button[type="submit"],
[data-theme="80s"] .yawc-button {
    background: transparent;
    color: var(--theme-primary);
    border: 3px solid var(--theme-primary);
    text-transform: uppercase;
    font-weight: var(--theme-font-weight-bold);
    letter-spacing: 0.15em;
    box-shadow: var(--theme-shadow-md);
    text-shadow: var(--theme-glow);
    position: relative;
    overflow: hidden;
}

[data-theme="80s"] .button::before,
[data-theme="80s"] .wp-block-button__link::before,
[data-theme="80s"] input[type="submit"]::before,
[data-theme="80s"] button[type="submit"]::before,
[data-theme="80s"] .yawc-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--theme-gradient-primary);
    transition: left var(--theme-transition-base);
    z-index: -1;
}

[data-theme="80s"] .button:hover::before,
[data-theme="80s"] .wp-block-button__link:hover::before,
[data-theme="80s"] input[type="submit"]:hover::before,
[data-theme="80s"] button[type="submit"]:hover::before,
[data-theme="80s"] .yawc-button:hover::before {
    left: 0;
}

[data-theme="80s"] .button:hover,
[data-theme="80s"] .wp-block-button__link:hover,
[data-theme="80s"] input[type="submit"]:hover,
[data-theme="80s"] button[type="submit"]:hover,
[data-theme="80s"] .yawc-button:hover {
    color: var(--theme-text-inverse);
    box-shadow: var(--theme-shadow-xl);
    text-shadow: none;
    border-color: var(--theme-secondary);
}

/* Links - Neon underline */
[data-theme="80s"] a {
    color: var(--theme-secondary);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
    transition: all var(--theme-transition-fast);
}

[data-theme="80s"] a:hover {
    color: var(--theme-primary);
    text-shadow: var(--theme-glow-hover);
}

/* Cards - Neon boxes */
[data-theme="80s"] .yawc-card,
[data-theme="80s"] .article-wrapper,
[data-theme="80s"] .widget {
    background: rgba(26, 0, 51, 0.8);
    border: 2px solid var(--theme-border-primary);
    box-shadow: var(--theme-shadow-md);
    backdrop-filter: blur(10px);
    position: relative;
}

[data-theme="80s"] .yawc-card::before,
[data-theme="80s"] .article-wrapper::before,
[data-theme="80s"] .widget::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--theme-gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--theme-transition-base);
}

[data-theme="80s"] .yawc-card:hover::before,
[data-theme="80s"] .article-wrapper:hover::before {
    opacity: 1;
}

[data-theme="80s"] .yawc-card:hover,
[data-theme="80s"] .article-wrapper:hover {
    box-shadow: var(--theme-shadow-2xl);
}

/* Code blocks - Retro terminal */
[data-theme="80s"] pre,
[data-theme="80s"] code {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--theme-border-secondary);
    box-shadow: var(--theme-shadow-sm);
    font-family: var(--theme-font-mono);
}

[data-theme="80s"] code {
    color: var(--theme-secondary);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

/* Blockquotes - Neon accent */
[data-theme="80s"] blockquote {
    border-left: 4px solid var(--theme-primary);
    background: rgba(255, 16, 240, 0.05);
    box-shadow: var(--theme-shadow-sm);
    position: relative;
}

[data-theme="80s"] blockquote::before {
    content: '█';
    position: absolute;
    left: -2px;
    top: 0;
    color: var(--theme-primary);
    text-shadow: var(--theme-glow);
    animation: blink-80s 1s infinite;
}

@keyframes blink-80s {
    50% { opacity: 0; }
}

/* Header - Neon bar */
[data-theme="80s"] .site-header {
    background: rgba(26, 0, 51, 0.95);
    border-bottom: 3px solid var(--theme-primary);
    box-shadow: 0 5px 20px rgba(255, 16, 240, 0.5);
    backdrop-filter: blur(10px);
}

[data-theme="80s"] .main-title a {
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-weight: var(--theme-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Navigation - Neon buttons */
[data-theme="80s"] .main-navigation a {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--theme-font-weight-semibold);
    border: 2px solid transparent;
    padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    transition: all var(--theme-transition-fast);
}

[data-theme="80s"] .main-navigation a:hover,
[data-theme="80s"] .main-navigation .current-menu-item > a {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    text-shadow: var(--theme-glow);
    box-shadow: var(--theme-shadow-md);
}

/* Footer - Neon grid */
[data-theme="80s"] .site-footer {
    background: rgba(26, 0, 51, 0.95);
    border-top: 3px solid var(--theme-secondary);
    box-shadow: 0 -5px 20px rgba(0, 240, 255, 0.5);
}

/* Badges - Neon tags */
[data-theme="80s"] .cat-links a {
    background: var(--theme-gradient-primary);
    color: var(--theme-text-inverse);
    border: none;
    text-transform: uppercase;
    font-weight: var(--theme-font-weight-bold);
    letter-spacing: 0.05em;
    box-shadow: var(--theme-shadow-md);
}

[data-theme="80s"] .tags-links a {
    background-color: transparent;
    color: var(--theme-secondary);
    border: 2px solid var(--theme-secondary);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

[data-theme="80s"] .tags-links a:hover {
    background-color: var(--theme-secondary);
    color: var(--theme-text-inverse);
    box-shadow: var(--theme-shadow-lg);
}

/* Forms - Neon inputs */
[data-theme="80s"] input,
[data-theme="80s"] textarea,
[data-theme="80s"] select {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--theme-border-primary);
    color: var(--theme-text-primary);
    font-family: var(--theme-font-mono);
}

[data-theme="80s"] input:focus,
[data-theme="80s"] textarea:focus,
[data-theme="80s"] select:focus {
    border-color: var(--theme-secondary);
    box-shadow: var(--theme-shadow-md);
    outline: none;
}

/* Tables - Retro grid */
[data-theme="80s"] table {
    border: 2px solid var(--theme-border-primary);
}

[data-theme="80s"] th {
    background: var(--theme-gradient-primary);
    color: var(--theme-text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--theme-font-weight-bold);
    border: 2px solid var(--theme-border-primary);
}

[data-theme="80s"] td {
    border: 1px solid var(--theme-border-secondary);
}

[data-theme="80s"] tr:hover {
    background: rgba(255, 16, 240, 0.1);
}

/* VHS scanline effect */
@keyframes vhs-scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

[data-theme="80s"] .site-content::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: vhs-scanline 8s linear infinite;
    pointer-events: none;
    z-index: var(--theme-z-tooltip);
}

/* Text selection - Neon highlight */
[data-theme="80s"] ::selection {
    background-color: var(--theme-primary);
    color: var(--theme-text-inverse);
    text-shadow: none;
}

/* Scrollbar - Neon style */
[data-theme="80s"] ::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

[data-theme="80s"] ::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--theme-border-secondary);
}

[data-theme="80s"] ::-webkit-scrollbar-thumb {
    background: var(--theme-gradient-primary);
    border: 2px solid rgba(0, 0, 0, 0.8);
}

[data-theme="80s"] ::-webkit-scrollbar-thumb:hover {
    box-shadow: var(--theme-shadow-md);
}

/* Pulse animation for accents */
@keyframes pulse-neon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

[data-theme="80s"] .widget-title {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: var(--theme-glow);
    animation: pulse-neon 3s ease-in-out infinite;
}
