/* Horror Theme Variables */
:root {
    /* Core Colors */
    --primary-color: #6b0099; /* Deep purple instead of blood red */
    --primary-hover: #4a006b; /* Darker purple */
    --secondary-color: #2d0040; /* Very dark purple */
    --accent-color: #9900dd; /* Bright purple for accents */
    
    /* Neutrals - Dark theme */
    --bg-color: #0a0a0a; /* Nearly black */
    --bg-surface: #151515; /* Dark surface */
    --bg-elevated: #202020; /* Slightly lighter */
    --bg-highlight: rgba(107, 0, 153, 0.2);
    
    /* Text Colors */
    --text-primary: #d0d0d0; /* Off-white */
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    
    /* Status Colors */
    --success: #006600;
    --warning: #6b0099;
    --error: #9900dd;
    --info: #303030;
    
    /* Borders */
    --border-thin: #333333;
    --border-thick: #444444;
    
    /* Effects */
    --glass-bg: rgba(15, 15, 15, 0.8);
    --glass-border: rgba(107, 0, 153, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6b0099, #4a006b);
    --gradient-secondary: linear-gradient(135deg, #2d0040, #1a0026);
    --gradient-accent: linear-gradient(135deg, #9900dd, #6b0099);
    --gradient-dark: linear-gradient(135deg, #151515, #0a0a0a);
    
    /* Custom Horror Theme */
    --mystical-overlay: radial-gradient(circle at center, rgba(107, 0, 153, 0.1), rgba(153, 0, 221, 0.05));
    --scratches: url('../images/content/scratches.jpeg');
}

/* Body Background */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    background-image: var(--scratches);
    background-attachment: fixed;
}

/* Mystical Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mystical-overlay);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

/* Dark Vignette Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        transparent 0%,
        rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: -2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Creepster', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(153, 0, 221, 0.3);
}

/* Links */
a {
    color: var(--text-primary);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(153, 0, 221, 0.5);
}

/* Header & Navigation */
header {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(107, 0, 153, 0.2);
}

.logo-text {
    font-family: 'Creepster', cursive;
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(153, 0, 221, 0.5);
}

.logo-text::before {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(153, 0, 221, 0.5);
}

/* Navigation */
.nav-links a:not(.btn):hover,
.nav-links a.active {
    background: var(--bg-highlight);
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(107, 0, 153, 0.3);
    border: 1px solid var(--primary-hover);
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(153, 0, 221, 0.5);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(153, 0, 221, 0.3);
}

/* Boxes */
.left_box,
.center_box,
.right_box {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    box-shadow: var(--shadow-md);
}

.left_box:hover,
.center_box:hover,
.right_box:hover {
    box-shadow: 0 0 15px rgba(107, 0, 153, 0.2);
}

.box-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--primary-color);
}

.box-header i {
    color: var(--primary-color);
}

.box-header h3 {
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(153, 0, 221, 0.3);
}

/* Navigation Menu */
.nav-menu a:hover,
.nav-menu a.active {
    background: var(--bg-highlight);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.nav-menu i {
    color: var(--primary-color);
}

/* Status Badges */
.status-badge.online {
    color: var(--success);
}

.status-badge.offline {
    color: var(--error);
}

/* Tables */
.table th {
    background: var(--gradient-dark);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.table td {
    border-bottom: 1px solid var(--border-thin);
}

.table tr:hover td {
    background: var(--bg-highlight);
}

/* Custom Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    background-image: url('../images/content/demon-battle.png');
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(107, 0, 153, 0.4);
    overflow: hidden;
}

/* Alternative hero banner for rotation */
.hero-banner.alt {
    background-image: url('../images/content/demon-battle-alt.png');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.hero-title {
    font-family: 'Creepster', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(153, 0, 221, 0.7);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    max-width: 800px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

/* Character Bazaar */
.bazaar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bazaar-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.bazaar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(107, 0, 153, 0.3);
}

.bazaar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.bazaar-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-thin);
}

.bazaar-image {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bazaar-image img {
    max-width: 100%;
    max-height: 100%;
}

.bazaar-title {
    flex: 1;
}

.bazaar-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.bazaar-info {
    display: flex;
    color: var(--text-secondary);
    font-size: 0.9rem;
    gap: 10px;
}

.bazaar-level,
.bazaar-vocation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bazaar-content {
    padding: 15px;
}

.bazaar-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.bazaar-stat {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.bazaar-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bazaar-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.bazaar-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    padding: 15px;
    border-top: 1px solid var(--border-thin);
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bazaar-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bazaar-button:hover {
    box-shadow: 0 0 10px rgba(153, 0, 221, 0.5);
}

/* Last Kills */
.kills-container {
    margin-top: 20px;
}

.kill-item {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(107, 0, 153, 0.2);
}

.kill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.kill-details {
    flex: 1;
    padding: 15px;
}

.kill-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.kill-title .killer {
    color: var(--primary-color);
}

.kill-title .victim {
    color: var(--text-secondary);
}

.kill-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.kill-time,
.kill-level,
.kill-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kill-time i,
.kill-level i,
.kill-location i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Custom Outfit Display */
.outfit-display {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(107, 0, 153, 0.3);
}

.outfit-display img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
}

.outfit-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Server Status with Blood Theme */
.server-status {
    background: var(--bg-surface);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(107, 0, 153, 0.2);
}

.status-content {
    position: relative;
    overflow: hidden;
}

.status-content::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px 10px rgba(107, 0, 153, 0.5);
    z-index: 0;
    opacity: 0.7;
}

/* Download Button with Blood Effect */
.download-button {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    border: 1px solid var(--primary-hover);
    box-shadow: 0 0 15px rgba(107, 0, 153, 0.3);
}

.download-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(153, 0, 221, 0.2) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-button:hover::before {
    opacity: 1;
}

/* Remove blood drip animations and replace with mystical glow */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mystical-overlay);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Remove old blood drip classes */
.blood-drip {
    display: none;
}

/* Footer with Horror Theme */
footer {
    position: relative;
    background: var(--bg-surface);
    border-top: 1px solid var(--primary-color);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--scratches);
    opacity: 0.1;
    pointer-events: none;
} 