/* =========================================
   IMAGE RESIZER AI - FINAL CSS
   Optimized for Performance & Professional UI
========================================= */

/* =========================
   ROOT VARIABLES
========================= */
:root {
  --navy: #1e3a5f;
  --blue: #1a73e8;
  --blue-h: #1557b0;
  --blue-l: #e8f0fe;
  --green: #34a853;
  --bg: #f1f5ff;
  --card: #ffffff;
  --border: #dadce0;
  --text: #202124;
  --muted: #5f6368;
  --font: 'Nunito', sans-serif;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --radius: 14px;

  /* Desktop container width */
  --container: 860px;
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HEADER
========================= */
.site-header {
  background: linear-gradient(180deg, #1e3a5f, #17314f);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.logo-box {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
}

.logo-box span {
  background: var(--blue);
  border-radius: 2px;
}

.logo-box span:last-child {
  background: var(--green);
}

.desktop-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 18px;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}


/* =========================
   HEADER NAVIGATION FIX
========================= */

/* Ensure navigation lists do not show bullets */
.nav-list,
.dropdown-menu,
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Header container alignment */
.site-header {
  background: linear-gradient(180deg, #1e3a5f, #17314f);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

/* Desktop Navigation */
.desktop-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Navigation Links */
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Dropdown Structure */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 220px;
  display: none;
  z-index: 999;
}

/* Dropdown Links */
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #1e3a5f;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: #f1f5ff;
}

/* Show dropdown on hover */
.nav-item:hover > .dropdown-menu {
  display: block;
}

/* Button-style link (More menu) */
.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Language Switcher Alignment */
.lang-wrap {
  margin-left: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    background: #ffffff;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0;
  }

  .mobile-nav-list a {
    display: block;
    padding: 10px 0;
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
  }
}


/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(160deg, #1e3a5f, #1a4f8a);
  text-align: center;
  padding: 44px 0 36px;
  border-bottom: 4px solid #2563c8;
}

.hero-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

/* =========================
   MAIN CONTENT
========================= */
.main-content {
  padding: 32px 0 48px;
}

/* =========================
   CARD
========================= */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 32px;
}

/* =========================
   UPLOAD ZONE
========================= */
.upload-zone {
  border: 2px dashed #c0cce8;
  border-radius: var(--radius);
  padding: 50px 20px;
  text-align: center;
  transition: 0.3s;
}

.upload-zone:hover {
  border-color: var(--blue);
  background: #eef3fd;
}

.upload-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.upload-sub {
  color: var(--muted);
  margin-bottom: 20px;
}

.badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 4px;
  display: inline-block;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-h);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: #2d9248;
}

/* =========================
   SEO SECTION
========================= */
.seo-section {
  width: 100%;
  margin: 0;
}

.seo-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.seo-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.seo-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 14px;
}

.seo-block p {
  margin-bottom: 14px;
  color: #374151;
}

.seo-list,
.seo-steps {
  padding-left: 20px;
  margin-bottom: 18px;
}

.seo-list li,
.seo-steps li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.seo-list li::marker {
  color: var(--blue);
}

/* =========================
   PRIVACY CARD
========================= */
.privacy-card {
  margin-top: 32px;
  padding: 24px;
  background: #f8fbff;
  border: 1px solid #e3efff;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
}

.privacy-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.privacy-card p {
  margin-bottom: 10px;
}

.privacy-list {
  padding-left: 20px;
  margin: 10px 0;
}

.privacy-list li {
  margin-bottom: 8px;
}

.privacy-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* =========================
   FAQ SECTION
========================= */
.section-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.faq-list {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 20px 16px;
  color: var(--muted);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--navy);
  padding: 24px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .card,
  .seo-block {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    margin-left: 0;
  }
}