/* ============================================================
   Parlez! – Main Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #3730a3;
  --primary-light:  #6366f1;
  --accent:         #f59e0b;
  --accent-hover:   #d97706;
  --dark:           #0f172a;
  --dark-mid:       #1e293b;
  --text:           #334155;
  --light:          #64748b;
  --border:         #e2e8f0;
  --bg:             #f8fafc;
  --white:          #ffffff;
  --shadow:         0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -2px rgba(0,0,0,.08);
  --shadow-lg:      0 10px 25px -5px rgba(0,0,0,.12), 0 4px 10px -5px rgba(0,0,0,.08);
  --radius:         14px;
  --tr:             .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.navbar__logo {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  user-select: none;
}
.navbar__logo span { color: var(--accent); }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.navbar__nav a {
  color: #94a3b8;
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--tr);
}
.navbar__nav a:hover { color: var(--white); }
.navbar__nav .admin-link { color: #475569; font-size: .78rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--tr); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('0_img/back/index_back-1300.jpg') center top / 100% auto no-repeat;
  filter: brightness(.38);
}
.hero__content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 4rem 1.5rem;
  max-width: 820px;
}
.hero__content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.hero__content h1 span { color: var(--accent); }
.hero__content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--tr);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--dark); }
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,158,11,.45);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn--indigo {
  background: var(--primary-light);
  color: var(--white);
}
.btn--indigo:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,102,241,.4);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section      { padding: 5.5rem 1.5rem; }
.section--alt { background: var(--white); }

.container { max-width: 1100px; margin: 0 auto; }

.section__header { text-align: center; margin-bottom: 3.25rem; }
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary-light);
  margin-bottom: .75rem;
}
.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--dark-mid);
  line-height: 1.18;
  margin-bottom: .9rem;
  letter-spacing: -.5px;
}
.section__subtitle {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-light);
  transition: transform var(--tr), box-shadow var(--tr);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card__icon { font-size: 2.4rem; margin-bottom: 1rem; }
.feature-card__title { font-size: 1.05rem; font-weight: 700; color: var(--dark-mid); margin-bottom: .5rem; }
.feature-card__text  { font-size: .9rem; color: var(--light); line-height: 1.6; }

/* ============================================================
   LANGUAGES
   ============================================================ */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .75rem;
}
.lang-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1rem .5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all var(--tr);
  cursor: pointer;
}
.lang-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.lang-card__flag   { font-size: 1.9rem; margin-bottom: .3rem; }
.lang-card__name   { font-weight: 700; color: var(--dark-mid); font-size: .78rem; }
.lang-card__native { font-size: .7rem; color: var(--light); margin-top: .15rem; }
.lang-card--active {
  border-color: var(--primary-light);
  background: rgba(99,102,241,.06);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--tr), box-shadow var(--tr);
}
.screenshot-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.screenshot-item img   { width: 100%; }

/* ============================================================
   NEWS
   ============================================================ */
.news-list { list-style: none; max-width: 640px; margin: 0 auto; }
.news-list li {
  display: flex;
  gap: 1.2rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.news-list li:last-child { border-bottom: none; }
.news-date { font-size: .78rem; font-weight: 700; color: var(--primary-light); white-space: nowrap; min-width: 85px; }
.news-text { font-size: .95rem; color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark-mid); margin-bottom: .9rem; }
.contact-info p   { color: var(--light); margin-bottom: 1.25rem; line-height: 1.7; }
.info-item        { display: flex; align-items: center; gap: .7rem; color: var(--text); margin-bottom: .7rem; font-size: .9rem; }

.contact-form {
  background: var(--white);
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .825rem;
  font-weight: 600;
  color: var(--dark-mid);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 9px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--tr), background var(--tr);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary-light); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; justify-content: center; }

.alert { padding: 1rem 1.5rem; border-radius: 9px; margin-bottom: 1.5rem; font-weight: 500; font-size: .9rem; }
.alert--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: #475569;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.footer p         { font-size: .85rem; margin-bottom: .35rem; }
.footer a         { color: #374151; font-size: .78rem; transition: color var(--tr); }
.footer a:hover   { color: #6b7280; }
.footer__divider  { border: none; border-top: 1px solid #1e293b; margin: 1.5rem auto; max-width: 200px; }

/* ============================================================
   ADMIN – LOGIN
   ============================================================ */
.admin-body {
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-card {
  background: var(--white);
  padding: 2.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}
.login-card h2   { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--dark-mid); margin-bottom: .4rem; }
.login-card .sub { text-align: center; color: var(--light); font-size: .875rem; margin-bottom: 2rem; }

/* ============================================================
   ADMIN – DASHBOARD
   ============================================================ */
.admin-nav {
  background: var(--dark);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 56px;
  box-shadow: var(--shadow);
}
.admin-nav a { color: #64748b; font-size: .875rem; font-weight: 500; transition: color var(--tr); }
.admin-nav a:hover { color: var(--white); }
.admin-nav .brand { font-weight: 800; color: var(--accent); margin-right: auto; font-size: 1rem; letter-spacing: -.5px; }

.admin-main { max-width: 960px; margin: 2.5rem auto; padding: 0 1.5rem 4rem; }
.admin-main h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark-mid); margin-bottom: 1.5rem; }

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.admin-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark-mid); margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.admin-card p  { color: var(--light); font-size: .9rem; line-height: 1.7; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-box__value { font-size: 1.75rem; font-weight: 800; color: var(--primary-light); }
.stat-box__label { font-size: .78rem; color: var(--light); margin-top: .25rem; }

/* ============================================================
   LANGUAGE PAGES
   ============================================================ */
.lang-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #312e81 60%, var(--primary) 100%);
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  color: var(--white);
}
.lang-hero__flag  { font-size: 4rem; margin-bottom: 1rem; line-height: 1; }
.lang-hero h1     { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; margin-bottom: .75rem; }
.lang-hero p      { color: #cbd5e1; font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

.lang-switcher {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: .4rem;
  padding: .8rem 1.5rem;
  flex-wrap: wrap;
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .85rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--light);
  border: 2px solid transparent;
  transition: all var(--tr);
  white-space: nowrap;
}
.lang-switcher a:hover  { color: var(--primary-light); border-color: var(--primary-light); }
.lang-switcher a.active { color: var(--primary); border-color: var(--primary-light); background: rgba(99,102,241,.09); }

.lang-content { max-width: 820px; margin: 0 auto; }
.lang-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark-mid); margin-bottom: 1rem; }
.lang-content p  { color: var(--text); line-height: 1.8; margin-bottom: 1rem; }
.lang-features   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.lang-features li {
  list-style: none;
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary-light);
  color: var(--text);
  font-size: .95rem;
  line-height: 1.5;
}
.lang-features li strong { color: var(--dark-mid); display: block; margin-bottom: .25rem; }

.download-notice {
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  margin-top: 2rem;
}
.download-notice p { color: var(--text); margin-bottom: .5rem; }
.download-notice .soon { font-size: .85rem; color: var(--light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .navbar__nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--dark-mid);
    flex-direction: column;
    padding: 1.25rem 2rem 2rem;
    align-items: flex-start;
    gap: 1.1rem;
    border-top: 1px solid #1e293b;
    box-shadow: var(--shadow-lg);
  }
  .navbar__nav.open { display: flex; }
  .hamburger { display: flex; }

  .hero { min-height: 420px; }

  .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .lang-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(4, 1fr); }
  .screenshots-grid { grid-template-columns: 1fr; }
  .lang-features { grid-template-columns: 1fr; }
}
