/* =============================================
   StayHack – Design System (palette.css)
   Χρησιμοποιείται σε ΟΛΕΣ τις σελίδες v3.0
   ============================================= */

/* --- CSS VARIABLES --- */
:root {
  /* Brand colors */
  --red: #BF092F;
  --red-hover: #a00828;
  --petrol: #1a7a8a;
  --petrol-hover: #146070;
  --teal: #389797;
  --dark: #132440;
  --bg: #f7f8fb;
  --text: #1a1a1a;
  --muted: #575757;
  --gray: #D8D8D8;
  --light-gray: #E9EAEE;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #BF092F, #d4145a);
  --gradient-secondary: linear-gradient(135deg, #1a7a8a, #2596a8);
  --gradient-accent: linear-gradient(135deg, #1a7a8a, #389797);

  /* Semantic aliases */
  --primary: var(--red);
  --primary-hover: var(--red-hover);
  --primary-red: var(--red);
  --secondary: var(--petrol);
  --secondary-hover: var(--petrol-hover);
  --primary-petrol: var(--petrol);

  /* Surfaces */
  --panel-bg: #f3f4f6;
  --card-bg: #fff;
  --card-border: 1px solid rgba(0,0,0,.08);
  --radius: 16px;
  --radius-sm: 12px;

  /* Shadows (elevation) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
  --shadow-primary: 0 4px 14px rgba(191,9,47,.25);
  --shadow-secondary: 0 4px 14px rgba(26,122,138,.25);

  /* Typography */
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- LAYOUT --- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 24px; }

/* --- TYPOGRAPHY --- */
.h1 { font-size: clamp(26px,4.5vw,34px); font-weight: 900; color: var(--secondary); margin: 0; letter-spacing: -.02em; }
.h2 { font-size: clamp(18px,3.2vw,22px); font-weight: 800; color: var(--secondary); margin: 0; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 6px 0 0; opacity: .9; font-size: 15px; }
.small { font-size: 14px; color: var(--muted); }

/* --- PANEL --- */
.panel {
  background: var(--panel-bg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
}

/* --- GLASS PANEL (modern variant) --- */
.panel-glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}

/* --- GRID --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 14px; }

/* --- CARDS --- */
.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  transition: transform .2s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card ul { margin: 0 0 4px 18px; }
.card li { margin: 2px 0; }
.logo-box { height: 96px; display: grid; place-items: center; }
.logo-box img { max-height: 80px; max-width: 82%; object-fit: contain; display: block; transition: transform .25s ease; }
.card:hover .logo-box img { transform: scale(1.05); }

/* --- BUTTONS (StayHack Unified v3) --- */
.btn, .btn-primary, .t-cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.3;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: var(--shadow-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after, .btn-primary::after, .t-cta::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .3s ease;
  border-radius: inherit;
}
.btn:hover, .btn-primary:hover, .t-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(191,9,47,.4);
  filter: brightness(1.08);
}
.btn:hover::after, .btn-primary:hover::after, .t-cta:hover::after {
  background: rgba(255,255,255,.08);
}
.btn:active, .btn-primary:active, .t-cta:active { transform: translateY(0) scale(.98); }
.card .btn-primary, .card .btn { margin-top: auto; align-self: flex-start; }

.btn-outline {
  background: transparent; color: var(--secondary);
  border: 2px solid var(--secondary); box-shadow: none;
  backdrop-filter: none;
}
.btn-outline:hover {
  background: var(--gradient-secondary); color: var(--white);
  border-color: transparent; box-shadow: var(--shadow-secondary);
  filter: none;
}
.btn-dark  { background: var(--gradient-secondary); color: var(--white); box-shadow: var(--shadow-secondary); }
.btn-dark:hover { filter: brightness(1.1); box-shadow: 0 6px 24px rgba(26,122,138,.4); }
.btn-gray  { background: var(--muted); color: var(--white); border: none; box-shadow: none; }
.btn-gray:hover { background: #444; transform: translateY(-1px); }
.btn-light { background: var(--gray);  color: var(--secondary); border: none; box-shadow: none; }
.btn-light:hover { background: #c8c8c8; transform: translateY(-1px); }

/* --- BACK BUTTON --- */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: none;
  background: var(--gradient-primary);
  color: var(--white); font-weight: 700; text-decoration: none; font-size: 14px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: var(--shadow-primary);
}
.back-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(191,9,47,.4); }

/* --- CAROUSEL / SCROLL SNAP --- */
.scroll-x {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }

/* --- BADGE / TAG --- */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  background: rgba(191,9,47,.1); color: var(--primary);
}
.badge-petrol { background: rgba(26,122,138,.1); color: var(--secondary); }
.badge-teal { background: rgba(56,151,151,.1); color: var(--teal); }
.badge-white { background: rgba(255,255,255,.2); color: var(--white); backdrop-filter: blur(4px); }

/* --- DIVIDER --- */
hr { border: none; border-top: 1px solid rgba(0,0,0,.07); margin: 16px 0; }

/* --- FOOTER --- */
.sh-footer { background: var(--secondary); color: #cfd8e3; padding: 12px 16px; font-size: 12px; }
.sh-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: nowrap; }
.sh-footer-col { flex: 1; }
.sh-footer-logo { height: 90px; width: auto; display: block; margin-bottom: 8px; }
.sh-footer-title { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; color: #fff; }
.sh-footer p { margin: 0; font-size: 12px; line-height: 1.35; opacity: .85; }
.sh-footer a { display: block; font-size: 12px; color: #cfd8e3; text-decoration: none; margin: 3px 0; }
.sh-footer a:hover { color: #fff; }
.sh-footer-bottom { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.15); font-size: 11px; text-align: center; }

/* --- SPACING HELPERS --- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* --- RESPONSIVE --- */
@media (max-width: 800px) { .sh-footer-inner { flex-direction: column; gap: 10px; } }
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .logo-box { height: 90px; }
  .logo-box img { max-height: 78px; }
  .wrap { padding: 0 12px 20px; }
  .panel, .panel-glass { padding: 12px; }
}
