* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f6f8;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e293b;
  padding: 1rem 2rem;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
}

.admin-btn {
  background: #2563eb;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: white !important;
}

/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 380px;
  overflow: hidden;
  background: #000;
}

.slide {
  display: none;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.caption {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1.2rem;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
}
.next { right: 0; }
.prev { left: 0; }

/* Content Grid */
.content-container {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex: 1;
}

.content-container h2 {
  margin-bottom: 1.5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.badge-idea { background: #e0f2fe; color: #0369a1; }
.badge-video { background: #fee2e2; color: #b91c1c; }
.badge-note { background: #dcfce7; color: #15803d; }

.card-link {
  margin-top: 1rem;
  display: inline-block;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

/* Admin Dashboard */
.admin-container {
  max-width: 700px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

input, select, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-primary { background: #2563eb; color: white; padding: 0.75rem; border: none; border-radius: 6px; cursor: pointer; }
.btn-danger { background: #dc2626; color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; cursor: pointer; }
.hidden { display: none; }

/* Footer */
.footer {
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}
