/* ========================================
   MAKEVIA STUDIOKIT MAIN STYLESHEET
   ======================================== */

/* CSS Variables - Professional Gaming Theme */
:root {
  --primary-blue: #0088cc;
  --primary-blue-dark: #006699;
  --primary-blue-light: #33aadd;
  --secondary-purple: #7c3aed;
  --accent-green: #08bf86;
  --accent-orange: #ea580c;
  --accent-neon-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --bg-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b69 100%);
  --bg-card-gradient: linear-gradient(145deg, #1e1e3f 0%, #2a2a5a 100%);
  --text-primary: #ffffff;
  --text-secondary: #b4b4d4;
  --text-light: #8888bb;
  --text-neon: #06b6d4;
  --bg-main: #0f0f23;
  --bg-secondary: #1a1a3e;
  --bg-card: #252555;
  --border-color: #333366;
  --border-neon: #0088cc;
  --shadow-sm: 0 2px 4px 0 rgba(0, 136, 204, 0.1);
  --shadow-md: 0 4px 12px -1px rgba(0, 136, 204, 0.15);
  --shadow-lg: 0 10px 25px -3px rgba(0, 136, 204, 0.2);
  --shadow-neon: 0 0 20px rgba(0, 136, 204, 0.4);
  --glow-text: 0 0 10px currentColor;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 16, 240, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Page Headers */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 0;
}

.welcome-text {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-cyan);
}

/* Gaming Title Effects */
.gaming-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.05em;
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-neon-pink), var(--accent-cyan));
  background-size: 200% 200%;
  animation: rainbow-glow 3s ease-in-out infinite alternate;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--glow-text);
}

@keyframes rainbow-glow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.neon-border {
  border: 1px solid var(--border-neon);
  box-shadow: 
    0 0 5px rgba(0, 212, 255, 0.5),
    inset 0 0 5px rgba(0, 212, 255, 0.1);
}

.cyber-grid {
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Gaming Animations */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

@keyframes rainbow-border {
  0% { border-color: var(--primary-blue); }
  16% { border-color: var(--accent-cyan); }
  33% { border-color: var(--accent-green); }
  50% { border-color: var(--accent-orange); }
  66% { border-color: var(--accent-neon-pink); }
  83% { border-color: var(--secondary-purple); }
  100% { border-color: var(--primary-blue); }
}

@keyframes cyber-scan {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes data-stream {
  0% { transform: translateY(100vh) rotateX(0deg); }
  100% { transform: translateY(-100vh) rotateX(360deg); }
}

/* Hover Animations */
.hover-glow:hover {
  animation: glow-pulse 2s infinite ease-in-out;
}

.rainbow-border:hover {
  animation: rainbow-border 3s infinite ease-in-out;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Header */
header {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(0, 212, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-neon);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--primary-blue);
  text-shadow: 0 0 10px currentColor;
}

/* Logo Container with Stamp */
.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-main i {
  font-size: 1.75rem;
}

.logo-stamp {
  position: absolute;
  top: -8px;
  right: -25px;
  background: var(--accent-green);
  color: var(--bg-main);
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  transform: rotate(20deg);
  border-radius: 3px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(0, 255, 136, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.5);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  z-index: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  color: var(--text-neon);
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--border-neon);
  text-shadow: 0 0 8px currentColor;
}

nav a:hover::before {
  width: 80%;
}

nav a.button {
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple));
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--border-neon);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0.05em;
}

nav a.button:hover {
  background: linear-gradient(45deg, var(--primary-blue-dark), var(--accent-neon-pink));
  transform: translateY(-2px);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(0, 212, 255, 0.5);
}

nav a.logout {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

nav a.logout:hover {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  text-shadow: 0 0 8px currentColor;
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Footer */
footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-section h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary-blue);
}

.footer-section a {
  display: block !important;
  margin-bottom: 0.5rem;
}

.footer-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.module-tag {
  background: rgba(0, 212, 255, 0.1);
  color: var(--text-neon);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-neon);
  cursor: default;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Base Button Class */
.button {
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple));
  color: white;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.button:hover {
  background: linear-gradient(45deg, var(--primary-blue-dark), var(--accent-neon-pink));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 212, 255, 0.5);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.button.secondary:hover {
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple));
  color: white;
}

/* Admin Theme Switcher */
.theme-switcher {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 200px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.theme-switcher.collapsed {
  padding: 0.5rem;
  min-width: auto;
}

.theme-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.theme-switcher.collapsed .theme-switcher-header {
  margin-bottom: 0;
}

.theme-switcher-toggle {
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.theme-switcher-toggle:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
}

.theme-switcher-content {
  display: block;
  opacity: 1;
  transition: all 0.3s ease;
}

.theme-switcher.collapsed .theme-switcher-content {
  display: none;
  opacity: 0;
}

.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.theme-option {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.theme-option:hover {
  border-color: var(--primary-blue);
  background: rgba(0, 212, 255, 0.05);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.15);
}

.theme-option.active {
  border-color: var(--accent-green);
  background: rgba(0, 255, 136, 0.1);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.theme-option i {
  font-size: 1.2rem;
}

.theme-clear {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.theme-clear:hover {
  border-color: var(--accent-orange);
  background: rgba(255, 107, 53, 0.1);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .theme-switcher {
    top: 60px;
    right: 10px;
    min-width: 180px;
  }
  
  .theme-options {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  
  .theme-option {
    padding: 0.4rem;
    font-size: 0.75rem;
  }
  
  .theme-option i {
    font-size: 1rem;
  }
}
