/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Base styles for blog pages */
/* Removed body styles to avoid conflicts with main layout */

.blog-main-content {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 20px;
  background-color: #f4f4f4;
  color: #333;
}

.blog-main-content h1 {
  color: #0056b3;
  margin-bottom: 20px;
}

.blog-main-content h2 {
  color: #0056b3;
  margin-top: 0;
}

.blog-main-content p {
  margin-bottom: 10px;
}

.blog-main-content a {
  color: #007bff;
  text-decoration: none;
}

.blog-main-content a:hover {
  text-decoration: underline;
}

/* Styles for individual blog post containers in index */
.blog-post-item {
  background: #fff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Styles for single blog post content in show */
.blog-content-wrapper {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-main-content {
    margin: 10px;
  }

  .blog-post-item, .blog-content-wrapper {
    padding: 10px;
    margin-left: 5px;
    margin-right: 5px;
  }

  .blog-main-content h1 {
    font-size: 1.8em;
  }

  .blog-main-content h2 {
    font-size: 1.5em;
  }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* TipTap admin editor typography tweaks */
.tiptap-content {
  line-height: 1.75;
  color: #1f2937; /* slate-800 */
}

.tiptap-content h2 {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.tiptap-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.tiptap-content h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.tiptap-content ul,
.tiptap-content ol {
  padding-left: 1.75rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.tiptap-content ul {
  list-style: disc;
}

.tiptap-content ol {
  list-style: decimal;
}

.tiptap-content li {
  margin-bottom: 0.35rem;
}

/* Flowbite datepicker disabled days */
.datepicker .datepicker-cell.disabled,
.datepicker-dropdown .datepicker-cell.disabled,
.datepicker .day.disabled,
.datepicker-dropdown .day.disabled {
  color: #9ca3af;
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.datepicker .datepicker-cell.text-fg-disabled,
.datepicker-dropdown .datepicker-cell.text-fg-disabled,
.datepicker .text-fg-disabled,
.datepicker-dropdown .text-fg-disabled {
  color: #9ca3af;
  background-color: #f3f4f6;
  opacity: 0.6;
}

.datepicker .datepicker-cell.disabled:hover,
.datepicker-dropdown .datepicker-cell.disabled:hover,
.datepicker .day.disabled:hover,
.datepicker-dropdown .day.disabled:hover {
  color: #9ca3af;
  background-color: #f3f4f6;
}

.datepicker .datepicker-cell.day:not(.disabled),
.datepicker-dropdown .datepicker-cell.day:not(.disabled) {
  color: #111827;
}