/* ========================================
   ZMIENNE GLOBALNE
   ======================================== */
:root {
  --primary: #0d2b3e;
  --accent: #00c4ff;
  --text: #2c3e50;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --footer-bg: #0a1f2d;
  --border-color: #e2e8f0;
  --success: #27ae60;
  --danger: #dc3545;
  --gray-light: #f8f9fa;
  --gray-border: #e0e0e0;
}

/* ========================================
   PODSTAWOWE UTILITKI I KOMPONENTY
   ======================================== */
/* Przyciski */
.btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: #081f2a;
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 196, 255, 0.1);
}
.btn-hero-primary {
  background: var(--accent);
  color: var(--white);
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 196, 255, 0.4);
}
.btn-hero-outline {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 13px 35px;
  font-size: 1.1rem;
  border-radius: 8px;
  margin-left: 15px;
  background: transparent;
}
.btn-bid {
  background: var(--primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* Dropdowny */
.dropdown {
  display: inline-block;
  position: relative;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
  top: 100%;
  left: 0;
  margin-top: 5px;
}
.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background 0.2s;
}
.dropdown-content a:hover {
  background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Menu użytkownika */
.user-dropdown {
  float: right;
}
.user-menu-content {
  position: absolute;
  right: 0;
  left: auto !important;
  min-width: 220px !important;
  padding: 10px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  top: 100%;
  margin-top: 10px;
}
.user-menu-content::before {
  content: "";
  position: absolute;
  top: -10px; /* To wypełnia lukę nad menu */
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent; /* Niewidoczne, ale kursor to "czuje" */
}
.user-balance-info {
  padding: 10px 15px;
  background-color: var(--gray-light);
  display: flex;
  flex-direction: column;
}
.user-balance-info strong {
  color: var(--accent);
  font-size: 1.1rem;
}
.user-menu-content hr {
  margin: 5px 0;
  border: 0;
  border-top: 1px solid var(--border-color);
	z-index: 9999;
}
.logout-link {
  color: var(--danger) !important;
}
.logout-link:hover {
  background-color: #fff5f5 !important;
}
.user-menu-content i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: var(--text);
}
.user-balance {
  background: var(--gray-light);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  color: var(--success);
  border: 1px solid var(--gray-border);
}

/* ========================================
   NAWIGACJA I NAGŁÓWEK
   ======================================== */
.header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  margin: 0 15px;
  transition: color 0.3s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu a:hover {
  color: var(--accent);
}
.nav-menu i {
  font-size: 1.1rem;
}
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Logo */
.logo a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-dot {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.5rem;
}
.logo-sub {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -5px;
}

/* ========================================
   HERO SECTION (wersja z obrazem - aktywna)
   ======================================== */
/* Uwaga: Pierwotna wersja z video została usunięta, 
   ponieważ była nadpisywana przez poniższe style. 
   Zachowano wyłącznie działającą implementację. */
.hero {
  position: relative;
  background: url('/public/images/hero-bg.jpg') no-repeat center center/cover;
  padding: 100px 0;
  color: var(--white);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 43, 62, 0.95) 0%, rgba(13, 43, 62, 0.7) 100%);
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 0 20px;
}
.hero-badge {
  background: rgba(0, 196, 255, 0.2);
  color: var(--accent);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}
.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}
.text-gradient {
  background: linear-gradient(45deg, var(--accent), #00eaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.2rem;
  color: #bdc3c7;
  margin-bottom: 35px;
  max-width: 600px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.stat-label {
  color: #bdc3c7;
  font-size: 0.9rem;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.visual-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  transform: rotate(3deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ========================================
   SEKCJA: JAK TO DZIAŁA
   ======================================== */
.how-it-works {
  padding: 80px 0;
  background: var(--light-bg);
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.2rem;
  color: var(--primary);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.step-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s;
}
.step-card:hover {
  transform: translateY(-10px);
}
.step-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0, 196, 255, 0.1);
  position: absolute;
  top: 10px;
  right: 20px;
}
.step-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* ========================================
   STRONA LOGOWANIA/REJESTRACJI
   ======================================== */
.auth-page {
  background: #f4f7f9;
  min-height: 100vh;
}
.auth-layout {
  display: flex;
  min-height: 100vh;
}
.auth-side-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-card {
  max-width: 400px;
  width: 100%;
}
.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
}
.form-group-custom {
  margin-bottom: 20px;
}
.form-group-custom label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.9rem;
}
.input-wrapper {
  position: relative;
}
.input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #bdc3c7;
}
.input-wrapper input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s;
  font-size: 1rem;
}
.input-wrapper input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 196, 255, 0.1);
}
.auth-side-info {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #081f2a 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.extra-header {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.full-logo-gradient {
  background: linear-gradient(45deg, var(--accent), #00eaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.benefit-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.b-icon {
  min-width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}

/* ========================================
   AKTUALNE LICYTACJE
   ======================================== */
.active-auctions {
  padding: 80px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.auctions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.auction-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s;
}
.auction-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.auction-image {
  position: relative;
  height: 200px;
}
.auction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-type {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}
.auction-body {
  padding: 20px;
}
.price-range {
  margin: 15px 0;
  padding: 10px;
  background: var(--gray-light);
  border-radius: 8px;
}
.price-range span {
  display: block;
  font-weight: 800;
  color: var(--success);
  font-size: 1.1rem;
}
.auction-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.timer {
  color: #e74c3c;
  font-weight: bold;
  font-size: 0.9rem;
}

/* ========================================
   STOPKA
   ======================================== */
.footer {
  background: var(--footer-bg);
  color: #ecf0f1;
  padding-top: 60px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px;
}
.footer-brand .logo-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}
.footer-desc {
  margin: 20px 0;
  line-height: 1.6;
  color: #bdc3c7;
}
.footer-links h4,
.footer-contact h4 {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 25px;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin-bottom: 12px;
}
.footer-links ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}
.snofru-link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease;
}
.snofru-badge {
  margin-top: 25px;
  display: inline-block;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  font-size: 0.8rem;
  color: #ecf0f1;
  transition: all 0.3s ease;
}
.snofru-link:hover .snofru-badge {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #00eaff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.snofru-link:hover {
  transform: translateY(-2px);
}
.footer-bottom {
  background: #06141f;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.legal-links a {
  color: #7f8c8d;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s;
}
.legal-links a:hover {
  color: var(--accent);
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
/* Mobile navigation */
@media (max-width: 768px) {
  .nav-menu,
  .nav-buttons {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-container {
    padding: 0 15px;
  }
}

/* Hero section - tablet/mobile */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 35px;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }
}

/* Auth page - mobile */
@media (max-width: 991px) {
  .auth-side-info {
    display: none;
  }
  .auth-layout {
    flex-direction: column;
  }
}

/* Footer - tablet */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer - mobile */
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .legal-links a {
    margin-left: 0;
    display: block;
    margin: 5px 0;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}