/*!
 * Modern Theme for QRcdr
 * A complete redesign with modern aesthetics
 * Copyright 2026
 */

:root {
  --primary-color: rgb(220, 20, 60);
  --primary-dark: rgb(180, 16, 48);
  --primary-light: rgb(255, 60, 100);
  --secondary-color: rgb(0, 0, 0);
  --accent-color: rgb(220, 20, 60);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: rgb(220, 20, 60);
  --dark-color: #000000;
  --light-color: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e0e0e0;
  --gray-300: #c0c0c0;
  --gray-400: #9e9e9e;
  --gray-500: #757575;
  --gray-600: #616161;
  --gray-700: #424242;
  --gray-800: #212121;
  --gray-900: #000000;
  --gradient-1: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(139, 0, 0) 100%);
  --gradient-2: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(0, 0, 0) 100%);
  --gradient-3: linear-gradient(135deg, rgb(40, 40, 40) 0%, rgb(0, 0, 0) 100%);
  --gradient-primary: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(139, 0, 0) 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #fafafa;
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-tertiary: #9e9e9e;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --input-bg: #ffffff;
  --input-border: #e0e0e0;
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2a2a2a;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-tertiary: #808080;
  --border-color: #3a3a3a;
  --card-bg: #1e1e1e;
  --navbar-bg: rgba(30, 30, 30, 0.95);
  --input-bg: #2a2a2a;
  --input-border: #3a3a3a;
  --gray-50: #1e1e1e;
  --gray-100: #2a2a2a;
  --gray-200: #3a3a3a;
  --gray-800: #e0e0e0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.7);
}

/* ===== GENERAL STYLES ===== */
html {
  scroll-behavior: smooth;
}

body.qrcdr {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== NAVBAR ===== */
.navbar-modern {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-modern.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-spacer {
  height: 76px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.brand-icon {
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-modern .nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-modern .nav-link:hover {
  color: rgb(220, 20, 60);
  background: var(--gray-100);
}

.navbar-modern .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-modern .nav-link:hover::after {
  width: 80%;
}

.btn-nav-cta {
  background: rgb(220, 20, 60);
  color: white !important;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
  background: rgb(255, 60, 100);
}

/* Theme Toggle Button in Navbar */
#themeToggle {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
}

#themeToggle:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  transform: rotate(15deg);
}

#themeToggle i {
  transition: transform 0.3s ease;
}

/* ===== HERO SECTION ===== */
.modern-hero {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  color: white;
  overflow: hidden;
  padding-top: 80px;
}

.animated-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(220, 20, 60, 0.3), rgba(0, 0, 0, 0.9), rgba(220, 20, 60, 0.2), rgba(0, 0, 0, 0.8));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: 1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(220, 20, 60, 0.03) 2px, rgba(220, 20, 60, 0.03) 4px);
  opacity: 1;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.4s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(255, 100, 120) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.6s both;
  opacity: 0.95;
  font-size: 1.15rem;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-hero {
  background: rgb(220, 20, 60);
  color: white !important;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.6);
  background: rgb(255, 60, 100);
  color: white !important;
}

.btn-hero-outline {
  background: transparent;
  color: white !important;
  border: 2px solid white;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-hero-outline:hover {
  background: white;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

.hero-stats {
  animation: fadeInUp 1s ease-out 1s both;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.hero-illustration {
  position: relative;
  animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.floating-qr {
  font-size: 15rem;
  text-align: center;
  animation: float 6s ease-in-out infinite;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: white;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
}

.feature-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  border-color: rgb(220, 20, 60);
  box-shadow: 0 10px 40px rgba(220, 20, 60, 0.2);
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(139, 0, 0) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(220, 20, 60, 0.4);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(220, 20, 60, 0.6);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-600);
  margin: 0;
}

/* ===== QR GENERATOR SECTION ===== */
.container {
  position: relative;
}

.qrcdr-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.nav-pills .nav-link {
  border-radius: var(--border-radius);
  padding: 0.75rem 1.25rem;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  margin-bottom: 0.5rem;
}

.nav-pills .nav-link:hover {
  background: var(--gray-100);
  border-color: rgb(255, 100, 120);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(139, 0, 0) 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.placeresult {
  background: var(--gray-100) !important;
  border-radius: var(--border-radius);
  border: 2px dashed var(--gray-300);
  transition: var(--transition);
}

.placeresult:hover {
  border-color: rgb(220, 20, 60);
  background: white !important;
}

/* ===== FOOTER ===== */
.modern-footer {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: var(--gray-300);
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.footer-brand .brand-icon {
  font-size: 1.8rem;
}

.footer-description {
  color: var(--gray-400);
  line-height: 1.7;
}

.footer-heading {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: rgb(255, 100, 120);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(139, 0, 0) 100%);
  border-color: transparent;
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 5px 15px rgba(220, 20, 60, 0.5);
}

.qr-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qr-type-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gray-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  cursor: default;
}

.qr-type-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-copyright {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.back-to-top {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.back-to-top:hover {
  color: rgb(220, 20, 60);
  transform: translateY(-2px);
}

/* ===== FORM IMPROVEMENTS ===== */
.form-control, .form-select {
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: rgb(220, 20, 60);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
  outline: none;
}

.btn {
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(139, 0, 0) 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

/* ===== SMOOTH SCROLLING ===== */
.smooth-scroll {
  cursor: pointer;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .navbar-modern .nav-link::after {
    display: none;
  }
  
  .btn-nav-cta {
    margin-top: 1rem;
    display: block;
    width: 100%;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .qrcdr-form {
    padding: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .modern-hero {
    padding-top: 60px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
  
  .nav-pills .nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  
  .qrcdr-form {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-hero, .btn-hero-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .footer-brand {
    font-size: 1.25rem;
  }
}

/* ===== ADSENSE PLACEHOLDER SECTIONS ===== */
.ad-container {
  margin: 2rem auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.ad-container.horizontal {
  min-height: 90px;
  max-width: 728px;
}

.ad-container.sidebar {
  min-height: 250px;
  max-width: 300px;
  margin: 1rem auto;
}

.ad-container.square {
  min-height: 250px;
  max-width: 250px;
}

.ad-container.vertical {
  min-height: 600px;
  max-width: 160px;
}

.ad-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  font-weight: 500;
  min-height: inherit;
  transition: var(--transition);
}

.ad-placeholder:hover {
  border-color: var(--gray-400);
  background: var(--gray-200);
}

/* Responsive Ad Containers */
@media (max-width: 767px) {
  .ad-container.horizontal {
    max-width: 320px;
    min-height: 50px;
  }
  
  .ad-container.sidebar,
  .ad-container.square {
    max-width: 300px;
  }
  
  .ad-container.vertical {
    display: none;
  }
}

/* ===== SIDEBAR TIPS CARD ===== */
.tips-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  color: white;
  box-shadow: var(--shadow-lg);
}

.tips-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li i {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
  background: var(--gray-100);
}

.step-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  transition: var(--transition);
  height: 100%;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(139, 0, 0) 100%);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4);
}

/* ===== USE CASES SECTION ===== */
.use-cases-section {
  background: white;
}

.use-case-card {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.use-case-card:hover {
  border-color: rgb(220, 20, 60);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
}

.use-case-icon {
  width: 50px;
  height: 50px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: rgb(220, 20, 60);
  transition: var(--transition);
}

.use-case-card:hover .use-case-icon {
  background: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(139, 0, 0) 100%);
  color: white;
  transform: scale(1.1);
}

.use-case-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.use-case-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* ===== BLOG STYLES ===== */
.blog-post-featured {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.blog-post-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.blog-post-card .card-img-top,
.featured-image {
  position: relative;
  overflow: hidden;
}

.blog-post-card .card-img-top i,
.featured-image i {
  transition: transform 0.3s ease;
}

.blog-post-card:hover .card-img-top i,
.blog-post-featured:hover .featured-image i {
  transform: scale(1.1);
}

.blog-post-header {
  position: relative;
  overflow: hidden;
}

.blog-post-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.1);
}

.blog-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.blog-post-content h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content h3 {
  font-weight: 600;
  color: #444;
}

.blog-post-content .lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 2rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content strong {
  color: #222;
}

.blog-post-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.blog-post-content a:hover {
  border-bottom-color: var(--primary-color);
}

.blog-post-content .alert {
  border-left: 4px solid;
  border-radius: var(--border-radius);
}

.blog-post-content .alert-info {
  border-left-color: #0dcaf0;
  background-color: rgba(13, 202, 240, 0.1);
}

.blog-post-content .alert-warning {
  border-left-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.blog-post-content .alert-success {
  border-left-color: #198754;
  background-color: rgba(25, 135, 84, 0.1);
}

.blog-post-content .card {
  margin: 1.5rem 0;
}

.blog-post-content table {
  margin: 1.5rem 0;
}

.blog-post-content table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.blog-post-content table td,
.blog-post-content table th {
  padding: 0.75rem;
  vertical-align: top;
}

/* Responsive Blog */
@media (max-width: 991px) {
  .blog-post-content {
    font-size: 1rem;
  }
  
  .blog-post-content .lead {
    font-size: 1.15rem;
  }
}

@media (max-width: 767px) {
  .blog-post-header h1 {
    font-size: 1.75rem !important;
  }
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  background-color: transparent;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #6c757d;
  font-size: 1.2rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* ===== GALLERY STYLES ===== */
.gallery-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

.gallery-card .qr-placeholder {
  transition: transform 0.3s ease;
}

.gallery-card:hover .qr-placeholder {
  transform: scale(1.05);
}

.gallery-card .card-body {
  background: var(--card-bg);
  transition: background-color 0.3s ease;
}

.gallery-card .badge {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

/* ===== DARK MODE TOGGLE ===== */
.dark-mode-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-button 3s ease-in-out infinite;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(220, 20, 60, 0.6);
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

@keyframes float-button {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.dark-mode-toggle i {
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
}

.dark-mode-toggle .fa-moon {
  opacity: 1;
}

.dark-mode-toggle .fa-sun {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .dark-mode-toggle .fa-moon {
  opacity: 0;
  transform: rotate(-180deg);
}

[data-theme="dark"] .dark-mode-toggle .fa-sun {
  opacity: 1;
  transform: rotate(0deg);
}

/* Dark Mode Card Adjustments */
[data-theme="dark"] .card {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .card-header {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .card-footer {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}

/* Dark Mode Form Controls */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--text-tertiary);
}

/* Dark Mode List Groups */
[data-theme="dark"] .list-group-item {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .list-group-item:hover {
  background-color: var(--bg-tertiary);
}

/* Dark Mode Tables */
[data-theme="dark"] .table {
  color: var(--text-primary);
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--bg-tertiary);
}

/* Dark Mode Badges */
[data-theme="dark"] .badge {
  color: white;
}

/* Dark Mode Modals */
[data-theme="dark"] .modal-content {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .modal-header {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
  border-top-color: var(--border-color);
}

[data-theme="dark"] .btn-close {
  filter: invert(1);
}

/* Dark Mode Alerts */
[data-theme="dark"] .alert {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* Dark Mode Dropdowns */
[data-theme="dark"] .dropdown-menu {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Dark Mode Navbar Adjustments */
[data-theme="dark"] .navbar-modern .nav-link {
  color: var(--text-primary);
}

[data-theme="dark"] .navbar-modern .nav-link:hover {
  color: var(--primary-color);
}

[data-theme="dark"] .navbar-brand {
  color: var(--text-primary) !important;
}

/* Dark Mode Footer */
[data-theme="dark"] footer {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

[data-theme="dark"] footer h5,
[data-theme="dark"] footer a {
  color: var(--text-primary);
}

[data-theme="dark"] footer a:hover {
  color: var(--primary-color);
}
