/* ============================================
   GOTHIC DREAMCORE AESTHETIC
   Inspired by @unicornscythe Instagram
   Color Palette: Purple, Magenta, Dark Gothic
   ============================================ */

/* CSS Variables - Color Palette */
:root {
    /* Primary Backgrounds */
    --bg-primary: #2D1B3D;
    --bg-secondary: #3D2548;
    --bg-tertiary: #4A3359;
    --bg-box: rgba(61, 37, 72, 0.6);
    
    /* Accent Colors */
    --accent-primary: #E879F9;
    --accent-secondary: #D946EF;
    --accent-tertiary: #F0ABFC;
    --accent-soft: #A78BFA;
    
    /* Text Colors */
    --text-primary: #F3E8FF;
    --text-secondary: #D8B4E2;
    --text-accent: #E879F9;
    
    /* Additional */
    --dark-red: #DC2626;
    --near-black: #1A1A1A;
    --glow-magenta: rgba(232, 121, 249, 0.4);
    --glow-purple: rgba(167, 139, 250, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Verdana', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(232, 121, 249, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Main Container - Modern Gothic Box */
.main-container {
    width: 90%;
    max-width: 950px;
    margin: 40px auto;
    background: rgba(45, 27, 61, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 121, 249, 0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(232, 121, 249, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid rgba(232, 121, 249, 0.4);
    border-radius: 16px;
    margin-bottom: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px var(--glow-magenta);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.site-header h1 {
    margin: 5px 0;
    font-family: 'Georgia', serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 2rem;
    color: var(--text-primary);
    text-shadow: 
        0 0 20px var(--accent-primary),
        0 0 40px var(--accent-secondary),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

/* Marquee Effect - Modernized */
.marquee-container {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(232, 121, 249, 0.2);
    border-radius: 8px;
    height: 30px;
    overflow: hidden;
    position: relative;
    margin-top: 15px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.marquee-content {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 30px;
    text-align: center;
    color: var(--accent-tertiary);
    font-size: 0.9rem;
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
    text-shadow: 0 0 10px var(--glow-magenta);
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Layout Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}

/* Generic Box Style - Modern Glassmorphism */
.box {
    background: var(--bg-box);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(232, 121, 249, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 30px var(--glow-purple),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.box:hover {
    border-color: var(--accent-primary);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 0 50px var(--glow-magenta),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Georgia', serif;
    border-bottom: 2px solid rgba(232, 121, 249, 0.3);
    text-shadow: 0 0 15px var(--glow-magenta);
}

/* Sidebar Styles */
.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.status-box p {
    font-size: 0.9rem;
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.status-box p b {
    color: var(--accent-tertiary);
    text-shadow: 0 0 8px var(--glow-magenta);
}

.status-sticker {
    height: 80px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(61, 37, 72, 0.4) 100%);
    border: 1px dashed var(--accent-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 10px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Navigation Buttons - Modern Gothic Style */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.retro-btn {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--accent-soft);
    border-radius: 10px;
    padding: 10px 15px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.retro-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-magenta), transparent);
    transition: left 0.5s ease;
}

.retro-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 0 30px var(--glow-magenta);
    transform: translateY(-2px);
}

.retro-btn:hover::before {
    left: 100%;
}

.retro-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 20px var(--glow-magenta);
}

/* Updates Scroll Box */
.updates-box {
    flex-grow: 1;
}

.updates-scroll {
    height: 140px;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.updates-scroll p {
    margin: 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px dotted rgba(232, 121, 249, 0.2);
    line-height: 1.5;
}

.updates-scroll p b {
    color: var(--accent-tertiary);
}

/* Main Content Styles */
.main-content-box {
    min-height: 350px;
}

.welcome-header h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Georgia', serif;
    color: var(--accent-primary);
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-shadow: 
        0 0 20px var(--glow-magenta),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.text-content {
    line-height: 1.8;
    font-size: 1rem;
    padding: 0 15px;
    color: var(--text-secondary);
}

.text-content h3 {
    color: var(--accent-tertiary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    text-shadow: 0 0 15px var(--glow-magenta);
}

.text-content p {
    margin: 12px 0;
}

.retro-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent, 
        var(--accent-soft), 
        transparent
    );
    margin: 25px 0;
    box-shadow: 0 0 10px var(--glow-purple);
}

/* Placeholder Grid in Secondary Content */
.grid-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(61, 37, 72, 0.6) 100%);
    border: 1px solid var(--accent-soft);
    border-radius: 12px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.grid-item:hover {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-color: var(--accent-primary);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 0 25px var(--glow-magenta);
    transform: translateY(-3px);
}

/* Scrollbar Styling - Gothic Purple Theme */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-soft) 100%);
    border-radius: 5px;
    border: 1px solid rgba(232, 121, 249, 0.3);
    box-shadow: 0 0 10px var(--glow-magenta);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px var(--glow-magenta);
}

a:hover {
    color: var(--accent-tertiary);
    text-shadow: 0 0 15px var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
        border-radius: 16px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .site-header h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .welcome-header h2 {
        font-size: 1.4rem;
    }
    
    .grid-placeholder {
        grid-template-columns: 1fr;
    }
    
    .box {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
        border-radius: 12px;
    }
    
    .site-header h1 {
        font-size: 1.2rem;
    }
    
    .box {
        padding: 12px;
        border-radius: 12px;
    }
    
    .retro-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
