/* CAIN Ogre Sin Theme - Modified for The Blue Ogre */

:root {
  --primary-blue: #1a3a6c;
  --secondary-blue: #0f2851;
  --dark-blue: #071d42;
  --light-blue: #4c7fdb;
  --glow-blue: #6e9dfa;
  --text-blue: #bfd9ff;
  --accent-blue: #5cb8ff;
  --frost-blue: #b3e0ff;
  --border-color: #294e87;
  --miasma-color: rgba(76, 127, 219, 0.2);
}

body {
  font-family: 'Cardo', serif;
  background-color: var(--dark-blue);
  color: var(--text-blue);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 50% 50%, var(--primary-blue) 0%, var(--dark-blue) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.05'%3E%3Cpath fill='%23FFFFFF' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-blend-mode: overlay;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Sin Header */
.sin-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.sin-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--miasma-color);
  z-index: -1;
  animation: pulse 8s infinite alternate;
  border-radius: 5px;
}

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

.sin-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 3.5rem;
  letter-spacing: 2px;
  color: var(--frost-blue);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px var(--glow-blue), 0 0 20px var(--glow-blue);
  position: relative;
}

.sin-subtitle {
  font-size: 1.2rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  font-family: 'Cardo', serif;
  font-style: italic;
}

.sin-details {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sin-detail {
  background-color: var(--secondary-blue);
  padding: 8px 15px;
  border-radius: 5px;
  margin: 5px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

/* Section Styling */
.section {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background-color: var(--primary-blue);
  box-shadow: 0 2px 15px rgba(76, 127, 219, 0.15);
  position: relative;
  overflow: hidden;
}

.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--miasma-color) 0%, transparent 100%);
  z-index: -1;
}

.section-title {
  font-family: 'Cinzel Decorative', cursive;
  color: var(--frost-blue);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-top: 0;
  font-size: 1.5rem;
  text-shadow: 0 0 5px var(--glow-blue);
}

/* Boxes */
.box {
  background-color: var(--secondary-blue);
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

/* Domain Section */
.domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.domain {
  background-color: var(--secondary-blue);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.domain:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(76, 127, 219, 0.3);
}

.domain-title {
  color: var(--accent-blue);
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  font-family: 'Cinzel Decorative', cursive;
}

/* Trauma Questions */
.trauma {
  padding: 1rem;
  background-color: rgba(15, 40, 81, 0.7);
  border-radius: 5px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent-blue);
}

.trauma-question {
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* Talisman Styling */
.talisman-title {
  text-align: center;
  font-family: 'Cinzel Decorative', cursive;
  margin-bottom: 0.5rem;
}

.talisman-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.talisman {
  display: flex;
  justify-content: center;
  position: relative;
}

.talisman-segment {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border-color);
  margin: 0 5px;
  position: relative;
  background-color: rgba(11, 29, 66, 0.6);
  transition: all 0.3s;
}

.talisman-segment.filled {
  background-color: rgba(76, 127, 219, 0.3);
}

.talisman-segment.filled::after {
  content: "X";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--frost-blue);
  font-weight: bold;
}

.talisman::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, var(--miasma-color) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.7;
  animation: talismanPulse 4s infinite alternate;
}

@keyframes talismanPulse {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.8;
  }
}

/* Highlight Text */
.highlight {
  color: var(--accent-blue);
  font-weight: bold;
}

/* Tags */
.tag {
  display: inline-block;
  background-color: var(--secondary-blue);
  color: var(--text-blue);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Reactions Section */
.reactions {
  margin-top: 1.5rem;
}

.reaction {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-blue);
}

.reaction-title {
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

/* Miasma Effect */
.miasma-container {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.miasma-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, var(--miasma-color) 50%, transparent 100%);
  animation: miasmaMove 20s infinite linear;
  opacity: 0.6;
  z-index: -1;
}

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

.miasma-content {
  padding: 1.5rem;
  background-color: rgba(26, 58, 108, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

/* Special Stress Pattern */
.stress-table {
  width: 100%;
  border-collapse: collapse;
}

.stress-table th,
.stress-table td {
  padding: 0.5rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.stress-table th {
  background-color: var(--dark-blue);
}

.stress-value {
  font-weight: bold;
  color: var(--frost-blue);
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--accent-blue);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sin-title {
    font-size: 2.5rem;
  }
  
  .domains {
    grid-template-columns: 1fr;
  }
  
  .talisman-segment {
    width: 25px;
    height: 25px;
  }
}

/* Frosted Effect - for important areas */
.frost-effect {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.frost-effect::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, var(--miasma-color) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* Animation for pressure increases */
.pressure-increase {
  animation: pressureFlash 1s;
}

@keyframes pressureFlash {
  0% {
    background-color: var(--accent-blue);
  }
  100% {
    background-color: transparent;
  }
}

/* Severe Attack Styling */
.severe-attack {
  background-color: rgba(92, 184, 255, 0.1);
  border: 1px solid var(--accent-blue);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
  position: relative;
}

.severe-attack::after {
  content: "!";
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: var(--accent-blue);
  color: var(--dark-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}
