/**
 * Minecraft-specific styling for Freaze Hosting
 */

/* Hero section */
.minecraft-hero {
  background: linear-gradient(rgba(22, 35, 60, 0.85), rgba(22, 35, 60, 0.85)), url('../images/minecraft/minecraft-bg.png');
  background-size: cover;
  background-position: center;
  padding-top: 120px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

/* Grid overlay for Minecraft-style effect */
.minecraft-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/minecraft/grid-overlay.png');
  opacity: 0.1;
  pointer-events: none;
}

/* Minecraft blocks in hero */
.minecraft-blocks {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.minecraft-block {
  width: 64px;
  height: 64px;
  background-size: cover;
}

.grass { background-image: url('../images/minecraft/grass.png'); }
.dirt { background-image: url('../images/minecraft/dirt.png'); }
.stone { background-image: url('../images/minecraft/stone.png'); }

/* Floating particles */
.minecraft-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(67,191,227,0.5); /* Keep light blue with opacity */
  border-radius: 50%;
  animation: float 15s infinite linear;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 50%; left: 20%; animation-delay: 3s; }
.particle:nth-child(3) { top: 30%; left: 80%; animation-delay: 6s; }
.particle:nth-child(4) { top: 70%; left: 90%; animation-delay: 9s; }
.particle:nth-child(5) { top: 60%; left: 40%; animation-delay: 12s; }

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-800px) rotate(360deg);
    opacity: 0;
  }
}

/* Minecraft button styling */
.minecraft-btn {
  background-color: #43bfe3;
  border-color: #43bfe3;
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.minecraft-btn:hover, .minecraft-btn:focus {
  background-color: var(--dark-blue); /* Changed to dark blue */
  border-color: var(--dark-blue);
  color: var(--white); /* Keep white text for contrast */
}

.minecraft-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
  z-index: -1;
}

.minecraft-btn:hover::after {
  left: 100%;
}

/* Ore blocks for pricing cards */
.minecraft-ore {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  z-index: 2;
}

.ore-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card backgrounds - update to use only approved colors */
.bg-cobble { background: linear-gradient(135deg, var(--light-gray) 0%, var(--gray) 100%); } /* Changed to light gray */
.bg-coal { background: linear-gradient(135deg, var(--gray) 0%, var(--dark-blue) 100%); } /* Changed to gray to dark blue */
.bg-iron { background: linear-gradient(135deg, var(--light-gray) 0%, var(--gray) 100%); } /* Changed to light gray */
.bg-lapis { background: linear-gradient(135deg, #43bfe3 0%, #16233c 100%); } /* This already uses approved colors */
.bg-gold { background: linear-gradient(135deg, var(--light-blue) 0%, #3aafd2 100%); } /* Changed from yellow to light blue */
.bg-redstone { background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-blue) 100%); } /* Changed from red to approved colors */
.bg-diamond { background: linear-gradient(135deg, #43bfe3 0%, #3aafd2 100%); } /* Slightly adjusted but keeps light blue */
.bg-emerald { background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-blue) 100%); } /* Changed from green to approved colors */

/* Minecraft icons */
.minecraft-icon {
  color: #43bfe3;
  font-size: 1.5rem;
}

/* Pricing cards */
.minecraft-pricing-card {
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.minecraft-pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

/* Features section */
.minecraft-feature-card {
  background: linear-gradient(145deg, #1a1a1a, #151515);
  transition: all 0.3s ease;
  border-radius: 10px;
  border: 1px solid #333;
}

.minecraft-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Feature icons */
.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(67, 191, 227, 0.1);
  margin-bottom: 20px;
}

/* Grass border for sections */
.minecraft-info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background-image: url('../images/minecraft/grass-top.png');
  background-repeat: repeat-x;
  background-size: 32px 16px;
}

/* Frames for images */
.minecraft-image-frame {
  position: relative;
  padding: 10px;
  background-color: #151515;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  overflow: hidden;
  border: 1px solid #333;
}

.minecraft-image-frame:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #43bfe3;
}

/* Popular badge */
.popular-badge {
  position: absolute;
  top: 0;
  right: 20px;
  background: var(--yellow); /* Changed from yellow to light blue */
  color: var(--white); /* Changed to white for better contrast */
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0 0 5px 5px;
  z-index: 2;
}

/* Text colors */
.text-success {
  color: #43bfe3 !important; /* Changed from green to light blue */
}

/* Discount banner */
.minecraft-discount-banner {
  background: linear-gradient(135deg, #43bfe3 0%, #16233c 100%);
}

/* RAM info section with background image */
.minecraft-ram-bg {
  position: relative;
  background: linear-gradient(rgba(50, 50, 50, 0.7), rgba(50, 50, 50, 0.7)), url('/images/minecraft/minecraft-bg-dark.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.minecraft-ram-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/minecraft/grid-overlay.png');
  opacity: 0.05;
  pointer-events: none;
}

.minecraft-ram-bg img.floating-animation {
  max-height: 380px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Remove previous frame styling for the RAM section */
.minecraft-ram-bg .minecraft-image-frame {
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.minecraft-ram-bg .minecraft-image-frame:before {
  display: none;
}

/* Animations for Minecraft mobs */
.floating-animation {
  animation: floating 6s ease-in-out infinite;
}

.floating-animation-slow {
  animation: floating 8s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Mods section with background image */
.minecraft-mods-bg {
  position: relative;
  background: linear-gradient(rgba(50, 50, 50, 0.7), rgba(50, 50, 50, 0.7)), url('/images/minecraft/minecraft-bg-dark.png');
  background-size: cover;
  background-position: center;
  min-height: 400px;
  overflow: hidden;
  border-radius: 12px;
}

.minecraft-mods-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/minecraft/grid-overlay.png');
  opacity: 0.05;
  pointer-events: none;
}

.minecraft-mods-container {
  padding: 20px 0;
}

/* Different animation speeds for characters */
.floating-animation-slow {
  animation: floating 8s ease-in-out infinite;
  animation-delay: 1s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .minecraft-blocks {
    display: none;
  }
  
  .minecraft-particles .particle:nth-child(n+4) {
    display: none;
  }
}

/* Grid styles for the demo section (scoped under .grid-container) */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 10px 10px;
  grid-auto-flow: row;
  /* Make every implicit row the same size so rows stay equal-height.
    Use a minmax so rows get a reasonable minimum height and don't collapse
    (helps when some items span multiple rows). */
  grid-auto-rows: minmax(150px, 1fr);
  /* Ensure grid items stretch to fill their grid area */
  align-items: stretch;
  align-content: stretch;
  grid-template-areas:
    "test3 test4 test5 test6"
    "test7 test test test8"
    "test7 test2 test2 test8";
  /* allow children to shrink correctly when using flex inside grid items */
  /* don't force an arbitrary min height — let the grid determine sizes */
  min-height: 0;
}


.grid-container .test  { grid-area: test; }
.grid-container .test2 { grid-area: test2; }
.grid-container .test3 { grid-area: test3; }
.grid-container .test4 { grid-area: test4; }
.grid-container .test5 { grid-area: test5; }
.grid-container .test6 { grid-area: test6; }
.grid-container .test7 { grid-area: test7; }
.grid-container .test8 { grid-area: test8; }

/* Small visual styles for the demo tiles */
.grid-container > div {
  background: #151515;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: #e2e8f0;
  /* ensure the element can shrink inside the grid cell (important for flex children) */
  min-height: 0;
}

.service-compact-card {
  padding: 25px 20px;
  border-radius: 8px;
  background-color: #151515;
  border: 2px solid #43bfe3;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.service-compact-card-long {
  grid-row: span 3;
  /* height: 300%; */
  min-height: 0;
}

.service-compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 191, 227, 0.2);
}

.service-compact-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #43bfe3;
  margin-bottom: 10px;
}

.service-compact-description {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-bottom: 15px;
}

.service-compact-price {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.service-compact-price .price-amount {
  font-weight: 700;
  color: #43bfe3;
  font-size: 1.3rem;
}

/* Push price and button to the bottom so cards appear balanced */
.service-compact-card .service-compact-price {
  margin-top: auto;
}
.service-compact-card .btn {
  margin-top: 12px;
}

/* Put the button at the very bottom for Redstone and Diamond only */
.test7.service-compact-card .btn,
.test8.service-compact-card .btn {
  /* auto will consume available space in the flex column and push the button to the bottom */
  margin-top: auto;
  margin-bottom: 0;
}

.service-compact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push alles na .service-compact-price naar beneden */
.test7 .service-compact-price,
.test8 .service-compact-price {
  margin-top: auto; /* zorgt dat prijs + button naar beneden worden gedrukt */
}

/* Optioneel: de button helemaal onderaan */
.test7 .btn,
.test8 .btn {
  margin-top: 8px;
  margin-bottom: 0;
}

/* Make the grid responsive on small screens */
@media (max-width: 767.98px) {
  .grid-container { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: none; }
}

/* Hero styles */
.hero-wave { position:absolute; bottom:0; left:0; width:100%; line-height:0 }
.hero-wave svg { width:100%; height:70px }
.minecraft-btn { background: linear-gradient(135deg, #43bfe3 0%, #2a9fd6 100%); border-color:#43bfe3; color:#fff; transition: all 0.3s ease; }
.minecraft-btn:hover,.minecraft-btn:focus { background: linear-gradient(135deg, #2a9fd6 0%, #1e8ab8 100%); border-color:#2a9fd6; color:#fff; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(67, 191, 227, 0.3); }
.btn-outline-light { transition: all 0.3s ease; }
.btn-outline-light:hover { color: #16233c; background: #ffffff; border-color: #ffffff; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3); }
.text-success { color:#43bfe3 !important }
.hover-lift { transition:transform .2s ease, box-shadow .2s ease }
.hover-lift:hover { transform: translateY(-6px); box-shadow:0 12px 24px rgba(0,0,0,.15) !important }

/* Feature cards hover effect */
.feature-hover-card { transition: all 0.3s ease; cursor: default; }
.feature-hover-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(67, 191, 227, 0.2) !important; border-left: 4px solid #43bfe3 !important; }
.feature-hover-card i { transition: all 0.3s ease; }
.feature-hover-card:hover i { transform: scale(1.1); color: #2a9fd6 !important; }

/* Slightly smaller hero and buttons */
.minecraft-hero { padding-top: 80px; padding-bottom: 60px; }
.hero-buttons .btn { padding: 0.4rem 0.7rem; font-size: 0.9rem; }

/* Make bottom feature cards and call-to-action smaller */
.feature-card h3 { font-size: 1rem; }
.feature-card p { font-size: 0.9rem; }
