/* ============================================================
   YDOT.CZ — INDEX PAGE STYLES
   Závisí na: /css/style.css (base, font, proměnné)
============================================================ */

:root {
  --blue:   #0A84FF;
  --dark:   #1C1C1E;
  --bg:     #F2F2F7;
  --muted:  #8E8E93;
  --white:  #FFFFFF;
  --border: #D1D1D6;
  --max:    1337px;
  --pad:    clamp(24px, 4vw, 64px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  overflow-x: hidden;
}

/* ============================================================
   AUTH BAR (fixed top-right)
============================================================ */
.auth-bar {
  position: fixed;
  top: 28px;
  right: var(--pad);
  display: flex;
  gap: 10px;
  z-index: 200;
  opacity: 0;
  animation: fadeUp .6s ease forwards 2s;
}

.auth-bar a {
  font-size: 13px;
  letter-spacing: .5px;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.auth-bar .btn-login {
  color: var(--blue);
  border: 1px solid transparent;
}
.auth-bar .btn-login:hover {
  background: rgba(10,132,255,.08);
  border-color: rgba(10,132,255,.2);
}

.auth-bar .btn-register {
  background: var(--blue);
  color: var(--white);
}
.auth-bar .btn-register:hover {
  background: #0070E0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10,132,255,.35);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  height: 100vh;
  min-height: 620px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ---- Logo ---- */
.hero-logo {
  position: absolute;
  left: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: baseline;
  font-size: clamp(52px, 8.5vw, 108px);
  font-weight: 300;
  letter-spacing: 3px;
  line-height: 1;
}

.logo span {
  display: inline-block;
  opacity: 0;
}

.logo .y   { color: var(--blue); animation: slideFromRight .75s ease forwards .5s; }
.logo .d   { color: var(--dark); animation: blurIn .75s ease forwards .75s; }
.logo .o   { color: var(--dark); animation: blurIn .75s ease forwards .85s; }
.logo .t   { color: var(--dark); animation: blurIn .75s ease forwards .95s; }
.logo .dot { color: var(--blue); animation: blurIn .75s ease forwards 1.05s; }
.logo .cz  { color: var(--dark); animation: slideFromLeft .75s ease forwards 1.2s; }

@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); transform: scale(.95); }
  to   { opacity: 1; filter: blur(0);   transform: scale(1); }
}
@keyframes slideFromRight {
  from { opacity: 0; filter: blur(6px); transform: translateX(-28px); }
  to   { opacity: 1; filter: blur(0);   transform: translateX(0); }
}
@keyframes slideFromLeft {
  from { opacity: 0; filter: blur(6px); transform: translateX(28px); }
  to   { opacity: 1; filter: blur(0);   transform: translateX(0); }
}

/* ---- Diagonal line ---- */
.line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.line-svg line {
  stroke: var(--dark);
  stroke-width: 1px;
  opacity: .12;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 1.1s cubic-bezier(.4,0,.2,1) forwards .3s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ---- Nav links ---- */
.hero-nav {
  position: absolute;
  inset: 0;
  left: 46%;
  right: 0;
  pointer-events: none;
}

.nav-link {
  position: absolute;
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 300;
  letter-spacing: 5px;
  text-decoration: none;
  color: var(--dark);
  pointer-events: all;
  opacity: 0;
  white-space: nowrap;
  transition: color .25s ease, letter-spacing .3s ease;
}

.nav-link:hover { color: var(--blue); letter-spacing: 8px; }

.nav-link:nth-child(1) { animation: slideInRight .7s ease forwards 1.5s; }
.nav-link:nth-child(2) { animation: slideInRight .7s ease forwards 1.7s; }
.nav-link:nth-child(3) { animation: slideInRight .7s ease forwards 1.9s; }

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

/* Různé výšky – vizuální rytmus */
.nav-todo      { top: 15%;  right: 12%; }
.nav-garaz     { top: 44%;  right: 3%;  }
.nav-portfolio { top: 68%;  right: 9%;  }

/* ---- Scroll chevrons ---- */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  animation: fadeUp .6s ease forwards 2.3s;
  padding: 8px;
  background: none;
  border: none;
}

.chevron-wrap {
  width: 20px;
  height: 10px;
  position: relative;
}

.chevron-wrap::before,
.chevron-wrap::after {
  content: '';
  position: absolute;
  height: 1.5px;
  width: 55%;
  background: var(--dark);
  opacity: .3;
  top: 50%;
  transition: opacity .2s;
}
.chevron-wrap::before { left: 0;  transform: rotate(40deg);  transform-origin: left center; }
.chevron-wrap::after  { right: 0; transform: rotate(-40deg); transform-origin: right center; }

.scroll-cue:hover .chevron-wrap::before,
.scroll-cue:hover .chevron-wrap::after { opacity: .7; }

.chevron-wrap:nth-child(1) { animation: chevPulse 1.6s ease infinite 0s; }
.chevron-wrap:nth-child(2) { animation: chevPulse 1.6s ease infinite .18s; }
.chevron-wrap:nth-child(3) { animation: chevPulse 1.6s ease infinite .36s; }

@keyframes chevPulse {
  0%,100% { opacity: .2; transform: translateY(-3px); }
  50%      { opacity: .8; transform: translateY(3px); }
}

/* ============================================================
   CONTENT (pod hero)
============================================================ */
.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--pad) 80px;
}

/* ---- Section header ---- */
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--dark);
}

.section-title em {
  color: var(--blue);
  font-style: normal;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 560px;
}

/* ---- About grid ---- */
.about-section { margin-bottom: 100px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}

.about-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 10px rgba(0,0,0,.045);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--blue);
  border-radius: 0 0 2px 2px;
  transition: height .35s ease;
}

.about-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.about-card:hover::before { height: 100%; }

.card-icon {
  font-size: 30px;
  margin-bottom: 18px;
  display: block;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--dark);
}

.about-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.85;
}

/* ---- Apps section ---- */
.apps-section { margin-bottom: 100px; }

.index-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.index-app-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid transparent;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.index-app-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(10,132,255,.12);
}

.index-app-card .app-emoji { font-size: 26px; }

.index-app-card h4 {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--dark);
  text-transform: uppercase;
}

.index-app-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.index-app-card .app-arrow {
  margin-top: auto;
  font-size: 18px;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}

.index-app-card:hover .app-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- CTA ---- */
.cta-section {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.045);
  margin-bottom: 60px;
}

.cta-section h2 {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cta-section h2 em { color: var(--blue); font-style: normal; }

.cta-section p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.cta-buttons a {
  font-size: 14px;
  letter-spacing: .5px;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 10px;
  transition: all .25s ease;
}

.cta-primary {
  background: var(--blue);
  color: var(--white);
}
.cta-primary:hover {
  background: #0070E0;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10,132,255,.3);
}

.cta-secondary {
  background: var(--bg);
  color: var(--dark);
  border: 1px solid var(--border);
}
.cta-secondary:hover {
  background: #E5E5EA;
  transform: translateY(-2px);
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 36px var(--pad);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .5px;
}

.site-footer a { color: var(--blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ============================================================
   UTILS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 960px) {
  .nav-todo      { top: 16%;  right: 6%;  }
  .nav-garaz     { top: 43%;  right: 1%;  }
  .nav-portfolio { top: 67%;  right: 4%;  }

  .about-grid       { grid-template-columns: 1fr; }
  .index-apps-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding: 100px 0 80px;
  }

  .hero-inner {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    gap: 0;
  }

  .hero-logo {
    position: relative;
    left: auto; top: auto;
    transform: none;
    margin-bottom: 48px;
  }

  .line-svg { display: none; }

  .mobile-sep {
    display: block;
    width: 48px;
    height: 1px;
    background: rgba(0,0,0,.12);
    margin-bottom: 36px;
  }

  .hero-nav {
    position: relative;
    left: auto; right: auto;
    inset: auto;
    width: 100%;
  }

  .nav-link {
    position: static;
    display: block;
    margin-bottom: 16px;
    font-size: clamp(30px, 9vw, 52px);
  }
  .nav-link:nth-child(2) { padding-left: 20px; }
  .nav-link:nth-child(3) { padding-left: 8px; }

  .scroll-cue       { display: none; }
  .index-apps-grid  { grid-template-columns: 1fr; }

  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons a { text-align: center; }
}
