@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);
  --text-primary: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  /* Beautiful animated mesh gradient-like background */
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 50%, #c026d3 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

/* Base Glassmorphism Card Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Feed Container */
#feed {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Admin Container */
.admin-container {
  width: 100%;
  max-width: 500px;
}

h1.title {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="number"],
input[type="color"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #fff;
}

input[type="color"] {
  height: 45px;
  padding: 5px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

option {
  color: black;
}

button.btn-glass {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  margin-top: 1rem;
}

button.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

/* Loader */
.loader {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.7;
}

.empty-state {
  text-align: center;
  opacity: 0.7;
  font-style: italic;
}

/* Card Content Rendering */
.card-content {
  line-height: 1.6;
  white-space: pre-wrap; /* Keeps line breaks */
}

/* Floating Action Button (Optional link to admin) */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Admin Card Item */
.admin-card-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.admin-card-text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.9;
}

.admin-card-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-action {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-edit {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.btn-edit:hover { background: rgba(255, 255, 255, 0.4); }

.btn-delete {
  background: rgba(255, 100, 100, 0.2);
  color: #ffb3b3;
}
.btn-delete:hover { background: rgba(255, 100, 100, 0.4); }
