/* Fonts */
@font-face {
  font-family: 'Asap';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/asap-v30-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Asap';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/asap-v30-latin_latin-ext-700.woff2') format('woff2');
}

/* Variables */
:root {
  /* General */
  --border-radius: 8px;
  --gutter-x: 0.5rem;
  --gutter-y: 1rem;
  --link-text-color: #3b82f6;
  --shadow-color: rgba(0, 0, 0, 0.7);
  --whitespace-color: #0a0d12;
  --site-background-color: #000000;
  --sidebar-width: 300px;
  
  /* Gold Accent Colors */
  --gold-primary: #fbbf24;
  --gold-light: #fcd34d;
  --gold-dark: #f59e0b;
  --gold-glow: rgba(251, 191, 36, 0.4);
  --gold-glow-strong: rgba(251, 191, 36, 0.6);
  
  /* Important Notice */
  --important-notice-background-color: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  --important-notice-text-color: #ffffff;
  --header-background-color: rgba(10, 13, 18, 0.9);
  --header-text-color: #f9fafb;
  
  /* Cookie Notice */
  --cookie-notice-background-color: rgba(15, 17, 23, 0.98);
  --cookie-notice-text-color: #f3f4f6;
  
  /* Navigation */
  --navigation-background-color: #0f1318;
  --navigation-background-color-hover: rgba(59, 130, 246, 0.1);
  --navigation-background-color-active: rgba(59, 130, 246, 0.2);
  --navigation-text-color: #e5e7eb;
  --navigation-text-color-hover: #60a5fa;
  --navigation-text-color-active: #3b82f6;
  
  /* Offcanvas */
  --offcanvas-background-color: var(--navigation-background-color);
  --offcanvas-text-color: var(--navigation-text-color);
  
  /* Defaults */
  --default-background-color: #0f1318;
  --default-border-color: rgba(59, 130, 246, 0.2);
  --default-line-height: 1.3333;
  --default-text-font: 'Asap', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --default-text-color: #f3f4f6;
  --default-text-size: 15px;
  
  /* Buttons */
  --default-button-background-color: #1a1f29;
  --default-button-background-color-hover: #252b38;
  --default-button-background-color-active: #2d3444;
  --default-button-border-color: rgba(59, 130, 246, 0.3);
  --default-button-text-color: #e5e7eb;
  
  --primary-button-background-color: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --primary-button-background-color-hover: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --primary-button-background-color-active: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  --primary-button-border-color: rgba(37, 99, 235, 0.4);
  --primary-button-text-color: #ffffff;
  
  --success-button-background-color: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  --success-button-background-color-hover: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --success-button-background-color-active: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  --success-button-border-color: rgba(13, 148, 136, 0.4);
  --success-button-text-color: #ffffff;
  
  --warning-button-background-color: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --warning-button-background-color-hover: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --warning-button-background-color-active: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  --warning-button-border-color: rgba(234, 88, 12, 0.4);
  --warning-button-text-color: #ffffff;
  
  --danger-button-background-color: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  --danger-button-background-color-hover: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --danger-button-background-color-active: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  --danger-button-border-color: rgba(220, 38, 38, 0.4);
  --danger-button-text-color: #ffffff;
  
  /* Notices */
  --default-notice-background-color: rgba(26, 31, 41, 0.7);
  --default-notice-text-color: #e5e7eb;
  --default-notice-border-color: rgba(59, 130, 246, 0.25);
  
  --primary-notice-background-color: rgba(37, 99, 235, 0.12);
  --primary-notice-text-color: #93c5fd;
  --primary-notice-border-color: rgba(59, 130, 246, 0.4);
  
  --success-notice-background-color: rgba(13, 148, 136, 0.12);
  --success-notice-text-color: #5eead4;
  --success-notice-border-color: rgba(13, 148, 136, 0.4);
  
  --warning-notice-background-color: rgba(234, 88, 12, 0.12);
  --warning-notice-text-color: #fdba74;
  --warning-notice-border-color: rgba(234, 88, 12, 0.4);
  
  --danger-notice-background-color: rgba(220, 38, 38, 0.12);
  --danger-notice-text-color: #fca5a5;
  --danger-notice-border-color: rgba(220, 38, 38, 0.4);
  
  /* Breadcrumbs */
  --breadcrumbs-background-color: rgba(15, 19, 24, 0.6);
  --breadcrumbs-text-color: #9ca3af;
  --breadcrumbs-border-color: rgba(59, 130, 246, 0.15);
  
  /* Cards */
  --card-background-color: #0f1318;
  --card-text-color: #f3f4f6;
  --card-border-color: rgba(59, 130, 246, 0.25);
  --card-header-background-color: rgba(59, 130, 246, 0.05);
  --card-header-text-color: #faf5ff;
  --card-body-background-color: transparent;
  --card-footer-background-color: rgba(15, 19, 24, 0.5);
  
  /* Input */
  --input-background-color: #0f1318;
  --input-padding-x: 1.5em;
  --input-padding-y: 0.5em;
  --input-text-color: #f3f4f6;
  --input-border-radius: 0.5em;
  
  /* Pills */
  --pills-background-color: transparent;
  --pills-background-color-active: rgba(37, 99, 235, 0.25);
  --pills-background-color-hover: rgba(59, 130, 246, 0.15);
  --pills-text-color: #e5e7eb;
  --pills-text-color-active: #60a5fa;
  
  /* Tabs */
  --tabs-pane-background-color: #0f1318;
  --tabs-pane-border-color: rgba(59, 130, 246, 0.2);
  --tabs-background-color: #0a0d12;
  --tabs-background-color-active: #0f1318;
  --tabs-text-color: #9ca3af;
  --tabs-text-color-active: #60a5fa;
  --tabs-border-color: rgba(59, 130, 246, 0.15);
  --tabs-border-color-active: rgba(59, 130, 246, 0.5);
  --tabs-content-background-color: #0f1318;
  
  /* Dropdowns */
  --dropdown-menu-background-color: #0f1318;
  --dropdown-menu-item-background-color: transparent;
  --dropdown-menu-item-text-color: #e5e7eb;
  
  /* Tables */
  --table-striped-row-background-odd: rgba(15, 19, 24, 0.5);
  --table-striped-row-background-even: rgba(10, 13, 18, 0.3);
  --table-row-hover-background: rgba(59, 130, 246, 0.1);
  
  /* Pagination */
  --pagination-background-color: #0f1318;
  --pagination-background-color-active: rgba(37, 99, 235, 0.3);
  --pagination-background-color-hover: rgba(59, 130, 246, 0.18);
  --pagination-text-color: #e5e7eb;
  --pagination-text-color-active: #60a5fa;
  --pagination-text-color-hover: #93c5fd;
  --pagination-border-color: rgba(59, 130, 246, 0.25);
  
  /* Footer */
  --footer-background-color: #0a0d12;
  --footer-title-color: #f3f4f6;
  --footer-text-color: #9ca3af;
  
  /* Copyright */
  --copyright-background-color: #000000;
  --copyright-text-color: #6b7280;
}

/* Premium Glow Effects & Animations */
button, .btn, input, select, textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

/* Primary Button Premium Glow */
.btn-primary, button[class*="primary"] {
  box-shadow: 
    0 0 20px rgba(37, 99, 235, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover, button[class*="primary"]:hover {
  box-shadow: 
    0 0 35px rgba(59, 130, 246, 0.6),
    0 0 50px rgba(37, 99, 235, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Success Button Glow */
.btn-success, button[class*="success"] {
  box-shadow: 
    0 0 20px rgba(13, 148, 136, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-success:hover, button[class*="success"]:hover {
  box-shadow: 
    0 0 35px rgba(20, 184, 166, 0.6),
    0 0 50px rgba(13, 148, 136, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.5);
}

/* Warning Button Glow */
.btn-warning, button[class*="warning"] {
  box-shadow: 
    0 0 20px rgba(234, 88, 12, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-warning:hover, button[class*="warning"]:hover {
  box-shadow: 
    0 0 35px rgba(249, 115, 22, 0.6),
    0 0 50px rgba(234, 88, 12, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.5);
}

/* Danger Button Glow */
.btn-danger, button[class*="danger"] {
  box-shadow: 
    0 0 20px rgba(220, 38, 38, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger:hover, button[class*="danger"]:hover {
  box-shadow: 
    0 0 35px rgba(239, 68, 68, 0.6),
    0 0 50px rgba(220, 38, 38, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Default Button Glow */
button:hover, .btn:hover {
  box-shadow: 
    0 0 25px rgba(59, 130, 246, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

button:active, .btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 0 15px rgba(59, 130, 246, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Card Premium Effects */
.card, .notice {
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 30px rgba(251, 191, 36, 0.02);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(251, 191, 36, 0.1);
}

.card:hover {
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(59, 130, 246, 0.12),
    0 0 0 1px rgba(251, 191, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 50px rgba(251, 191, 36, 0.05);
  transform: translateY(-3px);
}

/* Dropdown Premium Effect */
.dropdown-menu {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  z-index: 9999 !important;
  position: absolute;
}

/* Dropdown Parent Z-Index Fix */
.dropdown, .nav-item.dropdown {
  position: relative;
  z-index: 1000;
}

.dropdown:hover, .nav-item.dropdown:hover {
  z-index: 10000;
}

/* Navigation Z-Index */
.navbar, .navigation, header {
  position: relative;
  z-index: 1001;
}

/* Ensure dropdowns are above everything */
.dropdown-menu.show {
  z-index: 99999 !important;
}

/* Input Focus Glow */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(37, 99, 235, 0.25),
    0 0 25px rgba(59, 130, 246, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Shimmer Effect - Fixed Overflow */
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(251, 191, 36, 0.15), 
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  left: 250%;
}

/* Button Shimmer - No Overflow Issues */
button::after, .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

button:hover::after, .btn:hover::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* Pulse Animation for Active Elements */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(37, 99, 235, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 
      0 0 35px rgba(59, 130, 246, 0.6),
      0 0 50px rgba(37, 99, 235, 0.3),
      0 4px 15px rgba(0, 0, 0, 0.5);
  }
}

.active, .is-active, [aria-current="page"] {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Link Glow Effect */
a {
  position: relative;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* Navigation Glow */
.nav-link:hover, .navigation-item:hover {
  box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.15);
}

/* Table Row Glow */
tr:hover {
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.08);
}

/* Pagination Glow */
.pagination-item:hover {
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.25),
    0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Notice Premium Borders */
.notice {
  border-left: 3px solid;
}

.notice-primary {
  border-left-color: rgba(59, 130, 246, 0.6);
}

.notice-success {
  border-left-color: rgba(20, 184, 166, 0.6);
}

.notice-warning {
  border-left-color: rgba(249, 115, 22, 0.6);
}

.notice-danger {
  border-left-color: rgba(239, 68, 68, 0.6);
}

/* Glassmorphism Enhancement */
.card, .dropdown-menu, .modal, .offcanvas {
  background: rgba(15, 19, 24, 0.85) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

/* Slider/Carousel Z-Index Fix */
.slider, .carousel, .slideshow, .swiper, [class*="slide"] {
  position: relative;
  z-index: 1;
}

/* Ensure slider doesn't overlap navigation */
.slider-container, .carousel-container {
  position: relative;
  z-index: 1;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 13, 18, 0.6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563eb, #1e40af);
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

/* Selection Color */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

/* Gold Accent Elements */
.accent-gold, .featured, .premium, .vip {
  position: relative;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 
    0 0 30px rgba(251, 191, 36, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(251, 191, 36, 0.05);
}

.accent-gold:hover, .featured:hover, .premium:hover, .vip:hover {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 
    0 0 50px rgba(251, 191, 36, 0.4),
    0 0 80px rgba(251, 191, 36, 0.2),
    0 8px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(251, 191, 36, 0.08);
  transform: translateY(-3px);
}

/* Gold Badge/Tag */
.badge-gold, .tag-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000000;
  font-weight: 700;
  padding: 0.25em 0.75em;
  border-radius: 4px;
  box-shadow: 
    0 0 20px rgba(251, 191, 36, 0.5),
    0 4px 15px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Gold Highlight Text */
.text-gold, .highlight-gold {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Gold Divider */
.divider-gold, hr.gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  border: none;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Gold Border Accent */
.border-gold-top {
  border-top: 2px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 -2px 15px rgba(251, 191, 36, 0.2);
}

.border-gold-bottom {
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 2px 15px rgba(251, 191, 36, 0.2);
}

/* Gold Pulse Animation */
@keyframes gold-pulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(251, 191, 36, 0.3),
      0 4px 15px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(251, 191, 36, 0.6),
      0 0 60px rgba(251, 191, 36, 0.3),
      0 4px 15px rgba(0, 0, 0, 0.5);
  }
}

.pulse-gold {
  animation: gold-pulse 2s ease-in-out infinite;
}

/* Gold Glow on Hover for Links */
a.gold-link {
  color: #fbbf24;
  transition: all 0.3s ease;
}

a.gold-link:hover {
  color: #fcd34d;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

@media (min-width: 768px) {
  :root {
    --gutter-x: 1rem;
    --gutter-y: 1rem;
  }
}

@media (min-width: 992px) {
  :root {
    --gutter-x: 1.5rem;
    --gutter-y: 1.5rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter-x: 2rem;
    --gutter-y: 2rem;
  }
}