/**
 * Retrobeat - Modern Frontend Styles
 * Ultra-modern, distinctive design with retro-futuristic touches
 */

/* ============================================
   CSS VARIABLES - CUSTOM THEME
   ============================================ */
:root {
    /* Color Palette - Neon Retro Theme */
    --primary: #FF2E97;
    --primary-dark: #D91E77;
    --secondary: #00E5FF;
    --accent: #FFD600;
    --dark: #0A0E27;
    --dark-light: #1A1F3A;
    --dark-lighter: #252B4A;
    --text: #FFFFFF;
    --text-dim: #B8BDD8;
    --success: #00FFA3;
    --warning: #FFB800;
    --danger: #FF3366;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF2E97 0%, #7D2AFF 100%);
    --gradient-secondary: linear-gradient(135deg, #00E5FF 0%, #0066FF 100%);
    --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #1A1F3A 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(255, 46, 151, 0.2) 0%, transparent 70%);
    
    /* Typography */
    --font-heading: 'Orbitron', 'Exo 2', sans-serif;
    --font-body: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Effects */
    --shadow-glow: 0 0 20px rgba(255, 46, 151, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(255, 46, 151, 0.2);
    --blur-glass: blur(10px);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 46, 151, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    color: var(--text-dim);
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(255, 46, 151, 0.1);
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-card);
    background: rgba(10, 14, 39, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 46, 151, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: var(--gradient-glow);
    animation: float 8s ease-in-out infinite;
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-dim);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 46, 151, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: var(--spacing-xl) 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 46, 151, 0.3);
}

.card:hover::before {
    opacity: 0.05;
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.card-text {
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--secondary);
    gap: 0.75rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 46, 151, 0.1);
    padding: var(--spacing-lg) 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-dim);
    transition: var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 46, 151, 0.1);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Radio Player in Footer */
.radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: var(--blur-glass);
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 46, 151, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.radio-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.radio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.radio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 46, 151, 0.5);
}

.radio-info {
    text-align: center;
}

.radio-status {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.radio-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--dark-light);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: var(--transition-base);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .radio-player {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-lg) 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   HTML CONTENT STYLES (from TinyMCE)
   ============================================ */
.html-content {
    color: var(--text-dim);
}

.html-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.html-content h1,
.html-content h2,
.html-content h3,
.html-content h4,
.html-content h5,
.html-content h6 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.html-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.html-content h3 {
    font-size: 1.4rem;
}

.html-content ul,
.html-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.html-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.html-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.html-content a:hover {
    color: var(--secondary);
}

.html-content strong,
.html-content b {
    color: var(--text);
    font-weight: 600;
}

.html-content em,
.html-content i {
    font-style: italic;
}

.html-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 46, 151, 0.05);
    border-radius: var(--radius-sm);
    font-style: italic;
}

.html-content code {
    background: var(--dark-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--secondary);
}

.html-content pre {
    background: var(--dark-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.html-content pre code {
    background: none;
    padding: 0;
}

.html-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.html-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.html-content table th,
.html-content table td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.html-content table th {
    background: var(--dark-light);
    color: var(--text);
    font-weight: 600;
}

.html-content table tr:hover {
    background: rgba(255, 46, 151, 0.05);
}

.html-content hr {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}
