/* TURTLE DETAIL PAGE – warmer cyan-indigo text palette */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  color: #d1d5db;
  background: #0b132b;
}

/* Hero */
.detail-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 9rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
}

.hero-bg-grain {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3"/><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.05"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.detail-hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  background: linear-gradient(90deg, #67e8f9, #7dd3fc, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  color: #a5b4fc;
  opacity: 0.92;
  max-width: 760px;
  margin: 0 auto;
}

/* Main Content */
.detail-content {
  padding: 6rem 2rem 10rem;
  max-width: 1300px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}

.info-card, .visual-card {
  background: linear-gradient(145deg, rgba(30,41,59,0.82), rgba(15,23,42,0.92));
  border: 1px solid rgba(103,232,249,0.16);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.38);
  transition: all 0.5s ease;
}

.info-card:hover, .visual-card:hover {
  transform: translateY(-10px);
  border-color: rgba(103,232,249,0.45);
  box-shadow: 0 20px 60px rgba(103,232,249,0.28);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-header i {
  font-size: 2.2rem;
  color: #67e8f9;
}

.card-header h2, .visual-header h3 {
  font-size: 1.9rem;
  color: #7dd3fc;
}

.rule-boxes {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.rule-box {
  background: rgba(103,232,249,0.14);
  border: 1px solid rgba(103,232,249,0.32);
  border-radius: 1rem;
  padding: 1.2rem 1.8rem;
  flex: 1;
  min-width: 160px;
  text-align: center;
}

.rule-label {
  font-size: 0.95rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
}

.rule-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #7dd3fc;
}

.chart-wrapper {
  height: 320px;
  background: #0f172a;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

.breakout-chart {
  width: 100%;
  height: 100%;
}

/* Extra Info */
.extra-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.info-item {
  background: rgba(30,41,59,0.72);
  border: 1px solid rgba(103,232,249,0.14);
  border-radius: 1.3rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.45s ease;
}

.info-item:hover {
  transform: translateY(-6px);
  border-color: rgba(103,232,249,0.38);
}

.info-item i {
  font-size: 2.2rem;
  color: #67e8f9;
  margin-bottom: 1rem;
}

.info-item h4 {
  font-size: 1.4rem;
  color: #7dd3fc;
  margin-bottom: 0.8rem;
}

/* Back Link */
.back-link {
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.2rem;
  background: rgba(103,232,249,0.14);
  border: 1px solid rgba(103,232,249,0.32);
  border-radius: 1rem;
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn-back:hover {
  background: rgba(103,232,249,0.24);
  transform: translateY(-3px);
  border-color: #67e8f9;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .detail-hero { padding: 6rem 1.5rem 8rem; }
  .content-grid { gap: 2.5rem; }
  .detail-content { padding: 5rem 1.5rem 8rem; }
}