/* ============================================
   BLOG STYLES - Light, Readable Design
   ============================================ */

:root {
  --blog-bg-primary: #000000;
  --blog-bg-secondary: #1a1a1a;
  --blog-text-primary: #fef3c7;
  --blog-text-secondary: #d4c5a0;
  --blog-accent: #FFC700;
  --blog-border: #333333;
  --blog-shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --blog-shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --blog-shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

/* ============================================
   BLOG LIST VIEW
   ============================================ */

.blog-list-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  background: #000000;
  min-height: 100%;
  overflow-y: visible;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.blog-header {
  text-align: center;
  padding: 20px 10px;
  background: #000000;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: none;
}

.blog-header h2 {
  font-size: 2.5rem;
  color: #d0d0d0;
  margin-bottom: 10px;
  font-weight: 700;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin: 0;
}

/* Categories Tabs */
.blog-categories {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 30px 0;
  flex-wrap: nowrap;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 50px;
  align-items: center;
}

/* Desktop - center and wrap */
@media (min-width: 769px) {
  .blog-categories {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.blog-category-tab {
  padding: 10px 24px;
  background: #FFC700;
  color: #000;
  border: 2px solid #000;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: none;
}

.blog-category-tab:hover {
  background: #FFD700;
  color: #000;
  border-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 199, 0, 0.3);
}

.blog-category-tab.active {
  background: #FFC700;
  color: #000;
  border: 3px solid #000;
  box-shadow: 0 0 0 2px #FFC700;
}

/* Blog Posts Grid - 2 Columns */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 10px;
  width: 100%;
  max-width: 100%;
}

.blog-post-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #333333;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 199, 0, 0.2);
  border-color: #FFC700;
}

.blog-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1a1a1a;
}

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

.blog-post-card:hover .blog-post-image img {
  transform: scale(1.05);
}

.blog-post-content {
  padding: 20px;
}

.blog-post-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-post-category {
  background: #FFC700;
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #000;
  font-size: 12px;
  font-weight: 700;
}

.blog-post-date {
  color: #888888;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.blog-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d0d0d0;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-post-excerpt {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #333333;
  font-size: 13px;
  color: #888888;
}

/* Empty State */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #1a1a1a;
  border-radius: 12px;
}

.blog-empty .empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #666666;
}

.blog-empty h3 {
  font-size: 1.5rem;
  color: #d0d0d0;
  margin-bottom: 10px;
}

.blog-empty p {
  color: #888888;
  font-size: 1rem;
}

/* ============================================
   BLOG POST VIEW - Light & Readable
   ============================================ */

.blog-post-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #1a1a1a;
}

/* Navigation */
.blog-post-navigation {
  margin-bottom: 20px;
}

.blog-back-btn {
  background: #000000;
  border: 2px solid #333333;
  color: #d0d0d0;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: none;
}

.blog-back-btn:hover {
  background: #FFC700;
  color: #000;
  border-color: #FFC700;
  transform: translateX(-4px);
}

/* Cover Image - Corner Style */
.blog-post-cover {
  float: right;
  width: 300px;
  margin: 0 0 20px 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.blog-post-cover img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.blog-post-cover img:hover {
  transform: scale(1.05);
}

/* Post Header Container - Flex Layout */
.blog-post-header-container {
  display: flex;
  gap: 24px;
  background: #000000;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: none;
  align-items: flex-start;
}

/* Post Header - Left Side */
.blog-post-header {
  flex: 1;
  min-width: 0;
}

.blog-post-header h1 {
  font-size: 2.25rem;
  color: #d0d0d0;
  margin-bottom: 16px;
  line-height: 1.3;
  font-weight: 800;
}

/* Gallery Wrapper - Right Side */
.blog-post-gallery-wrapper {
  flex-shrink: 0;
  width: 350px;
}

.blog-post-gallery {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #333333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.blog-post-header .blog-post-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #b0b0b0;
  font-size: 14px;
}

.blog-post-header .blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-header .blog-post-category {
  background: #FFC700;
  color: #000;
  padding: 6px 14px;
  border-radius: 4px;
  border: 2px solid #000;
  font-weight: 700;
}

/* Post Body - Light & Readable */
.blog-post-body {
  background: #000000;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: none;
  line-height: 1.8;
  font-size: 16px;
  color: #d0d0d0;
}

.blog-post-body h2 {
  font-size: 1.75rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: #d0d0d0;
  font-weight: 700;
  clear: both;
}

.blog-post-body h3 {
  font-size: 1.4rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #d0d0d0;
  font-weight: 600;
}

.blog-post-body p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.blog-post-body ul, .blog-post-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.blog-post-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-post-body blockquote {
  border-left: 4px solid #FFC700;
  padding: 16px 24px;
  margin: 24px 0;
  background: #1a1a1a;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #b0b0b0;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.blog-post-body code {
  background: #1a1a1a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #FFC700;
}

.blog-post-body strong {
  font-weight: 700;
  color: #d0d0d0;
}

/* Actions */
.blog-post-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.blog-action-btn {
  background: #000000;
  border: 2px solid #333333;
  color: #d0d0d0;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: none;
}

.blog-action-btn:hover {
  background: #FFC700;
  color: #000;
  border-color: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.blog-action-btn.favorited {
  background: #FFC700;
  color: #000;
  border-color: #FFC700;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.blog-comments-section {
  background: #000000;
  padding: 30px;
  border-radius: 12px;
  box-shadow: none;
  clear: both;
}

.blog-comments-section h3 {
  font-size: 1.5rem;
  color: #d0d0d0;
  margin-bottom: 24px;
  font-weight: 700;
}

/* Comment Form */
.blog-comment-form {
  margin-bottom: 32px;
  padding: 24px;
  background: #1a1a1a;
  border-radius: 8px;
}

.blog-comment-user-greeting {
  margin-bottom: 12px;
  color: #b0b0b0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 2px solid #333333;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
  background: #000000;
  color: #d0d0d0;
}

.blog-comment-form textarea:focus {
  outline: none;
  border-color: #FFC700;
}

.blog-comment-submit {
  background: #FFC700;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: none;
}

.blog-comment-submit:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Auth Required */
.blog-comment-auth-required {
  padding: 24px;
  background: #1a1a1a;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 24px;
}

.blog-comment-auth-required p {
  margin-bottom: 16px;
  color: #b0b0b0;
}

.btn-primary {
  background: #FFC700;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

/* Comments List */
.blog-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-comment {
  padding: 20px;
  background: #1a1a1a;
  border-radius: 8px;
  border-left: 3px solid #FFC700;
}

.blog-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-comment-author {
  font-weight: 600;
  color: #d0d0d0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-comment-date {
  font-size: 13px;
  color: #b0b0b0;
}

.blog-comment-body {
  color: #d0d0d0;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-comment-actions {
  display: flex;
  gap: 12px;
}

.blog-comment-like,
.blog-comment-reply {
  background: none;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.blog-comment-like:hover,
.blog-comment-reply:hover {
  background: #000000;
  color: #FFC700;
}

.blog-comments-empty {
  text-align: center;
  padding: 20px 10px;
  color: #b0b0b0;
}

.blog-comments-empty i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .blog-post-cover {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .blog-post-header-container {
    flex-direction: column;
  }

  .blog-post-gallery-wrapper {
    width: 100%;
    order: 2;
  }

  .blog-post-header {
    order: 1;
  }

  .blog-post-header h1 {
    font-size: 1.75rem;
  }

  .blog-post-body {
    padding: 20px 24px;
  }

  .blog-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .blog-categories {
    gap: 8px;
    padding: 0 10px;
  }

  .blog-category-tab {
    padding: 8px 16px;
  }
}

/* Tablet - 3 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ============================================
   ERROR STATES
   ============================================ */

.blog-error {
  text-align: center;
  padding: 60px 20px;
  background: #000000;
  border-radius: 12px;
  box-shadow: none;
}

.blog-error h3 {
  font-size: 1.5rem;
  color: #d0d0d0;
  margin-bottom: 12px;
}

.blog-error p {
  color: #b0b0b0;
  margin-bottom: 20px;
}

.btn-secondary {
  background: #1a1a1a;
  color: #d0d0d0;
  border: 2px solid #333333;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #000000;
  border-color: #FFC700;
  color: #FFC700;
}