/* Blog Management Interface Styles */

/* Container Styles */
.posts-container,
.post-container,
.form-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Styles */
.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.posts-header h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0;
}

.admin-controls {
  display: flex;
  gap: 1rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(45deg, #ffd700, #9966cc);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: #dc3545;
  color: #ffffff;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-outline {
  background: transparent;
  color: #ffd700;
  border: 1px solid #ffd700;
}

.btn-outline:hover {
  background: #ffd700;
  color: #000;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
}

.post-header {
  margin-bottom: 1rem;
}

.post-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 400;
}

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

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

.post-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.post-excerpt {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* Individual Post View */
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.back-link {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: #9966cc;
}

.post-title {
  font-size: 3rem;
  font-weight: 300;
  color: #ffffff;
  margin: 1rem 0;
  line-height: 1.2;
}

.post-info {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.post-updated {
  margin-left: 1rem;
  font-style: italic;
}

.post-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

.post-footer {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.form-header {
  margin-bottom: 2rem;
}

.form-header h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 1rem 0 0.5rem 0;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin: 0;
}

.post-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
}

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

.form-label {
  display: block;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 300px;
  font-family: inherit;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ffffff;
}

.alert h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.alert ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.empty-state h2 {
  color: #ffffff;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .posts-container,
  .post-container,
  .form-container {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .posts-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .posts-header h1 {
    font-size: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .post-title {
    font-size: 2rem;
  }

  .post-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions {
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
} 