/*
 * Theme: Dark Luxury (Black & Gold Premium)
 * Designed for a high-end, modern, and sophisticated look.
 */

:root {
  --bg-color: #0a0a0a;
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(212, 175, 55, 0.3);
  /* Gold tint border */
  --text-color: #e0e0e0;
  --accent-color: #d4af37;
  /* Metallic Gold */
  --accent-hover: #f1c40f;
  /* Brighter Gold */
  --shadow-color: rgba(0, 0, 0, 0.5);
  --card-glow: 0 0 30px rgba(212, 175, 55, 0.2);
}

body {
  font-family: 'Kanit', sans-serif;
  background: radial-gradient(circle at top left, #1a1a1a, #000000);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Stack items vertically */
  justify-content: space-between;
  /* Not strictly necessary with margin: auto, but good backup */
  align-items: center;
  min-height: 100vh;
  color: var(--text-color);
  overflow-x: hidden;
  position: relative;
  /* Context for fixed background */
}

/* Fixed Background animated element to prevent layout shift */
body::before {
  content: '';
  position: fixed;
  /* Fixed position prevents scrollbar jitter */
  top: -50%;
  left: -50%;
  width: 200vw;
  height: 200vh;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: rotate 60s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.container {
  margin: auto;
  /* Centers effectively */
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 40px 0 var(--shadow-color), var(--card-glow);

  padding: 60px 50px;
  /* Increased Padding */
  border-radius: 25px;
  width: 90%;
  max-width: 800px;
  /* Increased Max Width */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center all children including logo */
  gap: 25px;
  position: relative;
  overflow: hidden;

  /* Container Entrance & Hover Breath */
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.5);
}

/* Subtle gold line at top with shimmer */
.container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  animation: shimmerLine 3s infinite;
}

@keyframes shimmerLine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

h1 {
  margin-top: 0;
  font-weight: 600;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

p {
  color: #ccc;
  font-size: 1.1rem;
  /* Larger Text */
  margin-bottom: 25px;
}

/* Links List Container */
#links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 Columns */
  gap: 20px;
  /* Larger Gap */
  width: 100%;
}

/* Responsive Grid */
@media (max-width: 768px) {
  #links-container {
    grid-template-columns: 1fr;
  }
}

/* Button Links */
.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  text-decoration: none;
  padding: 20px 25px;
  /* Larger Button Padding */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.25rem;
  /* Larger Font */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.button-link:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-color);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.3);
}

.button-link i {
  margin-right: 15px;
  color: var(--accent-color);
  font-size: 1.5em;
  /* Larger Icons */
  transition: transform 0.5s ease;
}

.button-link:hover i {
  transform: rotate(360deg) scale(1.2);
  color: var(--accent-hover);
}

/* Admin Inputs */
input,
select,
textarea {
  font-size: 1.1rem;
  /* Larger Input Font */
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 15px;
  transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transform: scale(1.01);
}

/* Footer & Branding */
.footer {
  margin-top: 40px;
  padding-bottom: 30px;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  transition: color 0.3s;
}

.footer:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Branding Animations */
.site-logo-img {
  width: 150px;
  /* Larger Logo */
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
  transition: transform 0.3s;
}

.site-logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.main-brand {
  font-size: 3.5rem;
  /* Larger Brand Text */
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 30%, var(--accent-color) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  animation: glowText 3s infinite alternate;
}

.typing-container {
  font-size: 1.5rem;
  /* Larger Subtitle */
  color: #fff;
  font-weight: 300;
  letter-spacing: 4px;
  /* Wider spacing */
  min-height: 2em;
  border-right: 3px solid var(--accent-hover);
  padding-right: 8px;
  animation: cursor-blink 0.75s step-end infinite;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  display: inline-block;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes cursor-blink {
  50% {
    border-color: transparent;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

@keyframes glowText {
  from {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2));
  }

  to {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
  }
}