/* === Hero Section === */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #7c1d1d, #f59e0b);
  color: #fff;
  border-bottom: 4px solid #facc15;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite, fadeIn 1s;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.6);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h2 {
  font-size: 3.4rem;
  margin-bottom: 1.2rem;
  font-weight: 900;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
  animation: fadeIn 1.3s ease forwards;
  letter-spacing: 1.2px;
}

.hero p {
  font-size: 1.4rem;
  color: #fef3c7cc;
  animation: fadeIn 1.8s ease forwards;
  max-width: 650px;
  margin: 0 auto;
  font-weight: 600;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* === Sections General === */
.fade-section {
  padding: 2.5rem;
  margin: 1rem auto;
  max-width: 1100px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Section Titles === */
#announcements,
#discord {
  text-align: center;
}

#announcements h3,
#discord h3 {
  margin-bottom: 1.2rem;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 1.3px;
  text-shadow: 0 0 12px #facc15;
  color: #facc15;
  text-transform: uppercase;
}

/* === Announcement List === */
#announcement-list {
  background-color: #1f1f1f;
  padding: 1.7rem;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* === Announcement Box === */
.announcement {
  background-color: #121212;
  border-left: 5px solid #facc15;
  padding: 1.4rem 1.3rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.07);
}

.announcement:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.3);
}

.announcement h4 {
  margin: 0 0 0.6rem;
  color: #facc15;
  font-size: 1.4rem;
  text-shadow: 0 0 7px #000;
  font-weight: 700;
}

.announcement p {
  color: #ddd;
  margin-bottom: 0.4rem;
  line-height: 1.5;
  font-weight: 500;
}

.announcement small {
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
}

/* === Discord Section === */
#discord iframe {
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  width: 100%;
  min-height: 300px;
}

/* === Fade-In Animation Keyframe === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsive Styles === */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.2rem;
  }

  .hero h2 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.1rem;
    max-width: 90%;
  }

  .fade-section {
    padding: 1.5rem 1rem;
    margin: 1rem 0.5rem;
  }

  #announcements h3,
  #discord h3 {
    font-size: 1.7rem;
  }

  #announcement-list {
    padding: 1.2rem;
  }

  .announcement h4 {
    font-size: 1.2rem;
  }

  .announcement p {
    font-size: 1rem;
  }

  #discord iframe {
    min-height: 220px;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}

/* === Hero Actions Section === */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* IP Copy Box */
.ip-box {
  background-color: #1f1f1f;
  border: 2px solid #facc15;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.3);
  user-select: all;
  cursor: pointer;
}

.ip-box:hover {
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
}

#server-ip {
  font-weight: 700;
  color: #fef08a;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#copy-btn {
  background-color: #facc15;
  color: #111;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(250, 204, 21, 0.4);
  position: relative;
  outline: none;
}

#copy-btn:hover {
  background-color: #eab308;
  box-shadow: 0 6px 15px rgba(250, 204, 21, 0.7);
}

/* Social Buttons */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-btn {
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  display: inline-block;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  user-select: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.discord {
  background-color: #5865f2;
  color: #fff;
  box-shadow: 0 0 15px #5865f2;
}

.discord:hover {
  background-color: #4752c4;
  box-shadow: 0 0 20px #4752c4;
  transform: scale(1.05);
}

.whatsapp {
  background-color: #25D366;
  color: #fff;
  box-shadow: 0 0 15px #25D366;
}

.whatsapp:hover {
  background-color: #1ebe5b;
  box-shadow: 0 0 20px #1ebe5b;
  transform: scale(1.05);
}

/* tooltip settings 👇 */

.btn-copy {
  /* button */
  --button-bg: #353434;
  --button-hover-bg: #464646;
  --button-text-color: #cccccc;
  --button-hover-text-color: orangered;
  --button-border-radius: 10px;
  --button-diameter: 36px;
  --button-outline-width: 1px;
  --button-outline-color: rgb(141, 141, 141);
  /* tooltip */
  --tooltip-bg: #f4f3f3;
  --toolptip-border-radius: 4px;
  --tooltip-font-family: Menlo, Roboto Mono, monospace;
  /* 👆 this field should not be empty */
  --tooltip-font-size: 12px;
  /* 👆 this field should not be empty */
  --tootip-text-color: rgb(50, 50, 50);
  --tooltip-padding-x: 7px;
  --tooltip-padding-y: 7px;
  --tooltip-offset: 8px;
  /* --tooltip-transition-duration: 0.3s; */
  /* 👆 if you need a transition, 
  just remove the comment,
  but I didn't like the transition :| */
}

.btn-copy {
  box-sizing: border-box;
  width: var(--button-diameter);
  height: var(--button-diameter);
  border-radius: var(--button-border-radius);
  background-color: var(--button-bg);
  color: var(--button-text-color);
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}

.btn-copy > .cp-tooltip {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font: var(--tooltip-font-size) var(--tooltip-font-family);
  color: var(--tootip-text-color);
  background: var(--tooltip-bg);
  padding: var(--tooltip-padding-y) var(--tooltip-padding-x);
  border-radius: var(--toolptip-border-radius);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
}

.btn-copy > .cp-tooltip::before {
  content: attr(data-text-initial);
}

.btn-copy > .cp-tooltip::after {
  content: "";
  position: absolute;
  bottom: calc(var(--tooltip-padding-y) / 2 * -1);
  width: var(--tooltip-padding-y);
  height: var(--tooltip-padding-y);
  background: inherit;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
  pointer-events: none;
}

.btn-copy svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cp-check-mark {
  display: none;
}

/* actions */

.btn-copy:hover .cp-tooltip,
.btn-copy:focus:not(:focus-visible) .cp-tooltip {
  opacity: 1;
  visibility: visible;
  top: calc((100% + var(--tooltip-offset)) * -1);
}

/* Tooltip text when copied */
.btn-copy.copied .cp-tooltip::before {
  content: attr(data-text-end);
}

/* Swap icons when copied */
.btn-copy.copied .cp-clipboard {
  display: none;
}
.btn-copy.copied .cp-check-mark {
  display: block;
}


.btn-copy:hover,
.btn-copy:focus {
  background-color: var(--button-hover-bg);
}

.btn-copy:active {
  outline: var(--button-outline-width) solid var(--button-outline-color);
}

.btn-copy:hover svg {
  color: var(--button-hover-text-color);
}

