/* ========================================
   OVERCLOCK CLUB — Design System
   ======================================== */

:root {
  --color-bg:        #0A0A0F;
  --color-card:      #1A1A2E;
  --color-cyan:      #00F5FF;
  --color-violet:    #7B2FFF;
  --color-text:      #E8EAED;
  --color-muted:     #6B7280;
  --color-border:    rgba(0, 245, 255, 0.15);
  --color-glow:      rgba(0, 245, 255, 0.5);

  --font-heading: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Inter', Arial, sans-serif;

  --btn-radius:   4px;
  --card-radius:  8px;
  --btn-padding:  12px 28px;
  --transition:   0.2s ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

a { color: var(--color-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow var(--transition), background-color var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-cyan);
  color: #0A0A0F;
}
.btn-primary:hover {
  box-shadow: 0 0 16px var(--color-glow);
  text-decoration: none;
  color: #0A0A0F;
}

.btn-secondary {
  background: transparent;
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
}
.btn-secondary:hover {
  box-shadow: 0 0 16px var(--color-glow);
  text-decoration: none;
}

.btn-violet {
  background: var(--color-violet);
  color: #fff;
}
.btn-violet:hover {
  box-shadow: 0 0 16px rgba(123, 47, 255, 0.5);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border: 1px solid rgba(107, 114, 128, 0.4);
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text);
  text-decoration: none;
}

.btn-danger {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* === CARDS === */
.card {
  background: var(--color-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  padding: 24px;
}

/* === CONTAINERS === */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === SECTION === */
section {
  padding: 80px 0;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo { flex-shrink: 0; }
.navbar-logo a { display: flex; align-items: center; }

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
}
.navbar-links a:hover { color: var(--color-cyan); text-decoration: none; }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* === HERO === */
#hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,245,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-h1 em {
  font-style: normal;
  color: var(--color-cyan);
}

.hero-perex {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* === JAK TO FUNGUJE === */
#jak-to-funguje { background: rgba(26, 26, 46, 0.3); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 32px 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0,245,255,0.12);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-cyan);
  margin-bottom: 8px;
}

.step-desc { color: var(--color-muted); font-size: 0.95rem; }

/* === SORTIMENT === */
.drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.drink-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: center;
}

.drink-card:hover {
  border-color: rgba(0,245,255,0.4);
  box-shadow: 0 0 20px rgba(0,245,255,0.08);
}

.drink-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
}

.drink-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.drink-meta { font-size: 0.8rem; color: var(--color-muted); }

.drink-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-energy { background: rgba(0,245,255,0.1); color: var(--color-cyan); }
.badge-limonada { background: rgba(123,47,255,0.12); color: var(--color-violet); }

.drink-card-more {
  background: transparent;
  border: 1px dashed rgba(0,245,255,0.25);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.drink-card-more span {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-violet);
}

/* === WISHLIST === */
#wishlist { background: rgba(26, 26, 46, 0.3); }

.wishlist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.wishlist-form .card { height: 100%; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(107,114,128,0.4);
  border-radius: var(--btn-radius);
  padding: 10px 14px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 2px rgba(0,245,255,0.15);
}

.form-input::placeholder { color: var(--color-muted); }

select.form-input { appearance: none; cursor: pointer; }

.wishlist-list {}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.vote-count {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,245,255,0.1);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-cyan);
}

.wishlist-drink-name {
  font-weight: 500;
  font-size: 0.95rem;
}

/* === STATISTIKY === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: 8px;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-value--text {
  font-size: 1.4rem;
  text-align: center;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === NEWSLETTER === */
#newsletter { background: rgba(26,26,46,0.3); }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.newsletter-form .form-input {
  flex: 1;
  min-width: 200px;
}

/* === O NÁS === */
.about-text {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.8;
}

.about-text p + p { margin-top: 20px; }
.about-text strong { color: var(--color-text); }

/* === FAQ === */
.faq-list {
  max-width: 760px;
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--color-cyan); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  margin-left: 16px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-cyan);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::before { width: 2px; height: 12px; top: 4px; left: 9px; }
.faq-icon::after  { width: 12px; height: 2px; top: 9px; left: 4px; }

.faq-item.open .faq-icon::before { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  display: none;
  padding-bottom: 20px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* === FOOTER === */
footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-tagline {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(107,114,128,0.6);
}

/* === FLASH MESSAGES === */
.flash {
  padding: 14px 20px;
  border-radius: var(--btn-radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.flash-success { background: rgba(0,245,255,0.1); border: 1px solid rgba(0,245,255,0.3); color: var(--color-cyan); }
.flash-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #ef4444; }

/* === ADMIN LAYOUT === */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-card);
  border-right: 1px solid var(--color-border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo a { display: block; }

.sidebar-nav {
  padding: 20px 0;
  flex: 1;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.sidebar-nav-item a:hover,
.sidebar-nav-item.active a {
  color: var(--color-cyan);
  background: rgba(0,245,255,0.06);
}

.sidebar-nav-item.active a {
  border-left: 2px solid var(--color-cyan);
}

.sidebar-bottom {
  padding: 20px;
  border-top: 1px solid var(--color-border);
}

.admin-main {
  flex: 1;
  overflow: auto;
  padding: 32px;
  max-width: 100%;
}

.admin-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-title {
  font-size: 1.8rem;
}

/* === ADMIN STATS GRID === */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 20px;
}

.admin-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* === TABLES === */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background: rgba(0,245,255,0.05);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255,255,255,0.02); }

/* === ADMIN FORMS === */
.admin-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.admin-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 24px;
}

.admin-form-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 20px;
}

/* === STATUS BADGES === */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pending  { background: rgba(251,191,36,0.15); color: #fbbf24; }
.status-approved { background: rgba(0,245,255,0.12);  color: var(--color-cyan); }
.status-rejected { background: rgba(239,68,68,0.12);  color: #ef4444; }
.status-done     { background: rgba(74,222,128,0.12); color: #4ade80; }

/* === TYPE BADGES === */
.type-purchase { color: #4ade80; }
.type-stocked  { color: var(--color-cyan); }
.type-consumed { color: #f87171; }

/* === LOGIN PAGE === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0,245,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.login-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.login-logo {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.login-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.login-sub {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* === QR SECTION === */
.qr-section {
  background: rgba(26,26,46,0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 48px 32px;
  text-align: center;
  max-width: 440px;
  margin: 48px auto 0;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(0,245,255,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* === UTILITIES === */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.text-cyan   { color: var(--color-cyan); }
.text-violet { color: var(--color-violet); }
.text-muted  { color: var(--color-muted); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.items-center { align-items: center; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 12px 24px; }
  .navbar-toggle { display: block; }
  .navbar { position: relative; }

  .wishlist-layout { grid-template-columns: 1fr; }

  .hero-h1 { font-size: 2.2rem; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--color-border); }
  .admin-main { padding: 20px; }

  .admin-forms { grid-template-columns: 1fr; }
}
