/* ==========================================================================
   VARIABLES & THEME
   ========================================================================== */
:root[data-theme='light'] {
  --bg: #ffffff;
  --text: #111111;
  --hero-bg: linear-gradient(to right, #bfdcff, #7baee6, #487bb5);
  --logo-text: #0a192f;
  --arrow: #111111;
  --link-hover: #007bff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
}

:root[data-theme='dark'] {
  --bg: #111111;
  --text: #eeeeee;
  --hero-bg: linear-gradient(to right, #0a192f, #1f3251);
  --logo-text: #ffffff;
  --arrow: #ffffff;
  --link-hover: #007bff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  transition: background .4s ease, color .4s ease;
  scroll-behavior: smooth;
}

main,
section,
footer {
  background: var(--bg);
  transition: background .4s ease, color .4s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

h1, h2, h3, h4, h5 {
  color: var(--text);
  font-weight: 600;
  margin-top: 0;
}

/* ==========================================================================
   LOGO & NAV
   ========================================================================== */
.logo-modern {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.1));
  transition: transform .3s ease, filter .3s ease;
}

.logo-modern:hover {
  transform: scale(1.05);
}

.logo-text {
  color: var(--logo-text);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color .3s ease;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color .3s ease;
}

.nav-link:hover {
  color: var(--link-hover);
}

.nav-link.active {
  font-weight: 700;
  border-bottom: 2px solid var(--link-hover);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-card {
  margin-top: 2rem;
  border-radius: 24px;
  overflow: hidden;
}

.hero-card .row {
  background: var(--hero-bg);
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: background .3s ease, color .3s ease;
}

.hero-card h1,
.hero-card p {
  color: var(--text);
}

.hero-card .btn {
  border-radius: 32px;
  padding: .6rem 1.5rem;
  font-weight: 500;
  transition: transform .3s ease;
}

.hero-card .hero-img {
  max-width: 90%;
  padding: 1rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
  transition: transform .3s ease;
}

.hero-card .hero-img:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   GLASS BOX
   ========================================================================== */
.glass-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  transition: background .4s ease, transform .3s ease;
}

/* ==========================================================================
   BRAND CAROUSEL
   ========================================================================== */
.brand-swiper {
  padding: 1rem 0;
}

.brand-carousel-img {
  width: 100%;
  max-width: 120px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  padding: .5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .3s ease, filter .3s ease;
}

.brand-carousel-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.brand-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.custom-arrow {
  width: 44px; height: 44px;
  background: transparent;
  font-size: 2rem;
  color: var(--arrow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s ease, color .3s ease;
}

.custom-arrow:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  width: 100%;
  padding: .75rem 1.25rem .75rem 2.75rem;
  border-radius: 40px;
  font-size: 1rem;
  background-color: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.1);
  color: var(--text);
  transition: all .3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.search-bar::placeholder {
  color: rgba(100,100,100,.6);
  font-style: italic;
}

.search-bar:focus {
  outline: none;
  background-color: rgba(255,255,255,.85);
  box-shadow: 0 0 0 3px rgba(0,123,255,.25);
}

.search-wrapper i {
  position: absolute;
  top: 50%; left: 1rem;
  transform: translateY(-50%);
  color: rgba(80,80,80,.5);
  font-size: 1.2rem;
  pointer-events: none;
  transition: color .3s ease;
}

[data-theme='dark'] .search-bar {
  background-color: rgba(30,30,30,.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

[data-theme='dark'] .search-bar::placeholder {
  color: rgba(200,200,200,.4);
}

[data-theme='dark'] .search-bar:focus {
  background-color: rgba(30,30,30,.6);
  box-shadow: 0 0 0 3px rgba(0,123,255,.25);
}

[data-theme='dark'] .search-wrapper i {
  color: rgba(255,255,255,.4);
}

/* ==========================================================================
   CATALOG CARD
   ========================================================================== */
.catalog-card .card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.catalog-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,123,255,.15);
}

.catalog-card .card-img-top {
  height: 180px;
  object-fit: cover;
  transition: transform .3s ease;
}

.catalog-card .card:hover .card-img-top {
  transform: scale(1.03);
}

.catalog-card .card-body {
  padding: 1rem;
}

.catalog-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.catalog-card .card-text {
  font-size: .9rem;
  opacity: .8;
  margin-bottom: 1rem;
}

.catalog-card .btn {
  font-size: .85rem;
  padding: .4rem .75rem;
  border-radius: 30px;
  transition: all .3s ease;
}

.catalog-card .btn-outline-primary:hover {
  background-color: var(--link-hover);
  color: #fff;
}

.catalog-card .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,123,255,.4);
}

[data-theme='dark'] .catalog-card .card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}

[data-theme='dark'] .catalog-card .card-title,
[data-theme='dark'] .catalog-card .card-text {
  color: #fff;
}

/* ==========================================================================
   PDF VIEWER HEADER
   ========================================================================== */
.pdf-header {
  position: relative;
  z-index: 10;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid rgba(200,200,200,.2);
  padding: 1rem;
  transition: background .3s ease, color .3s ease;
}

/* ==========================================================================
   BUTTONS & FOOTER
   ========================================================================== */
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,123,255,.3);
}

.btn-directions {
  background: var(--link-hover);
  color: #fff;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 12px rgba(13,110,253,.25);
  transition: all .3s ease;
  text-decoration: none;
}

.btn-directions:hover {
  background: #1a75ff;
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(13,110,253,.4);
}

footer {
  border-top: 1px solid rgba(180,180,180,.2);
}

footer h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

footer p, footer small {
  font-size: .95rem;
  margin-bottom: .4rem;
}

footer .icon {
  margin-right: 6px;
  vertical-align: middle;
}

footer .btn-link {
  color: var(--text);
  font-size: .9rem;
  padding: 0;
  text-decoration: underline;
  transition: color .3s ease;
}

footer .btn-link:hover {
  color: var(--link-hover);
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toast {
  transition: transform .4s ease, opacity .4s ease;
}

.toast.fade {
  transform: translateY(-20px);
  opacity: 0;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

[data-theme='dark'] .toast.bg-success {
  background-color: #14532d !important;
  color: #d1fae5;
}

[data-theme='dark'] .toast.bg-danger {
  background-color: #7f1d1d !important;
  color: #fee2e2;
}

/* ========================================================================== 
   THEME SWITCH
   ========================================================================== */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 32px;
}

/* Κάνουμε το input fullscreen & αόρατο */
.theme-switch input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Το pill‐background με sun SVG αρχικά */
.theme-switch .switch-bg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background-image: url("/assets/images/toggle-bg-sun.svg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-image 0.4s ease;
}

/* Όταν είναι checked, φόντο moon SVG */
.theme-switch input:checked + .switch-bg {
  background-image: url("/assets/images/toggle-bg-moon.svg");
}

/* Icons μέσα στο pill */
.theme-switch .icon {
  width: 20px;
  height: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Sun icon αρχικά ορατό */
.theme-switch .sun {
  opacity: 1;
  transform: scale(1);
}

/* Moon icon αρχικά κρυφό */
.theme-switch .moon {
  opacity: 0;
  transform: scale(0.5);
}

/* On toggle: κάνουμε sun κρυφό και moon ορατό */
.theme-switch input:checked + .switch-bg .sun {
  opacity: 0;
  transform: scale(0.5);
}
.theme-switch input:checked + .switch-bg .moon {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   UTILITIES & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .hero-card {
    padding: 1rem;
  }
  .hero-card h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .logo-centered-mobile {
    margin: 0 auto;
  }
  .logo-modern {
    height: 40px;
  }
  .theme-switch {
    width: 62px;
    height: 28px;
  }
  .switch-bg {
    padding: 4px 6px;
  }
}

