:root {
  --green: #1d995b;
  --green-hover: #006648;
  --bg-dark: #0a1628;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f3f4f6;
  line-height: 1.6;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.g-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 1rem 0;
}
.g-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.g-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
}
.g-header h1 a { color: #fff; }
.g-header h1 a:hover { text-decoration: none; color: var(--green); }
.g-header nav { display: flex; gap: 1rem; align-items: center; }
.g-header nav a, .g-header nav span {
  color: #9ca3af;
  font-size: 0.875rem;
}
.g-header nav a:hover { color: #fff; }

.g-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.g-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-light);
  font-size: 0.8125rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #162a4a 100%);
  color: #fff;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.125rem;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Cards / Grid ===== */
.grid-events {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-cover {
  aspect-ratio: 16/9;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 1.25rem; }
.card-body h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.card-body .date { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 0.5rem; }
.card-body .desc { font-size: 0.875rem; color: var(--text-light); }
.card-body .photo-count { font-size: 0.8125rem; color: var(--green); margin-top: 0.75rem; font-weight: 500; }

/* ===== Album page ===== */
.album-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.album-header h1 { font-size: 1.75rem; font-weight: 800; }
.album-header .date { color: var(--text-light); margin-top: 0.25rem; }

.grid-photos {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.photo-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow .2s;
}
.photo-item:hover { box-shadow: var(--shadow); }
.photo-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ===== Admin ===== */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.admin-header h1 { font-size: 1.5rem; font-weight: 800; }
.admin-layout { display: grid; gap: 2rem; grid-template-columns: 1fr 2fr; align-items: start; }
@media (max-width: 768px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-photo-list { display: grid; gap: 1rem; }
.admin-photo-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.admin-photo-row img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.admin-photo-row .info { flex: 1; min-width: 0; }
.admin-photo-row .info .caption { font-size: 0.875rem; }
.admin-photo-row .info .filename { font-size: 0.75rem; color: var(--text-light); }
.admin-photo-row .actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ===== Forms ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29,153,91,.15);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: #f9fafb; text-decoration: none; }
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== Alerts ===== */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== Install ===== */
.install-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628, #162a4a);
  padding: 1.5rem;
}
.install-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.install-logo { text-align: center; margin-bottom: 1rem; }
.install-card h1 { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.install-card p { font-size: 0.9375rem; color: var(--text-light); margin-bottom: 1.5rem; text-align: center; }
.install-card .btn { width: 100%; justify-content: center; }
.install-card .text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-gray-500 { color: #6b7280; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.inline-flex { display: inline-flex; align-items: center; gap: 0.25rem; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text); }

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-light);
}
.empty-state p { margin-bottom: 1rem; }

/* ===== Loading / Drop zone ===== */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--green);
  background: rgba(29,153,91,.05);
}
.drop-zone p { color: var(--text-light); margin-bottom: 0.5rem; }
