/**
 * Everything - Hell Theme
 * Dark, fiery, gothic aesthetic with glowing elements
 */

.theme-hell {
  --color-bg: #0a0000;
  --color-bg-alt: #1a0505;
  --color-text: #ffcccc;
  --color-text-muted: #aa6666;
  --color-primary: #ff3333;
  --color-secondary: #ff6600;
  --color-accent: #ffcc00;

  --font-family-body: 'Georgia', 'Times New Roman', serif;
  --font-family-heading: 'Cinzel', 'Times New Roman', serif;

  --shadow-glow: 0 0 20px rgba(255, 51, 51, 0.5);
  --shadow-fire: 0 0 30px rgba(255, 102, 0, 0.4);
}

.theme-hell body {
  background:
    radial-gradient(ellipse at bottom, #1a0505 0%, #0a0000 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient fire glow at bottom */
.theme-hell body::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to top,
    rgba(255, 51, 0, 0.15) 0%,
    rgba(255, 102, 0, 0.08) 30%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Flickering overlay */
.theme-hell body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 0, 0, 0.02);
  pointer-events: none;
  animation: fire-flicker 0.1s infinite;
  z-index: 0;
}

/* Hell container */
.hell-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: var(--space-xl);
}

/* Glowing text */
.hell-glow {
  text-shadow:
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary),
    0 0 30px var(--color-secondary);
}

.hell-glow-intense {
  text-shadow:
    0 0 10px var(--color-primary),
    0 0 20px var(--color-primary),
    0 0 40px var(--color-secondary),
    0 0 60px var(--color-accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Hell heading styles */
.hell-title {
  font-family: var(--font-family-heading);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.hell-subtitle {
  font-family: var(--font-family-heading);
  font-size: var(--text-xl);
  color: var(--color-secondary);
  text-align: center;
  font-style: italic;
}

/* Cards with fire border */
.hell-card {
  background: linear-gradient(135deg, #1a0505 0%, #0a0000 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hell-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-accent),
    var(--color-secondary),
    var(--color-primary)
  );
  animation: shimmer 3s linear infinite;
}

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

.hell-card:hover {
  box-shadow: var(--shadow-fire);
  transform: translateY(-2px);
}

/* Fire button */
.hell-button {
  background: linear-gradient(180deg, #ff4444 0%, #cc0000 50%, #990000 100%);
  color: white;
  border: 2px solid #ff6600;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-family-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hell-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.hell-button:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--color-accent);
}

.hell-button:hover::before {
  left: 100%;
}

/* Separator with flames */
.hell-divider {
  height: 4px;
  background: linear-gradient(90deg,
    transparent,
    var(--color-primary),
    var(--color-secondary),
    var(--color-primary),
    transparent
  );
  margin: var(--space-xl) 0;
  position: relative;
}

.hell-divider::before,
.hell-divider::after {
  content: 'flame';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.hell-divider::before {
  left: 20%;
}

.hell-divider::after {
  right: 20%;
}

/* Quote/excerpt style */
.hell-quote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-md);
  font-style: italic;
  color: var(--color-text-muted);
  position: relative;
}

.hell-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 60px;
  color: var(--color-primary);
  opacity: 0.3;
}

/* Links */
.theme-hell a {
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.theme-hell a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  text-shadow: 0 0 10px var(--color-secondary);
}

/* Pentagram decoration */
.hell-pentagram {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--color-primary);
  animation: spin 30s linear infinite;
}

/* Candle glow effect */
.hell-candle {
  position: relative;
  display: inline-block;
}

.hell-candle::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 20px;
  background: linear-gradient(to top, #ff6600, #ffcc00, transparent);
  border-radius: 50% 50% 20% 20%;
  animation: candle-flicker 0.2s infinite;
}

@keyframes candle-flicker {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(0.95); }
}

/* Smoke effect */
.hell-smoke {
  position: absolute;
  width: 100%;
  height: 200px;
  top: 0;
  left: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(50, 50, 50, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 10%, rgba(50, 50, 50, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Lava text */
.hell-lava-text {
  background: linear-gradient(180deg,
    #ff6600 0%,
    #ff3300 30%,
    #cc0000 60%,
    #660000 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lava-flow 3s ease-in-out infinite;
}

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

/* Scrollbar styling */
.theme-hell ::-webkit-scrollbar {
  width: 10px;
}

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

.theme-hell ::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

.theme-hell ::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Form elements */
.theme-hell input,
.theme-hell textarea {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-primary);
  color: var(--color-text);
  padding: var(--space-sm);
}

.theme-hell input:focus,
.theme-hell textarea:focus {
  outline: none;
  box-shadow: var(--shadow-glow);
}

/* Table styling */
.theme-hell table {
  width: 100%;
  border-collapse: collapse;
}

.theme-hell th,
.theme-hell td {
  padding: var(--space-sm);
  border: 1px solid var(--color-primary);
  text-align: left;
}

.theme-hell th {
  background: linear-gradient(180deg, #330000 0%, #1a0000 100%);
  color: var(--color-secondary);
}

.theme-hell tr:hover {
  background: rgba(255, 51, 51, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hell-title {
    font-size: var(--text-2xl);
    letter-spacing: 2px;
  }

  .hell-card {
    padding: var(--space-md);
  }
}
