/* App CSS for Kampery Polska */
:root {
  --primary: #446084;
  --primary-dark: #2c415c;
  --primary-light: #6482a9;
  --accent: #f59e0b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: 'Lato', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #cbd5e1;
}

.top-bar a:hover {
  color: #ffffff;
}

/* GTranslate Styling */
.gtranslate_wrapper select {
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}

.gtranslate_wrapper select:focus {
  outline: none;
  border-color: var(--primary-light);
}

.header-main {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-logo i {
  color: var(--primary);
  font-size: 1.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
}

.main-nav a.active, .main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Reference site icon menu */
.mon-menu-icones {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 12px 10px;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.mon-menu-icones a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mon-menu-icones a i {
  font-size: 1.3rem;
  color: var(--primary);
}

.mon-menu-icones a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(30,41,59,0.85), rgba(68,96,132,0.85)), url('https://images.unsplash.com/photo-1523987355523-c7b5b0dd90a7?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 20px;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 50px;
  box-shadow: var(--shadow-lg);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 35px;
  opacity: 0.95;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(68,96,132,0.4);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-success {
  background-color: #10b981;
  color: #ffffff;
}
.btn-success:hover {
  background-color: #059669;
  color: #ffffff;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-available { background: #dcfce7; color: #166534; }
.badge-reserved { background: #fef3c7; color: #92400e; }
.badge-sold { background: #fee2e2; color: #991b1b; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* Grid Layouts */
.grid {
  display: grid;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Vehicle Card */
.vehicle-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.vehicle-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-card-img img {
  transform: scale(1.06);
}

.vehicle-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.vehicle-price-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.vehicle-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vehicle-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.vehicle-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.vehicle-spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-spec-item i {
  color: var(--primary);
}

.vehicle-card-footer {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Page Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Contact Page Styles */
.contact-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}

.contact-columns {
  margin-bottom: 50px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px auto;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1rem;
}

.contact-form-container {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 50px;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(68,96,132,0.15);
}

textarea.form-control {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Testimonial Card */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;

}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--primary-light);
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}

.testimonial-author {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1rem;
}

/* Admin Dashboard Styles */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 75px);
}

.admin-sidebar {
  width: 260px;
  background: #1e293b;
  color: #94a3b8;
  padding: 30px 0;
  flex-shrink: 0;
}

.admin-sidebar-nav {
  list-style: none;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 25px;
  color: #cbd5e1;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-sidebar-nav a:hover, .admin-sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-left: 4px solid var(--primary);
}

.admin-main {
  flex-grow: 1;
  padding: 40px;
  background: #f1f5f9;
}

.stat-card {
  background: #ffffff;
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.data-table th, .data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-dark);
}

/* Footer */
.site-footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 60px 0 20px 0;
  margin-top: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}

/* Alerts & Flash Messages */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 25px;
  font-weight: 600;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* RESPONSIVE DESIGN BREAKPOINTS */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .header-main { height: auto; padding: 15px 0; flex-direction: column; gap: 15px; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .mon-menu-icones { gap: 20px; flex-wrap: wrap; }
  
  /* Contact page 3-columns responsive constraint: col-12 on mobile */
  .contact-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .contact-columns > div {
    width: 100% !important;
  }
}

/* Marketing Modal Overlay & Card */
.marketing-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.marketing-modal-overlay.active {
  opacity: 1;
}

.marketing-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 40px 35px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.marketing-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.marketing-modal-close:hover {
  color: var(--text-dark);
}
