/* style.css — Professional & consistent version for Volt Tracker */
/* Updated: February 2026 — cleaner, more polished, better UX */

/* ────────────────────────────────────────────────
   Reset & Global Base
───────────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0a1320;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ────────────────────────────────────────────────
   Typography Helpers
───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #f1f5f9;
}

a {
    color: #ff9a3d;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffb066;
}

/* ────────────────────────────────────────────────
   Navigation (header.php)
───────────────────────────────────────────────── */
nav {
    background: linear-gradient(to bottom, #0f1b2d 0%, #0a1425 100%);
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e2a3f;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

nav .logo {
    font-size: 2rem;
    font-weight: 800;
    color: #ff9a3d;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

nav .logout-btn,
nav button[type="submit"] {
    background: #ff8c2a;
    color: white;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

nav .logout-btn:hover,
nav button[type="submit"]:hover {
    background: #ffa04d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 42, 0.25);
}

/* ────────────────────────────────────────────────
   Footer (footer.php)
───────────────────────────────────────────────── */
footer {
    background: #0a1325;
    text-align: center;
    padding: 1.6rem;
    font-size: 0.95rem;
    color: #64748b;
    border-top: 1px solid #1e2a3f;
    margin-top: auto;
}

footer span {
    color: #ff9a3d;
    font-weight: 500;
}

/* ────────────────────────────────────────────────
   Main Content Wrapper
───────────────────────────────────────────────── */
main {
    flex: 1;
    padding: 2.5rem 1.25rem;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* ────────────────────────────────────────────────
   Welcome / Hero Section
───────────────────────────────────────────────── */
.welcome {
    text-align: center;
    margin-bottom: 3.5rem;
}

.welcome h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: #ff9a3d;
    margin-bottom: 0.75rem;
}

.welcome p {
    font-size: 1.35rem;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto;
}

/* ────────────────────────────────────────────────
   Stats / KPI Cards
───────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.stat-card {
    background: #14203a;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    text-align: center;
    border: 1px solid #1e2f4a;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.stat-card:nth-child(1) .icon { color: #22c55e; }
.stat-card:nth-child(2) .icon { color: #f59e0b; }
.stat-card:nth-child(3) .icon { color: #ef4444; }
.stat-card:nth-child(4) .icon { color: #60a5fa; }

.number {
    font-size: 3.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.label {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-top: 0.6rem;
    font-weight: 500;
}

/* ────────────────────────────────────────────────
   Grid Layouts
───────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    main {
        padding: 3rem 2rem;
    }
}

/* ────────────────────────────────────────────────
   General Cards & Lists
───────────────────────────────────────────────── */
.card {
    background: #14203a;
    border-radius: 1.25rem;
    border: 1px solid #1e2f4a;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffaa55;
    padding: 1.4rem 2rem;
    background: #1e2f4a;
    margin: 0;
    border-bottom: 1px solid #2a3f5e;
}

.card-list {
    padding: 1.75rem;
}

.item {
    background: #0f172a;
    padding: 1.4rem;
    border-radius: 0.9rem;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
}

.item:hover {
    background: #1e2f4a;
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.item strong {
    color: #f1f5f9;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.4rem;
}

/* ────────────────────────────────────────────────
   Status Badges
───────────────────────────────────────────────── */
.status {
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 0.7rem;
}

.status.available,
.status.Available       { background: #134e2e; color: #86efac; }
.status.unavailable,
.status.Unavailable     { background: #7f1f1f; color: #fca5a5; }
.status.pending,
.status.Pending         { background: #92400e; color: #fde047; }
.status.verified,
.status.Verified        { background: #1e40af; color: #93c5fd; }
.status.rejected,
.status.Rejected        { background: #991b1b; color: #fca5a5; }

/* ────────────────────────────────────────────────
   Buttons (general use — can be reused)
───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: #ff8c2a;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #ffa04d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 42, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff9a3d;
    color: #ff9a3d;
}

.btn-outline:hover {
    background: rgba(255, 154, 61, 0.1);
}

/* ────────────────────────────────────────────────
   HEADER / NAVIGATION
───────────────────────────────────────────────── */

.main-nav {
  background: linear-gradient(to right, #0f172a, #1e293b);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fb923c;          /* orange accent */
}

.logo i {
  font-size: 1.4em;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2.2rem;             /* space between items */
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s ease, transform 0.15s;
}

.nav-links a:hover {
  color: #fb923c;
}

/* Button-style nav items (Login / Sign Up / Logout) */
.nav-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.22s;
}

.nav-btn.login {
  background: #334155;
  color: #e2e8f0;
}

.nav-btn.login:hover {
  background: #475569;
}

.nav-btn.signup {
  background: #f97316;
  color: white;
}

.nav-btn.signup:hover {
  background: #fb923c;
  transform: translateY(-1px);
}

.nav-btn.logout {
  background: #dc2626;
  color: white;
}

.nav-btn.logout:hover {
  background: #ef4444;
  transform: translateY(-1px);
}

/* ────────────────────────────────────────────────
   MOBILE RESPONSIVE
───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-btn {
    padding: 0.5rem 1rem;
  }
}

/* Extra small screens – stack if really tight */
@media (max-width: 480px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }
}


/* ────────────────────────────────────────────────
   HERO SECTION – Modern & Impactful
───────────────────────────────────────────────── */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 6rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(34,197,94,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -2px;
  margin-bottom: 1.2rem;
}

.out {
  background: linear-gradient(90deg, #ef4444, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.found {
  background: linear-gradient(90deg, #22c55e, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 2.8rem;
  color: #d1d5db;
  font-weight: 400;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1.1rem 2.4rem;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-start {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.btn-start:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(249,115,22,0.55);
}

.btn-learn {
  background: transparent;
  border: 2px solid #64748b;
  color: #cbd5e1;
}

.btn-learn:hover {
  border-color: #fb923c;
  color: #fb923c;
  background: rgba(251,146,60,0.08);
  transform: translateY(-3px);
}

/* Simple entrance animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features-section {
  padding: 5rem 1rem 6rem;
  background: #0f172a;
  color: white;
}

.features-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.features-intro h1 {
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  margin-bottom: 1rem;
  color: #fb923c;
  font-weight: 800;
}

.features-intro p {
  font-size: 1.25rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Horizontal swipe container */
.features-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 1.2rem;
  padding: 1.5rem 1rem 3rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  margin: 0 auto;
}

.features-grid::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 82%;
  max-width: 360px;
  scroll-snap-align: center;
  scroll-snap-stop: always;

  background: #1e293b;
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  border: 1px solid #334155;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(251,146,60,0.25);
  border-color: #fb923c60;
}

/* ─── Bigger icons ─── */
.feature-icon {
  font-size: 4.8rem;          /* noticeably larger – adjust to 5rem or 4.5rem if needed */
  margin-bottom: 1.5rem;
  color: #fb923c;
  line-height: 1;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.feature-card p {
  color: #94a3b8;
  line-height: 1.65;
  font-size: 1.05rem;
}

/* Swipe hint (only visible on mobile) */
.swipe-hint {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
  display: block;
}

/* Desktop → grid layout */
@media (min-width: 768px) {
  .features-grid {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: hidden;
    gap: 2rem;
    padding: 2rem;
  }

  .feature-card {
    flex: 1 1 320px;
    max-width: 380px;
  }

  .swipe-hint {
    display: none;
  }
}

/* Very small screens */
@media (max-width: 420px) {
  .feature-card {
    flex: 0 0 88%;
  }
}