/* style.css - Clean, smokey style with no hover glitches */

/* ===== Base Variables ===== */
:root {
  /* Monochrome color scheme */
  --cigi-bg-color: #0c0c0c;
  --cigi-card-bg: #161616;
  --cigi-text: #f5f5f5;
  --cigi-accent: #d4d4d4;
  --cigi-hover: rgba(255, 255, 255, 0.12);
  --cigi-glow: rgba(255, 255, 255, 0.05);
  --cigi-pink-glow: rgba(255, 152, 251, 0.3);
  
  /* Dashboard variables */
  --primary-color: #FF98FB;
  --primary-dark: #e06be0;
  --secondary-color: #333333;
  --bg-color: var(--cigi-bg-color);
  --bg-light: var(--cigi-card-bg);
  --bg-lighter: #2a2a2a;
  --text-color: var(--cigi-text);
  --text-muted: var(--cigi-accent);
  --border-color: #444444;
  --success-color: #22BB33;
  --warning-color: #FFCC00;
  --error-color: #FF5555;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition-speed: 0.3s;
  
  /* Menu variables */
  --cigi-menu-bg: #1a1a1a;
  --cigi-menu-hover: #282828;
  --cigi-menu-active: #333333;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
}

body {
  /* Simple static background */
  background-color: #0c0c0c;
  color: var(--cigi-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  display: flex; /* For sidebar layout */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-dark);
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cigi-text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===== Utility Classes ===== */
.hidden { display: none !important; }
.loading { color: var(--text-muted); font-style: italic; }
.error { color: var(--error-color); }

.no-results {
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(10px);
}

.status.online { background-color: var(--success-color); color: #fff; }
.status.offline { background-color: var(--error-color); color: #fff; }
.status.warning { background-color: var(--warning-color); color: #000; }

/* ===== Left sidebar menu ===== */
.sidebar {
  width: 240px;
  background-color: var(--cigi-menu-bg);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sidebar-header a:hover {
  color: var(--cigi-accent-pink);
}

.sidebar-header a i {
  margin-right: 10px;
  font-size: 20px;
}

.sidebar-category {
  margin-top: 15px;
  padding: 0 15px;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.sidebar-menu li {
  margin: 5px 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.sidebar-menu a:hover {
  background-color: var(--cigi-menu-hover);
  color: white;
}

.sidebar-menu a.active {
  background-color: var(--cigi-menu-active);
  color: var(--cigi-accent-pink);
}

.sidebar-menu a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.sidebar-menu .dropdown-indicator {
  margin-left: auto;
  font-size: 12px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Submenu styles */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-submenu.show {
  max-height: 500px; /* Large enough to contain submenu items */
}

.sidebar-submenu li {
  margin: 0;
}

.sidebar-submenu a {
  padding: 8px 15px 8px 40px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Dropdown indicator rotation */
.dropdown-indicator {
  transition: transform 0.3s ease;
}

.dropdown-indicator.rotated {
  transform: rotate(180deg);
}

/* Top navigation bar */
.top-nav {
  height: 60px;
  background-color: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-nav-brand {
  display: flex;
  align-items: center;
}

.menu-toggle {
  margin-right: 15px;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.brand-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--cigi-accent-pink);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.login-btn {
  display: flex;
  align-items: center;
  background-color: #5865F2; /* Discord color */
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #4752c4;
}

.login-btn i {
  margin-right: 8px;
}

/* User profile in login button when logged in */
.login-btn.logged-in {
  background-color: #454FBF;
}

.login-btn.logged-in:hover {
  background-color: #3a43a3;
}

/* User dropdown menu */
.user-dropdown {
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: var(--cigi-menu-bg);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  padding: 10px 0;
  display: none;
  z-index: 1000;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown-item {
  padding: 8px 15px;
  color: white;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.user-dropdown-item:hover {
  background-color: var(--cigi-menu-hover);
}

.user-dropdown-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Divider in dropdown */
.dropdown-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 5px 0;
}

/* Main content area */
.main-content {
  margin-left: 240px;
  margin-top: 60px;
  width: calc(100% - 240px);
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  perspective: 1000px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Outfit', sans-serif;
}

.admin-link {
  color: var(--cigi-accent);
  opacity: 0.5;
  font-size: 0.8rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
  margin-bottom: 0.5rem;
}

.admin-link:hover {
  opacity: 0.8;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
  margin: 0;
}

/* ===== Enhanced Smoke Effects - SUBTLE VERSION ===== */
.smoke-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.smoke {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 70%);
  animation: smoke-float 60s infinite alternate ease-in-out;
  opacity: 0.05;
  will-change: transform;
}

.smoke1 {
  top: 30%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  animation-duration: 75s;
  background: radial-gradient(circle at center, rgba(255, 152, 251, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.smoke2 {
  top: 70%;
  left: 60%;
  width: 50vw;
  height: 50vw;
  animation-duration: 85s;
  animation-delay: 5s;
  opacity: 0.04;
}

.smoke3 {
  top: 40%;
  left: 70%;
  width: 30vw;
  height: 30vw;
  animation-duration: 95s;
  animation-delay: 10s;
  opacity: 0.03;
  background: radial-gradient(circle at center, rgba(255, 152, 251, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

.smoke4 {
  top: 20%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  animation-duration: 90s;
  animation-delay: 15s;
  opacity: 0.04;
}

.smoke5 {
  top: 60%;
  left: 25%;
  width: 45vw;
  height: 45vw;
  animation-duration: 80s;
  animation-delay: 20s;
  opacity: 0.03;
}

/* Extremely slow, gentle smoke animation */
@keyframes smoke-float {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(3%, 2%) scale(1.02) rotate(2deg); }
  100% { transform: translate(-2%, 1%) scale(0.98) rotate(3deg); }
}

/* ===== Logo Container ===== */
.logo-container {
  transform-style: preserve-3d;
  margin-bottom: 1rem; /* Even closer to the buttons */
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
}

.logo-container::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(255, 152, 251, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  z-index: -1;
}

.cigi-logo {
  position: relative;
  transform-style: preserve-3d;
  display: flex;
}

/* ===== Floating Letters - NO HOVER EFFECTS ===== */
.floating-letter {
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--cigi-text);
  text-shadow: 
    0 0 15px rgba(255, 152, 251, 0.3),
    0 2px 5px rgba(0, 0, 0, 0.5);
  margin: 0 0.02em;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  pointer-events: none; /* Prevents hover effects from affecting the text */
}

/* Individual fixed letter animations */
#letter1 { animation: float1 6s infinite ease-in-out; }
#letter2 { animation: float2 7s infinite ease-in-out; }
#letter3 { animation: float3 8s infinite ease-in-out; }
#letter4 { animation: float4 6.5s infinite ease-in-out; }
#letter5 { animation: float5 7.5s infinite ease-in-out; }
#letter6 { animation: float6 8.5s infinite ease-in-out; }
#letter7 { animation: float7 7s infinite ease-in-out; }
#letter8 { animation: float8 6.8s infinite ease-in-out; }

/* Individual float animations to prevent syncing and snapping */
@keyframes float1 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes float2 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

@keyframes float3 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

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

@keyframes float5 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes float6 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
  100% { transform: translateY(0); }
}

@keyframes float7 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
  100% { transform: translateY(0); }
}

@keyframes float8 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ===== Round Button Links Container ===== */
.round-links-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s 0.9s forwards; /* Animation starts earlier */
  position: relative;
  z-index: 10; /* Ensure buttons are above any potential background elements */
}

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

/* ===== Round Button Styles - Reduced hover growth ===== */
.round-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(25, 25, 25, 0.5);
  border: 2px solid rgba(255, 152, 251, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.2),
    0 0 10px rgba(255, 152, 251, 0.1);
  overflow: hidden;
}

.round-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 152, 251, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reduced hover effect by 50% */
.round-btn:hover {
  transform: translateY(-4px) scale(1.075); /* Smaller growth on hover */
  border-color: rgba(255, 152, 251, 0.5);
  box-shadow: 
    0 8px 15px rgba(0, 0, 0, 0.25),
    0 0 15px rgba(255, 152, 251, 0.25);
  background: rgba(35, 35, 35, 0.8);
}

.round-btn:hover::before {
  opacity: 1;
}

.round-btn:active {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 
    0 5px 10px rgba(0, 0, 0, 0.2),
    0 0 8px rgba(255, 152, 251, 0.2);
}

.btn-icon-svg {
  width: 32px;
  height: 32px;
  fill: white;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.round-btn:hover .btn-icon-svg {
  fill: var(--primary-color);
  filter: drop-shadow(0 0 5px rgba(255, 152, 251, 0.5));
  transform: scale(1.05); /* Reduced icon scale on hover */
}

/* Button title tooltip */
.tooltip-text {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background-color: rgba(25, 25, 25, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  font-weight: 500;
  border: 1px solid rgba(255, 152, 251, 0.2);
}

.round-btn:hover .tooltip-text {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ===== Custom cursor - reduced size and made more subtle ===== */
.cursor-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5; /* Lower z-index to prevent interference */
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 250px; /* Smaller glow */
  height: 250px;
  background: radial-gradient(circle, rgba(255, 152, 251, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}

/* ===== Click ripple effect ===== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 152, 251, 0.2);
  transform: scale(0);
  animation: ripple-effect 0.8s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* ===== Sound toggle ===== */
.sound-toggle {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeIn 1s 1.25s forwards;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.sound-toggle:hover {
  background: rgba(40, 40, 40, 0.8);
  transform: scale(1.1);
  border-color: rgba(255, 152, 251, 0.3);
}

.sound-toggle i {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
}

/* ===== Preloader - Animation speed doubled ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cigi-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s; /* Faster transition */
}

.preloader-logo {
  position: relative;
  display: flex;
}

.preloader-letter {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 10px rgba(255, 152, 251, 0.5);
  margin: 0 0.04em;
  opacity: 0;
  animation: fadeInUp 0.25s forwards; /* Faster animation */
  font-family: 'Outfit', sans-serif;
}

/* Animation delays cut in half */
.preloader-letter:nth-child(1) { animation-delay: 0.05s; }
.preloader-letter:nth-child(2) { animation-delay: 0.1s; }
.preloader-letter:nth-child(3) { animation-delay: 0.15s; }
.preloader-letter:nth-child(4) { animation-delay: 0.2s; }
.preloader-letter:nth-child(5) { animation-delay: 0.25s; }
.preloader-letter:nth-child(6) { animation-delay: 0.3s; }
.preloader-letter:nth-child(7) { animation-delay: 0.35s; }
.preloader-letter:nth-child(8) { animation-delay: 0.4s; }

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

/* ===== Mobile optimizations ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-240px);
    transition: transform 0.3s ease;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .top-nav {
    left: 0;
    width: 100%;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  /* Overlay for sidebar when it's open */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .floating-letter {
    font-size: 4.5rem;
  }
  
  .logo-container {
    height: 150px;
    margin-bottom: 1rem; /* Consistent with the desktop version */
  }
  
  .sound-toggle {
    width: 35px;
    height: 35px;
    top: 75px;
    right: 15px;
  }
  
  .sound-toggle i {
    font-size: 1rem;
  }
  
  .round-links-container {
    gap: 2rem;
  }
  
  .round-btn {
    width: 56px;
    height: 56px;
  }
  
  .btn-icon-svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .floating-letter {
    font-size: 3.5rem;
  }
  
  .logo-container {
    height: 120px;
    margin-bottom: 1rem; /* Consistent with other breakpoints */
  }
  
  .round-links-container {
    gap: 1.5rem;
  }
  
  .round-btn {
    width: 48px;
    height: 48px;
  }
  
  .btn-icon-svg {
    width: 24px;
    height: 24px;
  }
}
