/* ===============================
   GLOBAL THEME SETTINGS
   =============================== */
:root {
  --bg-main: #0a0a0f;
  --bg-card: #15151f;
  --bg-hover: #1f1f2e;
  --text-light: #e5e5e5;
  --text-muted: #a3a3b5;
  --accent: #3f7cff;
  --accent-hover: #5d93ff;
  --error: #ff3c3c;
  --success: #2ecc71;
  --radius: 12px;
  --transition: 0.25s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --font-main: 'Poppins', sans-serif;
}

/* ===============================
   RESET + BASE
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-main);
  color: var(--text-light);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

/* ===============================
   HEADER / NAVBAR
   =============================== */
header {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
nav a {
  font-weight: 500;
  color: var(--text-light);
}
nav a:hover {
  color: var(--accent-hover);
}

/* ===============================
   MAIN CONTENT
   =============================== */
main {
  flex: 1;
  padding: 40px 5%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
  text-align: center;
  background: linear-gradient(135deg, #1a1a28, #0f0f1a);
  padding: 80px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--accent);
}
.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ===============================
   CARD GRID (MOD LIST)
   =============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  background: var(--bg-hover);
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card-content {
  padding: 16px;
}
.card-title {
  font-weight: 600;
  font-size: 1.1rem;
}
.card-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ===============================
   FORMS (LOGIN / REGISTER / UPLOAD)
   =============================== */
.form-container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent);
}
form label {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 10px;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  background: var(--bg-hover);
  border: 1px solid #2a2a3a;
  border-radius: var(--radius);
  color: var(--text-light);
  outline: none;
  font-size: 1rem;
  transition: var(--transition);
}
form input:focus,
form textarea:focus {
  border-color: var(--accent);
}
button {
  width: 100%;
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
button:hover {
  background: var(--accent-hover);
}

/* ===============================
   TABLES (ADMIN PAGE)
   =============================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  padding: 14px 20px;
  text-align: left;
}
th {
  background: #1e1e2b;
  color: var(--accent);
}
tr:nth-child(even) {
  background: var(--bg-hover);
}
tr:hover {
  background: #23233a;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: var(--bg-card);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  border-top: 1px solid #2a2a3a;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 12px;
  }
  header {
    flex-direction: column;
    gap: 12px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .form-container {
    padding: 24px;
  }
}
