/* VitalSMP - Custom Styles */

:root {
  --vital-green: #9d4edd;
  --vital-dark: #1a1a2e;
  --vital-darker: #0f0f1a;
  --vital-light: #e8f5e9;
  --vital-accent: #c77dff;
}

/* General */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f0f1a;
  color: #e0e0e0;
}

/* Navbar */
.navbar {
  background-color: rgba(15, 15, 26, 0.95) !important;
  border-bottom: 2px solid #9d4edd;
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--vital-accent) !important;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.navbar-brand span {
  color: #ffffff;
}

.navbar .navbar-toggler {
  border-color: rgba(199, 125, 255, 0.6);
}

.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(199, 125, 255, 0.35);
}

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  color: #cccccc !important;
  font-weight: 500;
  margin: 0 0.25rem;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--vital-accent) !important;
}

.navbar-nav .btn-vital.active {
  background-color: #b5179e;
  color: #fff;
}

/* Hero Carousel */
#heroCarousel {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#heroCarousel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.carousel-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 900px);
  z-index: 2;
  bottom: 20%;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-title-icon {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 0.8rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.carousel-caption h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.carousel-caption p {
  font-size: 1.2rem;
  color: #dddddd;
  max-width: 600px;
  margin: 0.5rem auto 1.5rem;
}

.carousel-caption .btn-join {
  background-color: var(--vital-green);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
  display: inline-block;
}

.carousel-caption .btn-join:hover {
  background-color: #b5179e;
  transform: translateY(-2px);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  z-index: 5;
  background-color: rgba(157, 78, 221, 0.3);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-control-prev {
  left: 1rem;
}

.carousel-control-next {
  right: 1rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(157, 78, 221, 0.6);
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: 0;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: var(--vital-accent);
}

/* Scroll-down hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-hint i {
  display: block;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Section styles */
section {
  padding: 80px 0;
}

section[id],
#heroCarousel {
  scroll-margin-top: 90px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--vital-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #aaaaaa;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: #9d4edd;
  margin: 0.75rem auto 1.5rem;
  border-radius: 2px;
}

/* About Section */
#about {
  background-color: #16213e;
}

.about-card {
  background-color: #1a1a2e;
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.3s, transform 0.3s;
}

.about-card:hover {
  border-color: var(--vital-accent);
  transform: translateY(-4px);
}

.about-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--vital-accent);
}

.about-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.about-card p {
  color: #aaaaaa;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Features Section */
#features {
  background-color: #0f0f1a;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(157, 78, 221, 0.15);
  border: 1px solid #9d4edd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--vital-accent);
}

.feature-text h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-text p {
  color: #aaaaaa;
  font-size: 0.93rem;
  margin: 0;
}

.features-image-placeholder {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* Rules Section */
#rules {
  background-color: #16213e;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background-color: #1a1a2e;
  border-radius: 8px;
  border-left: 4px solid #9d4edd;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.rule-item:hover {
  transform: translateX(4px);
}

.rule-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: #9d4edd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.rule-text h6 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.rule-text p {
  color: #aaaaaa;
  font-size: 0.9rem;
  margin: 0;
}

/* Join Section */
#join {
  background: linear-gradient(135deg, #2e1a3e 0%, #1f0f2f 100%);
  border-top: 2px solid #9d4edd;
  border-bottom: 2px solid #9d4edd;
}

.server-ip-box {
  background-color: rgba(0, 0, 0, 0.4);
  border: 2px dashed #9d4edd;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  display: inline-block;
  margin: 1.5rem 0;
}

.server-ip-label {
  font-size: 0.85rem;
  color: #aaaaaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.server-ip {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--vital-accent);
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

#serverIpCopyable {
  cursor: pointer;
  transition: opacity 0.2s;
}

#serverIpCopyable:hover {
  opacity: 0.8;
}

.btn-vital {
  background-color: var(--vital-green);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.2s;
  font-size: 1rem;
}

.btn-vital:hover {
  background-color: #b5179e;
  color: #fff;
  transform: translateY(-2px);
}

.btn-vital-outline {
  background-color: transparent;
  color: var(--vital-accent);
  border: 2px solid #9d4edd;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-vital-outline:hover {
  background-color: var(--vital-green);
  color: #fff;
  transform: translateY(-2px);
}

/* Team Section */
#team {
  background-color: #0f0f1a;
}

.team-card {
  background-color: #16213e;
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.team-card:hover {
  border-color: var(--vital-accent);
  transform: translateY(-4px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9d4edd 0%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  border: 2px solid #9d4edd;
}

.team-card h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.team-card .role {
  color: var(--vital-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.team-card p {
  color: #aaaaaa;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: #080810;
  border-top: 2px solid rgba(157, 78, 221, 0.4);
  padding: 3rem 0 1.5rem;
  color: #888888;
}

footer .footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vital-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

footer .footer-brand span {
  color: #ffffff;
}

footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

footer h6 {
  color: #cccccc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #888888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer ul li a:hover {
  color: var(--vital-accent);
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(45, 158, 79, 0.4);
  border-radius: 50%;
  color: #888888;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  margin-right: 0.5rem;
}

footer .social-links a:hover {
  background-color: var(--vital-green);
  color: #fff;
  border-color: var(--vital-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-title-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 0.6rem;
  }

  .carousel-caption h2 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
    display: none;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .server-ip {
    font-size: 1.3rem;
  }
}
