/* Blog Styles */

.blog-container {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Admin Header */
.admin-header {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
  border-bottom: 2px solid #396873;
}

.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text {
  font-weight: 600;
}

.admin-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: 1rem;
}

.admin-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.admin-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.logout-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
  margin-left: 0.5rem;
}

.blog-header {
  background: linear-gradient(135deg, #396873 0%, #474C59 100%);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.blog-nav {
  text-align: left;
  margin-bottom: 0.75rem;
}

.back-to-main {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.back-to-main:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

.blog-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-header p, .category-description {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.blog-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post-preview {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
}

.post-category a {
  font-weight: 600;
  text-decoration: none;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: #396873;
}

.post-summary {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.tag:hover {
  opacity: 0.8;
  color: white;
}

.tag.current {
  ring: 2px solid #396873;
  box-shadow: 0 0 0 2px #396873;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-bottom: 2px solid #396873;
  padding-bottom: 0.5rem;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.75rem;
}

.category-list a {
  display: block;
  padding: 0.5rem 0;
  color: #555;
  text-decoration: none;
  border-left: 3px solid transparent;
  padding-left: 1rem;
  transition: all 0.2s ease;
}

.category-list a:hover,
.category-list a.active {
  color: #396873;
  border-left-color: #396873;
  background-color: #f8f9fa;
  padding-left: 1.25rem;
}

.tag-cloud {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-cloud .tag {
  font-size: 0.8rem;
}

/* Admin Login Widget */
.admin-login-widget {
  border: 1px dashed #ddd;
  background: #f8f9fa;
  text-align: center;
}

.admin-login-content {
  padding: 0.5rem 0;
}

.admin-login-text {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.admin-login-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #396873;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.admin-login-link:hover {
  background: #2d5459;
  color: white;
}

/* Individual Blog Post */
.blog-post-detail {
  background: white;
}

.post-header {
  background: linear-gradient(135deg, #396873 0%, #474C59 100%);
  color: white;
  padding: 3rem 0;
}

.post-header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.post-header .post-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: white;
  text-align: center;
}

.post-header .post-summary {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-align: center;
  display: block;
  clear: both;
  width: 100%;
}

.post-info {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
  justify-content: center;
}

.post-info a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.post-info a:hover {
  color: white;
  text-decoration: underline;
}

.post-info .post-category a {
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.post-info .post-category a:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.post-featured-image {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-featured-image img:hover {
  transform: scale(1.02);
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
  color: #2c3e50;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
  border-left: 4px solid #396873;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-footer {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 2rem;
  border-top: 1px solid #eee;
}

.post-share {
  margin-bottom: 2rem;
}

.post-share h4 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-buttons a {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

.share-buttons a:hover {
  opacity: 0.8;
}

.share-twitter { background: #1da1f2; }
.share-facebook { background: #4267b2; }
.share-linkedin { background: #0077b5; }

.post-author-bio {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  background: #f8f9fa;
}

.author-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details h4 {
  margin: 0 0 0.25rem;
  color: #2c3e50;
}

.author-title {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.post-navigation {
  padding: 2rem 0;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #396873;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.back-to-blog:hover {
  background: #2d5459;
  color: white;
}

/* No posts state */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-posts h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 4rem 2rem;
}

/* Not found state */
.not-found {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.not-found h1 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.not-found .btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #396873;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.not-found .btn-primary:hover {
  background: #2d5459;
}

/* Admin Forms */
.admin-container {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.admin-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.admin-breadcrumb a {
  color: white;
  text-decoration: none;
}

.admin-breadcrumb a:hover {
  text-decoration: underline;
}

.admin-content {
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.admin-content-full-width {
  padding: 2rem;
  width: 100%;
  max-width: none;
}

.post-form {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.form-group-half {
  flex: 0 0 calc(50% - 0.75rem);
}

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #396873;
  box-shadow: 0 0 0 3px rgba(57, 104, 115, 0.1);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: -0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover:not(:disabled) {
  background: #5a6268;
  transform: translateY(-1px);
}

.btn-secondary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-cancel {
  color: #666;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-cancel:hover {
  color: #333;
}

.alert-success {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
}

.unauthorized {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.unauthorized h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.unauthorized .btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 1.5rem;
  background: #396873;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.unauthorized .btn-primary:hover {
  background: #2d5459;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .blog-header {
    padding: 2rem 0 1rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .post-header .post-title {
    font-size: 2rem;
  }
  
  .post-content {
    padding: 0 1rem;
  }
  
  .post-meta, .post-info {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .author-info {
    flex-direction: column;
    text-align: center;
  }
  
  .admin-nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .admin-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .admin-content {
    padding: 1rem;
  }
  
  .admin-content-full-width {
    padding: 1rem;
  }
  
  .post-form {
    padding: 1.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group-half {
    flex: 1;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-actions .btn-cancel {
    text-align: center;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .category-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .admin-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .actions-left,
  .actions-right {
    justify-content: center;
  }
  
  .actions-right {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* Mobile Table */
  .table-header {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem;
  }
  
  .table-header > *:not(:first-child) {
    display: none;
  }
  
  .table-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .col-status,
  .col-category,
  .col-date,
  .col-actions {
    justify-content: space-between;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
  }
  
  .col-status::before {
    content: "Status:";
    font-weight: 600;
    color: #666;
  }
  
  .col-category::before {
    content: "Category:";
    font-weight: 600;
    color: #666;
  }
  
  .col-date::before {
    content: "Date:";
    font-weight: 600;
    color: #666;
  }
  
  .col-actions::before {
    content: "Actions:";
    font-weight: 600;
    color: #666;
  }
}

/* Categories Management */
.admin-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.actions-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.actions-left h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: 600;
}

.actions-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-form-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #396873;
}

.category-form-card h3 {
  margin: 0 0 1.5rem 0;
  color: #2c3e50;
  font-size: 1.25rem;
}

.category-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e1e5e9;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-color-badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.category-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.category-slug {
  font-size: 0.85rem;
  color: #666;
  font-family: monospace;
  background: #f8f9fa;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.category-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.btn-icon:hover {
  background: #f8f9fa;
}

.btn-icon.btn-danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.category-description {
  color: #555;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.category-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.stat {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.category-link {
  font-size: 0.9rem;
  color: #396873;
  text-decoration: none;
  font-weight: 500;
}

.category-link:hover {
  text-decoration: underline;
}

.no-categories {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-categories h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.loading {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading .loading-spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 1rem;
}

/* Tag Input and Preview */
.tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.tag-preview {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #396873;
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Posts Table */
.posts-table {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 120px 150px 150px 120px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e1e5e9;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.875rem;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 120px 150px 150px 120px;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.table-row:hover {
  background: #f8f9fa;
}

.table-row:last-child {
  border-bottom: none;
}

.col-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.post-slug {
  font-size: 0.8rem;
  color: #666;
  font-family: monospace;
}

.col-status,
.col-category,
.col-date,
.col-actions {
  display: flex;
  align-items: center;
}

.col-date {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.col-actions {
  gap: 0.5rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.published {
  background: #10b981;
  color: white;
}

.status-badge.draft {
  background: #f59e0b;
  color: white;
}

.category-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-muted {
  color: #6b7280;
  font-style: italic;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-icon {
  font-size: 1.2rem;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: #396873;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  background: #2d5459;
  transform: translateY(-1px);
  color: white;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Compact Post Header Layout */
.post-meta-compact {
  margin-bottom: 1rem;
}

.post-meta-compact .post-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
  text-align: left;
  justify-content: flex-start;
}

.post-meta-compact .breadcrumb {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.post-details {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
  justify-content: flex-start;
}

.post-details span {
  display: inline-flex;
  align-items: center;
}

.post-details .post-category a {
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.post-details .post-category a:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

/* Responsive adjustments for compact layout */
@media (max-width: 768px) {
  .post-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}