/* Custom styles for Roxana de Los Angeles Website */

/* Banner-style sections for homepage */
.banner-section {
  display: flex;
  align-items: center;
  padding: 4em 0;
  border-bottom: solid 2px rgba(210, 215, 217, 0.75);
}

.banner-section .content {
  flex-grow: 1;
  margin-right: 4em;
}

.banner-section .image.object {
  border-radius: 0;
  width: 40%;
  flex-shrink: 0;
}

.banner-section .image.object img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Responsive adjustments for banner sections */
@media screen and (max-width: 980px) {
  .banner-section {
    flex-direction: column;
    text-align: center;
    padding: 3em 0;
  }

  .banner-section .content {
    margin-right: 0;
    margin-bottom: 3em;
  }

  .banner-section .image.object {
    width: 100%;
    max-width: 400px;
  }
}

@media screen and (max-width: 736px) {
  .banner-section {
    padding: 2em 0;
  }

  .banner-section .content {
    margin-bottom: 2em;
  }
}

/* Blog-specific styles */
.posts .meta {
  color: #999;
  font-size: 0.8em;
  font-style: italic;
  margin-top: 0.5em;
}

.post-header {
  margin-bottom: 2em;
}

.post-header .meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 1em;
}

/* Social sharing buttons */
.actions.special {
  text-align: center;
  margin: 2em 0;
}

.actions.special .button {
  margin: 0 0.5em;
}

/* Enhanced blockquotes for quotes */
blockquote {
  border-left: 4px solid #f56565;
  padding-left: 1.5em;
  font-style: italic;
  font-size: 1.1em;
  color: #555;
}

/* Table of contents styling */
.links li {
  padding: 0.3em 0;
}

.links a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.links a:hover {
  color: #f56565;
}

/* Newsletter signup form styling */
#sidebar form .field input[type="email"] {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Enhanced post cards */
.posts article {
  border-bottom: 1px solid #eee;
  padding-bottom: 2em;
  margin-bottom: 2em;
}

.posts article:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Responsive improvements */
@media screen and (max-width: 736px) {
  .actions.special .button {
    display: block;
    margin: 0.5em 0;
    width: 100%;
  }

  .post-header h1 {
    font-size: 1.8em;
  }
}

/* Featured post styling */
#banner .content {
  padding-right: 2em;
}

#banner .content h2 {
  color: #333;
  margin-bottom: 0.5em;
}

#banner .content p {
  color: #666;
  font-size: 0.9em;
}

/* Category and tag styling */
.category-tags {
  margin-bottom: 1em;
}

.category-tags .tag {
  background: #f56565;
  color: white;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  font-size: 0.8em;
  margin-right: 0.5em;
  text-decoration: none;
}

.category-tags .tag:hover {
  background: #e53e3e;
}

/* Loading animations for dynamic content */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Pagination improvements */
.pagination {
  margin-top: 3em;
}

.pagination .page.active {
  background: #f56565;
  color: white;
  border-color: #f56565;
}

/* Custom box styling for callouts */
.box.highlight {
  border-left: 4px solid #f56565;
  background: #fff5f5;
}

.box.tip {
  border-left: 4px solid #38a169;
  background: #f0fff4;
}

.box.warning {
  border-left: 4px solid #d69e2e;
  background: #fffbeb;
}

/* ============================================
   PHASE 4: Dynamic Blog Functionality Styles
   ============================================ */

/* Results information */
.results-info {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 1.5em;
  padding: 0.5em 0;
  border-bottom: 1px solid #eee;
  text-align: center;
}

/* Loading skeleton animation */
.loading-skeleton {
  margin-top: 2em;
}

.skeleton-item {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 2em;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Error message styling */
.error-message {
  text-align: center;
  padding: 3em 2em;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  margin: 2em 0;
}

.error-message h3 {
  color: #c53030;
  margin-bottom: 1em;
}

.error-message p {
  color: #666;
  margin-bottom: 1.5em;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 4em 2em;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 2em auto;
}

.empty-state h3 {
  color: #333;
  margin-bottom: 1em;
}

.empty-state p {
  color: #666;
  margin-bottom: 1em;
}

.empty-state a {
  color: #f56565;
  text-decoration: underline;
}

.empty-state a:hover {
  color: #e53e3e;
}

/* Enhanced search styling */
#search {
  transition: all 0.3s ease;
}

#search:focus {
  border-color: #f56565;
  box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

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

/* Enhanced pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3em;
  flex-wrap: wrap;
  gap: 0.5em;
}

.pagination li {
  margin: 0;
}

.pagination .page {
  min-width: 2.5em;
  text-align: center;
  transition: all 0.3s ease;
}

.pagination .page:hover:not(.active) {
  background: #f0f0f0;
}

.pagination .page.active {
  background: #f56565;
  color: white;
  border-color: #f56565;
  font-weight: bold;
}

.pagination .button.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Filter buttons (for future implementation) */
.filter-buttons {
  margin-bottom: 2em;
  text-align: center;
}

.filter-btn {
  display: inline-block;
  padding: 0.5em 1em;
  margin: 0.25em;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.filter-btn:hover {
  background: #e9ecef;
  color: #333;
}

.filter-btn.active {
  background: #f56565;
  border-color: #f56565;
  color: white;
}

/* Post meta enhancements */
.posts article .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: #999;
  margin-top: 1em;
}

/* Lazy loading image placeholder */
img[loading="lazy"] {
  background: #f0f0f0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].lazy {
  opacity: 0.6;
}

/* Mobile responsiveness for dynamic features */
@media screen and (max-width: 736px) {
  .results-info {
    font-size: 0.8em;
    text-align: left;
  }

  .pagination {
    font-size: 0.9em;
  }

  .pagination .page {
    min-width: 2.2em;
  }

  .filter-buttons {
    text-align: left;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5em;
  }

  .filter-btn {
    display: inline-block;
    margin-right: 0.5em;
  }

  .empty-state,
  .error-message {
    padding: 2em 1em;
  }
}

/* Search form enhancements */
form[action="blog.html"] {
  position: relative;
}


/* Smooth transitions for all interactive elements */
.posts article,
.pagination a,
.filter-btn,
#search {
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
.pagination a:focus,
.filter-btn:focus,
#search:focus {
  outline: 2px solid #f56565;
  outline-offset: 2px;
}

/* ============================================
   DYNAMIC POST PAGE STYLES
   ============================================ */

/* Post-specific loading skeleton */
.skeleton-title {
  height: 2.5em;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 1em;
}

.skeleton-meta {
  height: 1.2em;
  width: 60%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 2em;
}

.skeleton-content {
  height: 1em;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 1em;
}

.skeleton-content.short {
  width: 70%;
}

/* Post content styling */
.post-content {
  margin-top: 2em;
}

.post-content h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  color: #333;
}

.post-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #555;
}

.post-content h4 {
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  color: #666;
}

/* Post excerpt styling */
.post-excerpt {
  background: #f8f9fa;
  padding: 1.5em;
  border-left: 4px solid #f56565;
  margin: 2em 0;
  border-radius: 0 8px 8px 0;
}

.post-excerpt p {
  margin: 0;
  font-style: italic;
  color: #666;
  font-size: 1.1em;
}

/* Featured image styling */
.featured-image {
  margin: 2em 0;
  text-align: center;
}

.featured-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Post tags styling */
.post-tags {
  margin: 2em 0;
  padding-top: 1em;
  border-top: 1px solid #eee;
}

.post-tags .tag {
  display: inline-block;
  background: #f56565;
  color: white;
  padding: 0.3em 0.8em;
  border-radius: 15px;
  font-size: 0.85em;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-tags .tag:hover {
  background: #e53e3e;
  transform: translateY(-1px);
}

/* Author bio and related posts (for future implementation) */
.author-bio {
  background: #f8f9fa;
  padding: 2em;
  border-radius: 8px;
  margin: 3em 0;
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
}

.author-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-content h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #333;
}

.related-posts {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 2px solid #eee;
}

.related-posts .posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin-top: 1.5em;
}

/* Mobile responsiveness for post page */
@media screen and (max-width: 736px) {
  .post-excerpt {
    padding: 1em;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
    padding: 1.5em;
  }

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

  .featured-image img {
    border-radius: 4px;
  }
}
