/* Boja Sport - Main CSS with Dark/Light Mode */
/* Color Palette */
:root {
  /* Dark Mode (default) */
  --bg-primary: #0a0e27;
  --bg-secondary: #111936;
  --bg-card: #161d42;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d0;
  --accent: #0dcaf0;
  --accent-hover: #0bb5d9;
  --border-color: #2a3562;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --gradient-1: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 100%);
  --gradient-accent: linear-gradient(135deg, #0dcaf0 0%, #0bb5d9 100%);
}

[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0a0e27;
  --text-secondary: #4a5568;
  --accent: #0dcaf0;
  --accent-hover: #0bb5d9;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-1: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Navbar Styles */
.navbar {
  background-color: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-brand img {
  max-height: 50px;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent) !important;
  background-color: rgba(13, 202, 240, 0.1);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: var(--accent);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Login/Register Buttons (placeholders) */
.btn-login {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 5px;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
}

.btn-register {
  background: var(--accent);
  border: none;
  color: var(--bg-primary);
  padding: 0.4rem 1rem;
  border-radius: 5px;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-login::after,
.btn-register::after {
  content: 'Wkrótce';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.btn-login:hover::after,
.btn-register:hover::after {
  opacity: 1;
}

/* Fix for fixed navbar */
.fix-navbar {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  background: linear-gradient(rgba(10, 14, 39, 0.8), rgba(10, 14, 39, 0.9)),
              url('../img/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .hero {
  background: linear-gradient(rgba(248, 249, 250, 0.85), rgba(248, 249, 250, 0.9)),
              url('../img/hero.jpg') center/cover no-repeat;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary-custom {
  background: var(--gradient-accent);
  border: none;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 202, 240, 0.4);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 202, 240, 0.5);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Cards */
.card-custom {
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-color);
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: var(--accent);
}

.card-custom img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-custom .card-body {
  padding: 1.5rem;
}

.card-custom .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-custom .card-text {
  color: var(--text-secondary);
}

/* Tables - Desktop */
.table-custom {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.table-custom th {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

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

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

.table-custom tr:hover td {
  background: rgba(13, 202, 240, 0.05);
}

/* Tables - Mobile Cards */
@media (max-width: 768px) {
  .table-responsive-cards {
    display: none;
  }
  
  .mobile-cards {
    display: block;
  }
  
  .mobile-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
  }
  
  .mobile-card-header {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
  }
  
  .mobile-card-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-card-row:last-child {
    border-bottom: none;
  }
  
  .mobile-card-label {
    font-weight: 600;
    color: var(--text-secondary);
  }
  
  .mobile-card-value {
    color: var(--text-primary);
    text-align: right;
  }
}

@media (min-width: 769px) {
  .mobile-cards {
    display: none;
  }
}

/* Accordion Styles */
.accordion-custom .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: rgba(13, 202, 240, 0.1);
  color: var(--accent);
}

.accordion-custom .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(79%) sepia(35%) saturate(1134%) hue-rotate(149deg) brightness(104%) contrast(91%);
}

.accordion-custom .accordion-body {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* Tabs */
.nav-tabs-custom {
  border-bottom: 2px solid var(--border-color);
}

.nav-tabs-custom .nav-link {
  color: var(--text-secondary);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  margin-bottom: -2px;
}

.nav-tabs-custom .nav-link.active {
  color: var(--accent);
  background: transparent;
  border-bottom: 2px solid var(--accent);
  margin-bottom: -2px;
}

/* Forms */
.form-control-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.2);
  color: var(--text-primary);
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-secondary);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--accent) !important;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Camp Cards */
.camp-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.camp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--accent);
}

.camp-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.camp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.camp-card:hover .camp-card-image img {
  transform: scale(1.1);
}

.camp-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: #000;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.camp-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.camp-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.camp-card-location {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.camp-card-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.camp-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.pricing-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-card .price small {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Contact Info */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: rgba(13, 202, 240, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

/* Pool Locations */
.pool-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.pool-card-header {
  background: rgba(13, 202, 240, 0.1);
  padding: 1.5rem;
  text-align: center;
}

.pool-card-header h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pool-card-header p {
  color: var(--text-secondary);
  margin: 0;
}

.pool-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
}

.pool-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.bg-primary-custom {
  background-color: var(--bg-primary);
}

.bg-secondary-custom {
  background-color: var(--bg-secondary);
}

.text-accent {
  color: var(--accent);
}

.max-w-1200 {
  max-width: 1200px;
  margin: 0 auto;
}

/* Coming Soon Badge */
.coming-soon {
  position: relative;
  overflow: hidden;
}

.coming-soon::after {
  content: 'WKRÓTCE';
  position: absolute;
  top: 20px;
  right: -30px;
  background: #ffc107;
  color: #000;
  padding: 0.3rem 3rem;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Image Hover Effect */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 10px;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .btn-primary-custom,
  .btn-outline-custom {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .theme-toggle {
    display: none !important;
  }
  
  body {
    background: #fff !important;
    color: #000 !important;
  }
}
