/* Base styles */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Custom container width for larger screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Navbar customization */
.navbar-brand img {
  max-height: 40px;
  margin-right: 10px;
}

/* Card styling */
.card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Post grid styling */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-preview-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-preview-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-preview-card .card-text {
  flex: 1;
}

/* Profile section */
.profile-header {
  background-color: var(--light-color);
  padding: 30px 0;
  margin-bottom: 30px;
  border-radius: 8px;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.profile-stat-item {
  text-align: center;
}

.profile-stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}

.profile-stat-label {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Button styles */
.btn-follow {
  border-radius: 50px;
  padding: 8px 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* Post slideshow */
.carousel-caption {
  border-radius: 8px;
  padding: 15px;
  bottom: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  max-width: 80%;
  margin: 0 auto;
}

/* Comments section */
.comment-list {
  max-height: 500px;
  overflow-y: auto;
}

.markdown-content {
  line-height: 1.7;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

/* Form styling */
.form-floating label {
  color: var(--secondary-color);
}

/* Custom utilities */
.cursor-pointer {
  cursor: pointer;
}

.object-fit-cover {
  object-fit: cover;
}

/* Footer styling */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
  color: white;
  text-decoration: none;
}

/* Login & Register pages */
.auth-container {
  max-width: 450px;
  margin: 80px auto;
}

.auth-form {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo img {
  max-height: 60px;
}

/* Slide editor */
.slide-editor {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: white;
}

.slide-preview {
  border: 1px dashed #ccc;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  background-color: #f9f9f9;
}

.slide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

/* Error pages */
.error-container {
  text-align: center;
  padding: 100px 0;
}

.error-code {
  font-size: 8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0;
}

.error-message {
  font-size: 2rem;
  margin-bottom: 30px;
}
