/*
 * Padel & Tennis Point — Design 2026
 * Inspired by nextmove.cz — premium sports aesthetic
 */

/* ═══════════════════════════════════════════════════════════
   1. VARIABLES
════════════════════════════════════════════════════════════ */
:root {
  --color-primary:       #1a7f5a;
  --color-primary-dark:  #145f44;
  --color-primary-light: #22a878;

  --color-dark:          #0f0f0f;
  --color-dark-2:        #181818;
  --color-dark-3:        #252525;

  --color-text:          #111111;
  --color-text-muted:    #666666;
  --color-text-light:    #9ca3af;

  --color-bg:            #ffffff;
  --color-bg-alt:        #f7f7f5;

  --color-border:        #e5e5e5;
  --color-border-dark:   rgba(255,255,255,.1);

  --color-error:         #dc2626;
  --color-success:       #16a34a;
  --color-warning:       #d97706;

  --radius:              6px;
  --radius-lg:           14px;
  --radius-pill:         999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);

  --transition:      .2s ease;
  --transition-slow: .4s ease;

  --container-max: 1200px;
  --header-height: 90px;
}

/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE
════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
p { color: var(--color-text-muted); line-height: 1.7; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   3. LAYOUT
════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-main {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 320px);
}

/* Hero táhne obsah pod fixed header */
.hero {
  margin-top: calc(-1 * var(--header-height));
}

/* ═══════════════════════════════════════════════════════════
   4. BUTTONS
════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,127,90,.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,.45);
  color: rgba(255,255,255,.9);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover { color: var(--color-primary); }

.btn-dark {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}
.btn-dark:hover { background: var(--color-dark-2); }

.btn-lg { padding: .85rem 2.2rem; font-size: .97rem; }
.btn-sm { padding: .38rem .95rem; font-size: .82rem; }

/* ═══════════════════════════════════════════════════════════
   5. FORMS
════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .45rem;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,127,90,.12);
}
.form-control.is-invalid { border-color: var(--color-error); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  color: var(--color-error);
  font-size: .82rem;
  margin-top: .3rem;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   6. FLASH MESSAGES
════════════════════════════════════════════════════════════ */
.flash {
  padding: 1rem 1.5rem;
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  font-size: .93rem;
  font-weight: 500;
  border-left: 4px solid currentColor;
}
.flash--success { background: #f0fdf4; color: #15803d; }
.flash--error   { background: #fef2f2; color: #b91c1c; }
.flash--info    { background: #eff6ff; color: #1d4ed8; }
.flash--warning { background: #fffbeb; color: #b45309; }

/* ═══════════════════════════════════════════════════════════
   7. SITE HEADER
════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--color-dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), backdrop-filter var(--transition-slow);
}

.site-header--top {
  background: rgba(15, 15, 15, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Navigation */
.main-nav { flex: 1; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .1rem;
}

.main-nav a {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
  letter-spacing: .01em;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.header-actions .btn-outline {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.8);
  padding: .4rem 1.1rem;
  font-size: .85rem;
}
.header-actions .btn-outline:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: none;
}

.header-actions .btn-ghost {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
}
.header-actions .btn-ghost:hover { color: rgba(255,255,255,.8); }

.header-actions .btn-primary {
  font-size: .85rem;
  padding: .45rem 1.2rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   8. HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.6) 55%,
    rgba(0,0,0,.35) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 6rem 0 5rem;
  width: 100%;
}

.hero__inner .container { position: relative; }

.hero__label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 1.5rem;
  padding: .3rem .85rem;
  border: 1px solid rgba(34,168,120,.35);
  border-radius: var(--radius-pill);
  background: rgba(26,127,90,.12);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.4rem;
  max-width: 720px;
}

.hero h1 strong {
  font-weight: 700;
  color: #fff;
}

.hero__perex {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.35);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; }
  50%       { opacity: .8; }
}

/* ═══════════════════════════════════════════════════════════
   9. SECTION COMMONS
════════════════════════════════════════════════════════════ */
.section-pricing,
.section-gallery,
.section-news,
.section-contact {
  padding: 5.5rem 0;
}

.section-pricing  { background: var(--color-bg-alt); }
.section-gallery  { background: var(--color-bg); }
.section-news     { background: var(--color-bg-alt); }
.section-contact  { background: var(--color-dark); }

.section-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.15;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.section-contact h2 { color: #fff; }
.section-contact .section-label { color: rgba(255,255,255,.35); }

/* ═══════════════════════════════════════════════════════════
   10. CARDS (generic)
════════════════════════════════════════════════════════════ */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(26,127,90,.3);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════
   11. SITE FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.45);
  padding: 4.5rem 0 2rem;
  font-size: .875rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer__brand .logo { margin-bottom: 1rem; }
.footer__brand p {
  color: rgba(255,255,255,.38);
  font-size: .875rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer__col h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 1.1rem;
}

.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: .55rem; }
.footer__col ul a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--transition);
}
.footer__col ul a:hover { color: rgba(255,255,255,.9); }

.footer__col p {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  margin-bottom: .55rem;
  line-height: 1.55;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.28);
}

/* ═══════════════════════════════════════════════════════════
   12. AUTH PAGES
════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--color-bg-alt);
}

.auth-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}

.auth-box h1 {
  font-size: 1.6rem;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}
.auth-sub {
  color: var(--color-text-muted);
  font-size: .9rem;
  margin-bottom: 2rem;
}
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .875rem;
  color: var(--color-text-muted);
}
.auth-footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* Register page wider */
.auth-box--wide { max-width: 640px; }

/* ═══════════════════════════════════════════════════════════
   13. ERROR PAGES
════════════════════════════════════════════════════════════ */
.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.error-page .error-code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: .25rem;
}
.error-page h1 { font-size: 1.5rem; margin-bottom: .75rem; }
.error-page p   { margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════
   14. PAGE HEADERS (inner pages)
════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--color-dark);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(26,127,90,.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: .5rem;
}
.page-hero p {
  color: rgba(255,255,255,.55);
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════════════
   15. CONTENT PAGES
════════════════════════════════════════════════════════════ */
.content-page { padding: 3.5rem 0 5rem; }

/* ═══════════════════════════════════════════════════════════
   16. UTILITIES
════════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

hr, .divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

/* Badge */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray  { background: var(--color-bg-alt); color: var(--color-text-muted); }
.badge-red   { background: #fee2e2; color: #b91c1c; }

/* ═══════════════════════════════════════════════════════════
   17. RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .container { padding: 0 1.25rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark-2);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1.5rem 1.25rem;
    z-index: 299;
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: .25rem;
  }
  .main-nav a {
    padding: .75rem 1rem;
    border-radius: var(--radius);
    font-size: .95rem;
    color: rgba(255,255,255,.75);
  }

  .header-actions .btn-ghost { display: none; }
  .site-header .container { gap: .75rem; }
  .header-actions { margin-left: auto; }

  .hero { min-height: 75vh; }
  .hero__inner { padding: 4rem 0 3.5rem; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero__perex { font-size: 1rem; }
  .hero__scroll { display: none; }

  .section-pricing,
  .section-gallery,
  .section-news,
  .section-contact { padding: 4rem 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .auth-box { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .header-actions { gap: .25rem; }
  .header-actions .btn-outline { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   19. ALIASES & COMPAT
════════════════════════════════════════════════════════════ */

/* Auth — class aliases used in view files */
.auth-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 {
  font-size: 1.6rem;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}
.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .875rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.auth-links a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }

/* Full-width button */
.btn-block { width: 100%; justify-content: center; }

/* Pricing note */
.pricing-note { margin-top: 1rem; font-size: .85rem; color: var(--color-text-muted); }
