/* ==========================================================================
   BimmerShop.lt — Clean Light Theme with BMW Blue & 4 Tabs
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent-blue: #eff6ff;

  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* BMW Blue Identity */
  --bmw-blue: #1c69d4;
  --bmw-blue-hover: #1557b0;
  --bmw-dark-blue: #0b2240;
  --bmw-light-blue: #e0edfd;

  --status-green: #10b981;
  --status-green-bg: #ecfdf5;
  --status-amber: #f59e0b;
  --status-amber-bg: #fffbeb;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(28, 105, 212, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.top-accent-line {
  height: 4px;
  width: 100%;
  background: var(--bmw-blue);
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.logo-img-footer {
  height: 32px;
  width: auto;
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 48px 0 20px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--bmw-blue);
  background-color: var(--bmw-light-blue);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  color: var(--bmw-dark-blue);
  line-height: 1.25;
}

/* ==========================================================================
   4 Tabs Navigation Bar
   ========================================================================== */

.tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.tabs-nav {
  display: inline-flex;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.tab-btn:hover {
  color: var(--bmw-blue);
  background-color: var(--bg-subtle);
}

.tab-btn.active {
  background-color: var(--bmw-blue);
  color: #ffffff;
  border-color: var(--bmw-blue);
  box-shadow: 0 2px 6px rgba(28, 105, 212, 0.25);
}

.tab-name {
  font-weight: 700;
}

.tab-badge {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-weight: 700;
}

.tab-btn.active .tab-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   Tab Panels & App Card
   ========================================================================== */

.apps-section {
  padding: 10px 0 80px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.2s ease-in-out;
}

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

.app-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.app-header {
  margin-bottom: 14px;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.app-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--bmw-dark-blue);
  letter-spacing: -0.5px;
}

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

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-blue {
  background-color: var(--bmw-light-blue);
  color: var(--bmw-blue);
}

.badge-green {
  background-color: var(--status-green-bg);
  color: var(--status-green);
}

.badge-amber {
  background-color: var(--status-amber-bg);
  color: #d97706;
}

.app-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bmw-blue);
}

.app-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   Screenshots / Mockups
   ========================================================================== */

.screenshot-wrapper {
  margin-bottom: 32px;
}

/* Screenshot Gallery */
.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gallery-main-view {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gallery-link {
  position: relative;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  cursor: zoom-in;
  max-width: 100%;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(11, 34, 64, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  transform: translateY(4px);
}

.gallery-link:hover .gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.app-screenshot-img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Thumbnails */
.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px;
}

.gallery-thumb {
  position: relative;
  width: 96px;
  height: 66px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  background-color: #ffffff;
  padding: 2px;
  transition: all 0.15s ease;
}

.gallery-thumb:hover {
  border-color: var(--bmw-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(28, 105, 212, 0.15);
}

.gallery-thumb.active {
  border-color: var(--bmw-blue);
  box-shadow: 0 0 0 3px rgba(28, 105, 212, 0.25);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.thumb-label {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(11, 34, 64, 0.85);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 1.2;
}

/* Light Mockup UI Graphic */
.mockup-ui {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.mockup-header-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  gap: 8px;
}

.mockup-tab {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
}

.mockup-tab.active {
  color: var(--bmw-blue);
  border-bottom: 2px solid var(--bmw-blue);
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mockup-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.mockup-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mockup-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.mockup-pill.active-pill {
  background-color: var(--bmw-blue);
  color: #ffffff;
  border-color: var(--bmw-blue);
}

.mockup-device-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.status-indicator-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-green);
  display: inline-block;
}

.status-indicator-blue {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bmw-blue);
  display: inline-block;
}

.tag-status {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: #d1fae5;
  color: #065f46;
}

.tag-status.tag-blue {
  background-color: var(--bmw-light-blue);
  color: var(--bmw-blue);
}

.mockup-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.check-ok {
  color: var(--status-green);
  font-weight: 700;
}

.mockup-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mockup-badge-ok {
  background-color: #ecfdf5;
  color: var(--status-green);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Mockup Search UI (KISDB) */
.mockup-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

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

.search-input-sim {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bmw-dark-blue);
  flex-grow: 1;
}

.search-btn-sim {
  background-color: var(--bmw-blue);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
}

.mockup-table {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.85rem;
}

.table-row-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
  padding: 8px 12px;
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
  padding: 10px 12px;
  align-items: center;
  background-color: #ffffff;
  color: var(--text-primary);
}

.tag-superseded {
  background-color: var(--status-amber-bg);
  color: #b45309;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

/* ==========================================================================
   Features & Pricing Bottom Grid
   ========================================================================== */

.app-bottom-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.features-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bmw-dark-blue);
  margin-bottom: 14px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.check-svg {
  width: 18px;
  height: 18px;
  color: var(--bmw-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Pricing Box */
.app-pricing-box {
  background-color: var(--bg-accent-blue);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-header {
  margin-bottom: 20px;
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bmw-blue);
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bmw-dark-blue);
  line-height: 1.1;
  margin: 4px 0;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-blue {
  background-color: var(--bmw-blue);
  color: #ffffff;
  border: 1px solid var(--bmw-blue);
  box-shadow: 0 2px 4px rgba(28, 105, 212, 0.2);
}

.btn-blue:hover {
  background-color: var(--bmw-blue-hover);
  border-color: var(--bmw-blue-hover);
  box-shadow: 0 4px 8px rgba(28, 105, 212, 0.3);
}

.btn-outline-blue {
  background-color: #ffffff;
  color: var(--bmw-blue);
  border: 1px solid var(--bmw-blue);
}

.btn-outline-blue:hover {
  background-color: var(--bmw-light-blue);
}

.download-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 32px 0 20px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.footer-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-disclaimer {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .app-card {
    padding: 20px;
  }
  .mockup-grid {
    grid-template-columns: 1fr;
  }
  .app-bottom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tabs-nav {
    width: 100%;
  }
  .tab-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}
