/* Modern Color Palette */
:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #dbeafe;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --border-color: #e5e7eb;
  --background: #f9fafb;
  --background-secondary: #f3f4f6;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --white: #ffffff;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--background);
  min-height: 100vh;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 1.5rem 0;
}

/* Navigation */
nav {
  background: linear-gradient(135deg, var(--white) 0%, #f8faff 100%);
  border-bottom: 2px solid var(--primary-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  height: 90px;
}

nav > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

nav .nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -0.8px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

nav h1 img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.15));
  transition: transform 0.3s ease;
}

nav h1:hover img {
  transform: scale(1.05) rotate(3deg);
}

nav h1 a {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.3s ease;
}

nav h1 a:hover {
  transform: scale(1.02);
}

nav h1 span {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  transition: all 0.3s ease;
}

nav h1:hover span {
  transform: scale(1.02);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 100%;
}

nav button {
  background: none;
  border: none;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

nav button::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav button:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

nav button:hover::after {
  width: 100%;
}

/* Buttons */
button,
input[type="submit"] {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

button:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

button:active,
input[type="submit"]:active {
  transform: translateY(0);
}

button.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

button.secondary:hover {
  background: var(--primary-light);
}

button.danger {
  background: var(--error-color);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

button.danger:hover {
  background: #dc2626;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Forms */
form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}

label span.required {
  color: var(--error-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

input::placeholder {
  color: var(--text-lighter);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Cards */
.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  margin: 0;
}

.card-body {
  line-height: 1.6;
  color: var(--text-light);
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
}

.card-footer button {
  flex: 1;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

/* Auth/Home Pages */
.auth-container {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border-color);
}

.auth-box h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-box > p {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.auth-links p {
  margin-bottom: 0.5rem;
}

.auth-links a {
  font-weight: 600;
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-section h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.welcome-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.welcome-section button {
  background: var(--white);
  color: var(--primary-color);
  font-weight: 700;
  margin: 0 0.5rem;
  box-shadow: none;
}

.welcome-section button:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* Dashboard */
.dashboard-header-wrapper {
  position: sticky;
  top: 90px;
  background: var(--background);
  padding: 2rem 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 0;
}

.dashboard-header h1 {
  color: var(--white);
  margin-top: 0;
}

.dashboard-header p {
  color: rgba(255, 255, 255, 0.9);
}

/* Add margin-top to stats to separate from sticky header */
.dashboard-header-wrapper + .stats {
  margin-top: 2rem;
}

/* All Posts Page */
.all-posts-header-wrapper {
  position: sticky;
  top: 90px;
  background: var(--background);
  padding: 2rem 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
}

.all-posts-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 0;
}

.all-posts-header h1 {
  color: var(--white);
  margin-top: 0;
}

.all-posts-header p {
  color: rgba(255, 255, 255, 0.9);
}

/* Stats */
.stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card h3 {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

/* Charts */
.chart-container {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.chart-container h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.simple-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 200px;
  margin: 1rem 0;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-width: 40px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.bar:hover {
  transform: scaleY(1.05);
}

.bar-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-light);
}

.bar-value {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Profile */
.profile-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid var(--white);
  color: var(--white);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.profile-info {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.profile-info h2 {
  margin-top: 0;
}

.profile-info p {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.profile-label {
  font-weight: 600;
  color: var(--text-color);
}

/* Post Form Container */
.post-form-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  box-sizing: border-box;
}

.post-form-header {
  position: sticky;
  top: 90px;
  background: var(--white);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  z-index: 50;
}

.post-form-header h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-form-header p {
  margin-bottom: 0;
}

/* Remove nested card styling from form inside post-form-container */
.post-form-container form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* Posts */
.post-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

.post-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-author {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.post-date {
  font-size: 0.875rem;
  color: var(--text-lighter);
}

.post-content {
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.post-actions {
  display: flex;
  gap: 0.75rem;
}

.post-actions button {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.875rem;
}

.btn-delete {
  background: var(--error-color);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
  background: #dc2626;
}

.btn-edit {
  background: var(--secondary-color);
}

.btn-edit:hover {
  background: #7c3aed;
}

/* Utilities */
.hidden {
  display: none !important;
}

.error,
.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid #991b1b;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.1);
}

.success,
.success-message {
  background: #dcfce7;
  color: #166534;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid #166534;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.1);
}

.notification {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.error {
  background: var(--error-color);
  color: var(--white);
}

.notification.success {
  background: var(--success-color);
  color: var(--white);
}

.notification.warning {
  background: var(--warning-color);
  color: var(--white);
}

/* Responsive Design */
@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }

  form {
    padding: 2.5rem;
  }

  .auth-box {
    max-width: 420px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-section {
    padding: 5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1280px;
    padding: 0 2rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .post-form-container {
    padding: 3rem;
  }

  .simple-chart {
    height: 250px;
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  nav {
    display: none;
  }

  .post-actions,
  .card-footer {
    display: none;
  }
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Form Styles */
.input-hint {
  margin-top: 0.375rem;
  display: block;
  font-size: 0.85rem;
  color: var(--text-lighter);
  line-height: 1.4;
}

.input-hint small {
  display: block;
  color: var(--text-lighter);
}

.char-count {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s ease;
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
textarea:disabled,
select:disabled {
  background-color: var(--background-secondary);
  color: var(--text-lighter);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Enhanced Button States */
button:disabled,
input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

button:disabled:hover,
input[type="submit"]:disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  background: var(--primary-color);
}

button.secondary:disabled {
  opacity: 0.5;
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Form Label Enhancements */
label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

label span.required {
  color: var(--error-color);
  font-weight: 700;
  margin-right: 0;
}

/* Input Focus State Enhancements */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Form Group Layout */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

/* All Posts Page Styles */

/* Hero Section */
.all-posts-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 16px;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  color: var(--white);
  text-align: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.all-posts-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.all-posts-hero-content {
  position: relative;
  z-index: 2;
}

.all-posts-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.all-posts-hero-title {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.all-posts-hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

/* Post Card Improvements */
.post-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
  border-color: var(--primary-light);
  transform: translateY(-6px);
}

/* Post Card Header */
.post-card-header {
  margin-bottom: 1.25rem;
}

.post-card-title-section {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.post-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
  color: var(--primary-color);
}

/* Post Card Metadata */
.post-card-meta {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.post-card-meta-group {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.meta-icon {
  font-size: 1.1rem;
  display: inline-block;
}

.meta-text {
  font-weight: 500;
  color: var(--text-color);
}

/* Excerpt Styling */
.post-card-excerpt {
  background: linear-gradient(135deg, #f0f9ff 0%, #f3f4f6 100%);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.excerpt-icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.excerpt-text {
  margin: 0;
  color: var(--text-color);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}

/* Content Preview */
.post-card-content-preview {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.preview-ellipsis {
  color: var(--primary-color);
  font-weight: 600;
}

/* Tags */
.post-card-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  color: var(--primary-color);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid var(--primary-light);
}

.post-tag:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.tag-icon {
  font-weight: 700;
}

/* Post Card Footer & Button */
.post-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.post-card-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.post-card-button:hover {
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.post-card-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.button-icon {
  font-size: 1.1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-lighter);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-state-title {
  color: var(--text-color);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.empty-state-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.empty-state-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Responsive All Posts */
@media (max-width: 640px) {
  .all-posts-hero {
    padding: 2.5rem 1.5rem;
  }

  .all-posts-hero-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .all-posts-hero-title {
    font-size: 1.75rem;
  }

  .all-posts-hero-subtitle {
    font-size: 0.95rem;
  }

  .post-card {
    padding: 1.5rem;
  }

  .post-card-title {
    font-size: 1.25rem;
  }

  .post-card-meta-group {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .empty-state {
    padding: 3rem 1.5rem;
  }

  .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .empty-state-title {
    font-size: 1.5rem;
  }
}

