/* ===================================
   ZAHUDBOU.CZ - Luxusní Design System
   =================================== */

/* Root proměnné pro světlý režim */
:root {
  /* Hlavní barvy */
  --primary: #b6e100;
  --primary-dark: #8fb300;
  --primary-light: #d4ff00;
  --primary-rgb: 182, 225, 0;
  
  /* Neutrální barvy */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;
  
  /* Pozadí */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-hover: #f9f9f9;
  
  /* Text */
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --text-inverse: #ffffff;
  
  /* Borders */
  --border-color: #e5e5e5;
  --border-hover: #d4d4d4;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(182, 225, 0, 0.3);
  
  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* Gradienty */
  --gradient-primary: linear-gradient(135deg, #b6e100 0%, #8fb300 100%);
  --gradient-dark: linear-gradient(135deg, #262626 0%, #171717 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(182, 225, 0, 0.1) 0%, transparent 70%);
}

/* Tmavý režim */
[data-theme="dark"],
.dark {
  /* Pozadí */
  --bg-primary: #0a0a0a;
  --bg-secondary: #171717;
  --bg-tertiary: #262626;
  --bg-card: #1a1a1a;
  --bg-hover: #2a2a2a;
  
  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #d4d4d4;
  --text-tertiary: #a3a3a3;
  --text-inverse: #171717;
  
  /* Borders */
  --border-color: #404040;
  --border-hover: #525252;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(182, 225, 0, 0.4);
  
  /* Glass effect */
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(64, 64, 64, 0.3);
  
  /* Gradienty */
  --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  --gradient-light: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* ===================================
   Reset a základní styly
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Luxusní pozadí s gradientem */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: -1;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* ===================================
   SweetAlert2 Opravy
   =================================== */
.swal2-container {
  z-index: 9999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.swal2-popup {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-primary) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-xl) !important;
  padding: 1.5rem !important;
  width: auto !important;
  max-width: 32rem !important;
  position: relative !important;
  margin: 0 auto !important;
}

.swal2-title {
  color: var(--text-primary) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

.swal2-html-container {
  color: var(--text-secondary) !important;
  font-size: 1rem !important;
}

.swal2-confirm {
  background: var(--gradient-primary) !important;
  color: var(--text-inverse) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
}

.swal2-cancel {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
}

.swal2-input, .swal2-textarea, .swal2-select {
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  padding: 0.75rem 1rem !important;
}

.swal2-input:focus, .swal2-textarea:focus, .swal2-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(182, 225, 0, 0.1) !important;
}

/* ===================================
   Komponenty - Glass Morphism
   =================================== */
.card-glass,
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

[data-theme="dark"] .card-glass,
[data-theme="dark"] .glass {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

/* ===================================
   Tlačítka
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: var(--glass-bg);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ===================================
   Formuláře
   =================================== */
.input-glass {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.input-glass:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(182, 225, 0, 0.1);
}

.input-glass::placeholder {
  color: var(--text-tertiary);
}

/* ===================================
   Navigace
   =================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-brand img {
  height: 3rem;
  width: 3rem;
  filter: drop-shadow(0 0 10px rgba(182, 225, 0, 0.3));
}

/* ===================================
   Theme Toggle Switch
   =================================== */
.mode-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  background: var(--bg-tertiary);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.mode-switch input {
  display: none;
}

.mode-switch .sun,
.mode-switch .moon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  transition: all 0.3s ease;
}

.mode-switch .sun {
  left: 8px;
  opacity: 1;
}

.mode-switch .moon {
  right: 8px;
  opacity: 0.3;
}

.mode-switch input:checked ~ .sun {
  opacity: 0.3;
}

.mode-switch input:checked ~ .moon {
  opacity: 1;
}

.mode-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.mode-switch input:checked ~ ::after {
  transform: translateX(30px);
}

/* ===================================
   Tabulky
   =================================== */
.table-glass {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
}

.table-glass thead {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.table-glass th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.table-glass td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.table-glass tbody tr {
  transition: background-color 0.2s ease;
}

.table-glass tbody tr:hover {
  background: var(--bg-hover);
}

.table-glass tbody tr:last-child td {
  border-bottom: none;
}

/* ===================================
   Tabs
   =================================== */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.tab-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab.tab-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
}

/* ===================================
   Badges
   =================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
  box-shadow: 0 2px 4px rgba(182, 225, 0, 0.2);
}

/* ===================================
   Animace
   =================================== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-slideIn {
  animation: slideIn 0.3s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===================================
   Loading States
   =================================== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    var(--bg-hover) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  min-height: 1em;
  min-width: 3em;
  color: transparent;
}

/* Skeleton pouze ve span elementech */
span.skeleton {
  display: inline-block;
}

/* Odstranění skeleton animace když je obsah načten */
.skeleton-loaded {
  animation: none !important;
  background: transparent !important;
  color: inherit !important;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
}

.text-error {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.hover\:bg-red-500\/10:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.hover\:bg-primary\/10:hover {
  background-color: rgba(182, 225, 0, 0.1);
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.h-20 {
  height: 5rem;
}

.h-64 {
  height: 16rem;
}

.object-cover {
  object-fit: cover;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.font-bold {
  font-weight: 700;
}

.cursor-pointer {
  cursor: pointer;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-20 {
  height: 5rem;
}

.h-20 {
  height: 5rem;
}

.h-64 {
  height: 16rem;
}

.object-cover {
  object-fit: cover;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.font-bold {
  font-weight: 700;
}

.cursor-pointer {
  cursor: pointer;
}

.mt-2 {
  margin-top: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-warning { color: #fbbf24 !important; }
.text-success { color: #22c55e !important; }

.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-tertiary { background-color: var(--bg-tertiary) !important; }
.bg-hover { background-color: var(--bg-hover) !important; }
.bg-warning { background-color: #fbbf24 !important; }
.bg-success { background-color: #22c55e !important; }
.bg-error { background-color: #ef4444 !important; }

.bg-opacity-10 { opacity: 0.1 !important; }
.bg-opacity-20 { opacity: 0.2 !important; }

.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--border-color) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 16px !important; }
.rounded-full { border-radius: 9999px !important; }

.transition-all {
  transition: all 0.3s ease !important;
}

/* Flexbox utilities */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* Grid utilities */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* Spacing utilities */
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }

.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-4 { margin: 1rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-16 { margin-top: 4rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }

.mr-1 { margin-right: 0.25rem !important; }
.mr-4 { margin-right: 1rem !important; }

.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-4 { margin-left: 1rem !important; }

/* Width & Height utilities */
.w-full { width: 100% !important; }
.w-64 { width: 16rem !important; }
.w-52 { width: 13rem !important; }
.w-5 { width: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }

.h-5 { height: 1.25rem !important; }
.h-6 { height: 1.5rem !important; }
.h-20 { height: 5rem !important; }
.h-64 { height: 16rem !important; }

/* Text utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.text-4xl { font-size: 2.25rem !important; }

.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }

/* Button sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Additional hover states */
.hover\:bg-hover:hover {
  background-color: var(--bg-hover) !important;
}

/* Loading sizes */
.loading-sm {
  width: 16px;
  height: 16px;
}

.loading-lg {
  width: 32px;
  height: 32px;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .card-glass {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  /* Hide on mobile */
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .no-print {
    display: none !important;
  }
}

/* ===================================
   Scrollbar Styling
   =================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) var(--bg-secondary);
}

/* ===================================
   Focus Styles
   =================================== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===================================
   Selection
   =================================== */
::selection {
  background: var(--primary);
  color: var(--text-inverse);
}

::-moz-selection {
  background: var(--primary);
  color: var(--text-inverse);
}

/* ===================================
   Dropdown
   =================================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1001;
  min-width: 200px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin-top: 0.5rem;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.dark .dropdown-content {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(75, 85, 99, 0.3);
}

/* Přidat pseudo-element pro překlenutí mezery */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

/* Zobrazit dropdown při hoveru */
.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.2s ease-out;
}

/* Zobrazit dropdown při kliknutí (JavaScript třída) */
.dropdown-content.dropdown-open {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.2s ease-out;
}

/* Pro dropdown-end pozicování */
.dropdown-end .dropdown-content {
  right: 0;
  left: auto;
}

/* ===================================
   Menu
   =================================== */
.menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu li {
  list-style: none;
}

.menu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
}

.menu li a:hover {
  background-color: var(--bg-hover);
}

/* Dropdown menu specifické styly */
.dropdown-content.menu {
  padding: 0.5rem;
}

.dropdown-content.menu li {
  list-style: none;
  margin: 0;
}

.dropdown-content.menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.dropdown-content.menu li a:hover {
  background-color: var(--bg-hover);
  transform: translateX(2px);
}

.dropdown-content.menu li a svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Divider v dropdown menu */
.dropdown-content.menu .divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
  opacity: 0.5;
}

/* Error položka v menu */
.dropdown-content.menu li a.text-error {
  color: #ef4444;
}

.dropdown-content.menu li a.text-error:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Base-100 background pro dropdown */
.bg-base-100 {
  background-color: var(--bg-primary) !important;
}

/* Rounded box utility */
.rounded-box {
  border-radius: 12px !important;
}

/* ===================================
   Responsive utilities
   =================================== */
/* Hidden utilities */
.hidden { display: none !important; }
.block { display: block !important; }
.inline { display: inline !important; }
.inline-block { display: inline-block !important; }

/* Responsive hidden */
@media (min-width: 640px) {
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
  .sm\:inline { display: inline !important; }
  .sm\:inline-block { display: inline-block !important; }
  .sm\:flex { display: flex !important; }
  .sm\:grid { display: grid !important; }
  
  /* Responsive grid */
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  
  /* Responsive spacing */
  .sm\:p-4 { padding: 1rem !important; }
  .sm\:p-6 { padding: 1.5rem !important; }
  .sm\:p-8 { padding: 2rem !important; }
  .sm\:py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .sm\:gap-4 { gap: 1rem !important; }
  .sm\:gap-6 { gap: 1.5rem !important; }
  .sm\:gap-8 { gap: 2rem !important; }
  
  /* Responsive text */
  .sm\:text-base { font-size: 1rem !important; }
  .sm\:text-lg { font-size: 1.125rem !important; }
  .sm\:text-xl { font-size: 1.25rem !important; }
  .sm\:text-2xl { font-size: 1.5rem !important; }
  .sm\:text-3xl { font-size: 1.875rem !important; }
  .sm\:text-4xl { font-size: 2.25rem !important; }
  
  /* Responsive width/height */
  .sm\:w-10 { width: 2.5rem !important; }
  .sm\:h-10 { height: 2.5rem !important; }
  .sm\:w-5 { width: 1.25rem !important; }
  .sm\:h-5 { height: 1.25rem !important; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
  .md\:inline { display: inline !important; }
  .md\:flex { display: flex !important; }
  .md\:grid { display: grid !important; }
  
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  
  .md\:flex-row { flex-direction: row !important; }
  .md\:flex-col { flex-direction: column !important; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block !important; }
  .lg\:inline { display: inline !important; }
  .lg\:flex { display: flex !important; }
  .lg:grid { display: grid !important; }
  
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* Flex utilities */
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

/* Min width utilities */
.min-w-0 { min-width: 0 !important; }
.min-w-full { min-width: 100% !important; }

/* Z-index utilities */
.z-10 { z-index: 10 !important; }
.z-50 { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }
.z-1000 { z-index: 1000 !important; }

/* Border utilities */
.border-t { border-top-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }
.border-l { border-left-width: 1px !important; }
.border-r { border-right-width: 1px !important; }

.border-gray-200 { border-color: #e5e7eb !important; }
.border-gray-300 { border-color: #d1d5db !important; }
.border-gray-700 { border-color: #374151 !important; }

/* Cursor utilities */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }

/* Position utilities */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

.top-0 { top: 0 !important; }
.right-0 { right: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.left-0 { left: 0 !important; }

/* Min height utilities */
.min-h-screen { min-height: 100vh !important; }

/* Flex grow/shrink */
.flex-1 { flex: 1 1 0% !important; }
.flex-auto { flex: 1 1 auto !important; }
.flex-initial { flex: 0 1 auto !important; }
.flex-none { flex: none !important; }

/* Line height utilities */
.leading-none { line-height: 1 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-normal { line-height: 1.5 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.leading-loose { line-height: 2 !important; }

/* List style utilities */
.list-none { list-style-type: none !important; }
.list-disc { list-style-type: disc !important; }
.list-decimal { list-style-type: decimal !important; }

/* Opacity utilities */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.animate-slideIn { animation: slideIn 0.3s ease-out; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Additional utility classes */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* ===================================
   Media Queries
   =================================== */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-primary);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-menu ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .hidden-desktop {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Dark mode specific overrides */
[data-theme="dark"] {
  color-scheme: dark;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Additional utility classes for new pages */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.prose {
  color: var(--text-primary);
  max-width: 65ch;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.prose p {
  margin-bottom: 1rem;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.max-w-none {
  max-width: none;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.pl-12 {
  padding-left: 3rem;
}

.pr-4 {
  padding-right: 1rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.top-24 {
  top: 6rem;
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.top-2 {
  top: 0.5rem;
}

.right-2 {
  right: 0.5rem;
}

.top-4 {
  top: 1rem;
}

.right-4 {
  right: 1rem;
}

.left-4 {
  left: 1rem;
}

.top-1\/2 {
  top: 50%;
}

.transform {
  transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
}

.translate-y-1\/2 {
  --tw-translate-y: 50%;
}

.overflow-hidden {
  overflow: hidden;
}

.h-48 {
  height: 12rem;
}

.h-96 {
  height: 24rem;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-24 {
  width: 6rem;
}

.h-24 {
  height: 6rem;
}

.w-32 {
  width: 8rem;
}

.h-32 {
  height: 8rem;
}

.max-h-64 {
  max-height: 16rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.border-t {
  border-top-width: 1px;
}

.border-l-4 {
  border-left-width: 4px;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-700 {
  border-color: #374151;
}

.border-primary {
  border-color: var(--primary);
}

.border-green-500 {
  border-color: #10b981;
}

.border-red-500 {
  border-color: #ef4444;
}

.bg-primary\/10 {
  background-color: rgba(182, 225, 0, 0.1);
}

.bg-primary\/20 {
  background-color: rgba(182, 225, 0, 0.2);
}

.bg-green-100 {
  background-color: #d1fae5;
}

.bg-green-900 {
  background-color: #064e3b;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.bg-red-900 {
  background-color: #7f1d1d;
}

.bg-yellow-100 {
  background-color: #fef3c7;
}

.bg-yellow-900 {
  background-color: #78350f;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-white {
  background-color: #ffffff;
}

.text-green-500 {
  color: #10b981;
}

.text-green-600 {
  color: #059669;
}

.text-green-800 {
  color: #065f46;
}

.text-green-200 {
  color: #a7f3d0;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.text-red-800 {
  color: #991b1b;
}

.text-red-200 {
  color: #fecaca;
}

.text-yellow-800 {
  color: #92400e;
}

.text-yellow-200 {
  color: #fde68a;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-600 {
  color: #4b5556;
}

.text-white {
  color: #ffffff;
}

.text-success {
  color: #22c55e;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:border-primary:hover {
  border-color: var(--primary);
}

.btn-active {
  background: var(--primary) !important;
  color: var(--text-inverse) !important;
  border-color: var(--primary) !important;
}

.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: var(--primary);
  background-color: var(--bg-hover);
}

.hero-gradient {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Responsive grid utilities */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:text-left {
    text-align: left;
  }
  
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }
}

/* Profile specific styles */
.profile-section {
  @apply mb-8;
}

/* Role-specific visibility */
.user-only,
.organizer-only {
  display: none !important;
}

body[data-user-role="user"] .user-only {
  display: block !important;
}

body[data-user-role="organizer"] .organizer-only {
  display: block !important;
}

body[data-user-role="admin"] .user-only,
body[data-user-role="admin"] .organizer-only {
  display: block !important;
}

/* Flex container fix for inline elements */
label.user-only,
label.organizer-only {
  display: none !important;
}

body[data-user-role="user"] label.user-only {
  display: flex !important;
}

body[data-user-role="organizer"] label.organizer-only {
  display: flex !important;
}

body[data-user-role="admin"] label.user-only,
body[data-user-role="admin"] label.organizer-only {
  display: flex !important;
}

/* Avatar upload button positioning */
.relative .absolute.bottom-0.right-0 {
  bottom: 0.5rem;
  right: 0.5rem;
}

/* Admin table styles */
.table td:last-child {
  width: 280px; /* Fixní šířka pro sloupec akcí */
  min-width: 280px;
}

.table td:last-child .flex {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.table td {
  vertical-align: middle;
}

/* Zajistíme stejnou výšku tlačítek */
.table .btn-sm {
  height: 32px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Line clamp utilities */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Aspect ratio utility */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Upload area styles */
.upload-area.border-primary {
  border-color: var(--primary) !important;
  background-color: rgba(182, 225, 0, 0.05);
}

/* Image upload overlay - detail page */
#image-upload-overlay {
  pointer-events: auto;
}

#image-upload-overlay:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Ensure group hover works */
.group:hover #image-upload-overlay {
  opacity: 1 !important;
}

/* Badge sizes */
.badge-sm {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

/* Fix layout issues */
.sticky {
  position: -webkit-sticky;
  position: sticky;
}

.lg\:col-span-1 {
  grid-column: span 1 / span 1;
}

.lg\:col-span-2 {
  grid-column: span 2 / span 2;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Text utilities */
.whitespace-pre-wrap {
  white-space: pre-wrap !important;
}

.break-words {
  word-wrap: break-word !important;
  word-break: break-word !important;
}

/* Gap utilities for responsive */
.gap-4 {
  gap: 1rem !important;
}

@media (min-width: 1024px) {
  .lg\:gap-12 {
    gap: 3rem !important;
  }

  .lg\:sticky {
    position: sticky !important;
  }

  .lg\:top-24 {
    top: 6rem !important;
  }

  .lg\:order-1 {
    order: 1 !important;
  }

  .lg\:order-2 {
    order: 2 !important;
  }
}

.order-1 {
  order: 1 !important;
}

.order-2 {
  order: 2 !important;
}

/* ===================================
   Event Grid Spacing Fix
   =================================== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem !important;
  padding: 1rem;
}

@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem !important;
    padding: 0.5rem;
  }
}

/* ===================================
   Avatar Display Fix
   =================================== */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================
   Notification Popup Styles
   =================================== */
.notification-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  z-index: 9999;
}

/* ===================================
   Tab Active State Fix
   =================================== */
.tab-link {
  position: relative;
  padding-bottom: 1rem;
  transition: all 0.3s ease;
}

.tab-link.active {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
}

/* Event cards spacing */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem !important;
  padding: 1rem;
}

@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem !important;
    padding: 0.5rem;
  }
}

/* Avatar fixes */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.-space-x-2 > * + * {
  margin-left: -0.5rem !important;
}

/* Tab styling */
.tab-link {
  position: relative;
  transition: all 0.3s ease;
}

.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* ===================================
   Custom Fixes for zahudbou.cz
   =================================== */

/* Fix dropdown menu visibility - odstraněno, už je definováno výše */

/* Fix event cards spacing */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem !important;
  padding: 1rem;
}

@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem !important;
    padding: 0.5rem;
  }
}

/* Fix avatar display */
.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fix button active state */
.btn-active {
  background: var(--primary) !important;
  color: var(--text-inverse) !important;
  border-color: var(--primary) !important;
}

/* Fix tab active state */
.tab-link.active {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
}

/* Avatar spacing fix */
.-space-x-2 > * + * {
  margin-left: -0.5rem !important;
}

/* Dropdown je již definován výše s hover efektem */

/* Mobile dropdown fix */
@media (max-width: 768px) {
  .dropdown-content {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 2rem) !important;
    max-width: 20rem !important;
    margin-top: 0.5rem !important;
  }
  
  .dropdown-end .dropdown-content {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

/* Detail page spacing improvements */
.space-y-12 > * + * {
  margin-top: 3rem !important;
}

.space-y-16 > * + * {
  margin-top: 4rem !important;
}

@media (min-width: 1024px) {
  .lg\:gap-16 {
    gap: 4rem !important;
  }
}

/* ===================================
   Promotion Status Styles
   =================================== */
.promotion-status {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.promotion-status.expired {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.1), rgba(75, 85, 99, 0.1));
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.promotion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.promotion-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.promotion-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.promotion-header p {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.promotion-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.promotion-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.promotion-status.active .stat-value {
  color: var(--accent);
}

@media (max-width: 768px) {
  .promotion-details {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================
   Route Planning Styles
   =================================== */
.route-option {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.route-option:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(182, 225, 0, 0.2);
}

.route-option-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.route-duration {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.route-price {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.route-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.route-steps span:not(:first-child):not(:nth-child(odd)) {
  color: var(--primary);
  font-weight: 500;
}

.route-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.use-location-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.use-location-btn:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.05);
}

.route-input {
  position: relative;
  margin-bottom: 1rem;
  z-index: 1;
}

.route-input label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.route-input input,
.route-input .input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

#route-from {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.route-input input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(182, 225, 0, 0.1);
}

.route-input input::placeholder {
  color: var(--text-secondary);
}

.route-time {
  margin-bottom: 1rem;
}

.route-time label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.address-suggestion {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

.address-suggestion:hover {
  background: rgba(255, 255, 255, 0.05);
}

.address-suggestion:last-child {
  border-bottom: none;
}

.suggestion-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.suggestion-subtitle {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.transport-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.transport-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.transport-mode::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.transport-mode:hover::before {
  opacity: 1;
}

.transport-mode:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(182, 225, 0, 0.2);
  transform: translateY(-2px);
}

.transport-mode.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 8px 16px rgba(182, 225, 0, 0.3);
  transform: translateY(-2px);
}

.transport-mode svg, .transport-mode span {
  position: relative;
  z-index: 1;
}

.time-inputs {
  display: flex;
  gap: 0.5rem;
}

.time-inputs select,
.time-inputs input {
  flex: 1;
}

@media (max-width: 768px) {
  .route-actions {
    flex-direction: column;
  }
  
  .route-actions .btn {
    width: 100%;
  }
  
  .transport-modes {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .transport-mode {
    flex-direction: row;
    justify-content: center;
    padding: 0.5rem;
  }
}

/* ===================================
   Promoted Event Indicator
   =================================== */
.promoted-indicator {
  display: inline-flex;
  align-items: center;
}

.promoted-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  margin-left: 0.25rem;
  box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.promoted-badge svg {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* ===================================
   Discussion & Updates Sections
   =================================== */
.add-comment-form, .add-update-form {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item, .update-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.comment-header, .update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.comment-author, .update-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-author img, .update-author img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.author-info .author-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.comment-time, .update-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.comment-content, .update-content {
  line-height: 1.6;
  color: var(--text-primary);
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.comment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.comment-action:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.update-item {
  border-left: 3px solid var(--primary);
  background: linear-gradient(135deg, rgba(182, 225, 0, 0.05), rgba(182, 225, 0, 0.02));
}

.update-item .update-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ===================================
   Attendee Avatars
   =================================== */
.attendee-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.attendee-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.attendee-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Additional Comment Styles
   =================================== */
.comment-card {
  transition: all 0.3s ease;
}

.comment-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ===================================
   Map Container Styling
   =================================== */
#event-map {
  border-radius: 12px;
  overflow: hidden;
}

/* ===================================
   Route Results Styling
   =================================== */
.route-result {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

/* ===================================
   Address Suggestions Improvements
   =================================== */
#address-suggestions {
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.suggestion-item {
  transition: all 0.2s ease;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

/* ===================================
   Event Action Buttons Styling
   =================================== */
.event-action-btn {
  position: relative;
  overflow: hidden;
}

.event-action-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(182, 225, 0, 0.3);
}

.event-action-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ===================================
   Promotion Grid Styling
   =================================== */
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .promotion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .attendee-avatar {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.625rem;
  }
}

/* ===================================
   Badge Glass Style
   =================================== */
.badge-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* ===================================
   Detail Page - Facebook Events Style
   =================================== */
/* Hero Section */
.detail-hero {
    padding: 30px 0;
    background-color: #f0f2f5;
    margin-bottom: 60px;  /* Velká mezera pod hero sekcí */
}

/* Event Header Card */
.event-header-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 60px;  /* Velká mezera pod hlavičkou */
}

/* Event Detail Card - obecná karta pro sekce */
.event-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 32px;
    margin-bottom: 60px;  /* Velká mezera mezi kartami */
}

/* Detail Content Container */
.detail-content {
    padding: 40px 0 80px;  /* Větší padding nahoře a dole */
}

.detail-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;  /* Větší mezera pod nadpisy */
    color: #1c1e21;
}

/* Jednotlivé sekce */
.description-section {
    margin-bottom: 80px;  /* Velká mezera pod popisem */
}

.venue-section {
    margin-bottom: 80px;  /* Velká mezera pod místem konání */
}

.organizer-section {
    margin-bottom: 80px;  /* Velká mezera pod organizátorem */
}

/* Navigation Card */
.navigation-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 32px;
    margin-bottom: 60px;  /* Mezera pod navigační kartou */
}

/* Map Container */
.map-container {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;  /* Mezera pod mapou */
}

/* Comments Section */
.comments-section {
    margin-top: 80px;  /* Velká mezera nad komentáři */
    padding-top: 60px;  /* Velký padding nahoře */
    border-top: 1px solid #e4e6eb;
}

/* Event Actions (tlačítka) */
.event-actions {
    margin-bottom: 40px;  /* Mezera pod tlačítky */
}

/* Attendees Preview */
.attendees-preview {
    margin-top: 24px;
    margin-bottom: 40px;  /* Mezera pod účastníky */
}

/* Sidebar */
.event-sidebar {
    position: sticky;
    top: 100px;
}

/* Responsive úpravy */
@media (max-width: 768px) {
    .detail-hero {
        margin-bottom: 40px;
    }
    
    .event-header-card,
    .event-detail-card {
        margin-bottom: 40px;
        padding: 20px;
    }
    
    .description-section,
    .venue-section,
    .organizer-section {
        margin-bottom: 50px;
    }
    
    .detail-content {
        padding: 20px 0 40px;
    }
    
    .comments-section {
        margin-top: 50px;
        padding-top: 30px;
    }
}

/* Detail Page - Space between cards */
.card-glass + .card-glass {
    margin-top: 3rem;  /* Větší mezera mezi po sobě jdoucími kartami */
}

/* Main content sections spacing */
.lg\:col-span-2 > .card-glass {
    margin-bottom: 4rem;  /* Velká mezera pod každou kartou v hlavním obsahu */
}

/* Sidebar sections spacing */
.space-y-6 > .card-glass {
    margin-bottom: 2.5rem;  /* Mezera mezi kartami v sidebaru */
}

/* Last card no margin */
.lg\:col-span-2 > .card-glass:last-child,
.space-y-6 > .card-glass:last-child {
    margin-bottom: 0;
}

/* Hero section spacing */
.detail-hero + * {
    margin-top: 4rem;  /* Velká mezera pod hero sekcí */
}

/* Admin section spacing */
#admin-section {
    margin-top: 5rem;  /* Velká mezera před admin sekcí */
}

/* Tailwind space utilities override for larger gaps */
.space-y-12 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 4rem;  /* 64px místo standardních 48px */
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 3rem;  /* 48px místo standardních 32px */
}

/* ===================================
   Hero Section Enhancements
   =================================== */
.text-shadow-lg {
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.hero-gradient {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* ===================================
   Action Buttons Animations
   =================================== */
#interested-btn,
#going-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

#interested-btn:hover,
#going-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182, 225, 0, 0.3);
}

#interested-btn:active,
#going-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Ripple effect for buttons */
#interested-btn::before,
#going-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#interested-btn.animate-ripple::before,
#going-btn.animate-ripple::before {
    width: 300px;
    height: 300px;
}

/* Pulse animation for active states */
#interested-btn.active {
    animation: pulse-interested 2s infinite;
}

#going-btn.active {
    animation: pulse-going 2s infinite;
}

@keyframes pulse-interested {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes pulse-going {
    0% { box-shadow: 0 0 0 0 rgba(182, 225, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(182, 225, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(182, 225, 0, 0); }
}

/* ===================================
   Sidebar Spacing Fix
   =================================== */
.lg\:col-span-1 {
    padding-left: 2rem;
}

@media (max-width: 1024px) {
    .lg\:col-span-1 {
        padding-left: 0;
    }
}

/* ===================================
   Avatar Enhancements
   =================================== */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   Map and Navigation Enhancements
   =================================== */
#event-map {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 192px;
}

.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.map-loading svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    animation: spin 1s linear infinite;
}

/* Address suggestions improvements */
#address-suggestions {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.suggestion-subtitle {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

/* ===================================
   Promotion Section Enhancements
   =================================== */
#promote-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.promotion-info {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.promotion-info.expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.2);
}

.promotion-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.promotion-status.active {
    color: #059669;
}

.promotion-status.expired {
    color: #dc2626;
}

.promotion-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.promotion-extend {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.extend-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.extend-option {
    padding: 8px 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.extend-option:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.extend-option.selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.8);
}

/* ===================================
   Comments Section Enhancements
   =================================== */
.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.6;
    word-wrap: break-word;
}

/* ===================================
   Responsive Enhancements
   =================================== */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: 50vh;
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .lg\:col-span-1 {
        padding-left: 0;
    }
    
    .space-y-12 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 2rem;
    }
    
    .space-y-8 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.5rem;
    }
}

/* ===================================
   Loading States
   =================================== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.loading-skeleton.h-4 { height: 16px; }
.loading-skeleton.h-6 { height: 24px; }
.loading-skeleton.h-8 { height: 32px; }
.loading-skeleton.w-20 { width: 80px; }
.loading-skeleton.w-32 { width: 128px; }
.loading-skeleton.w-full { width: 100%; }

