/* ===== components.css — Elite Production Elements ===== */

/* Navbar - Modern Glassmorphism */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 24px 0;
  background: transparent;
}

.navbar.scrolled {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  color: white;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: -20px;
  min-width: 240px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 1010;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  transition: var(--transition-fast);
}

.dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Cards & Panels */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
  padding: 32px;
  transition: var(--transition);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}

/* Modern Grid Dashboard */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Feature Card - Desktop WOW Effects */
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before {
  opacity: 1;
}

/* --- Pro Grid Section Styles --- */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* Pro Deal Card */
.pro-deal-card {
  background: white;
  border-radius: 28px;
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pro-deal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.pro-card-icon {
  width: 80px;
  height: 80px;
  background: #f8fafc;
  border-radius: 24px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: var(--primary);
}

/* Pro Credit Card (Large) */
.pro-cc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pro-cc-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.4);
}

.card-visual-large {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  border-radius: 16px;
  margin-bottom: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.card-visual-large .chip {
  width: 48px;
  height: 36px;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  border-radius: 8px;
}

/* --- Elite Drawer Menu System --- */
.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.5rem;
  place-items: center;
  border: none;
  cursor: pointer;
  z-index: 2000;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.menu-overlay.active { opacity: 1; visibility: visible; }

.menu-drawer {
  position: fixed;
  top: 0;
  left: -100%; /* slides from left */
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: white;
  z-index: 3000;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 20px 0 60px rgba(0,0,0,0.2);
}

.menu-drawer.active { left: 0; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.drawer-link i { color: var(--primary); width: 24px; text-align: center; }

/* GLOBAL RESPONSIVE RULES */
.no-scroll { overflow: hidden !important; }

@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none !important; }
  .mobile-menu-toggle { display: grid; }
  
  .modern-grid, .card-section-grid, .deals-section-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0 !important; }
  h1 { font-size: 2.5rem !important; }
  
  .vibrant-deal-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  
  .cc-visual { height: 180px; padding: 20px; }
  .cc-info { padding: 20px; }
}

/* Footer Section */
.site-footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 100px 0 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

@media (max-width: 850px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
