/* Blog Post Styles */

/* Main blog post container */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  .blog-post {
    padding: 40px 20px;
  }
}

/* Blog Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #4A9EFF;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .blog-breadcrumb {
    font-size: 13px;
    margin-bottom: 24px;
  }
  
  .breadcrumb-current {
    max-width: 200px;
  }
}

/* Blog Post Header */
.blog-post-header {
  margin-bottom: 48px;
}

.blog-post-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  .blog-post-title {
    font-size: 36px;
  }
}

/* Blog Post Meta Information */
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 32px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.blog-post-date {
  color: rgba(255, 255, 255, 0.8);
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-post-author .author-link {
  color: #4A9EFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-author .author-link:hover {
  color: #6BB0FF;
  text-decoration: underline;
}

/* Blog Post Thumbnail */
.blog-post-thumbnail {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}

.blog-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Blog Post Summary */
.blog-post-summary {
  margin-bottom: 40px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #FF6B35;
  border-radius: 4px;
}

.blog-post-summary .summary-text {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

@media screen and (max-width: 767px) {
  .blog-post-summary {
    padding: 20px;
  }
  
  .blog-post-summary .summary-text {
    font-size: 16px;
  }
}

/* Blog Post Body */
.blog-post-body {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 60px;
}

.blog-post-body p {
  margin: 0 0 8px 0;
}

.blog-post-body h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 48px 0 24px 0;
  color: #ffffff;
  line-height: 1.3;
}

.blog-post-body h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 20px 0;
  color: #ffffff;
  line-height: 1.4;
}

.blog-post-body h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px 0;
  color: #ffffff;
  line-height: 1.4;
}

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

.blog-post-body li {
  margin: 4px 0;
  line-height: 1.7;
}

.blog-post-body ul li {
  list-style-type: disc;
}

.blog-post-body ol li {
  list-style-type: decimal;
}

.blog-post-body a {
  color: #4A9EFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-body a:hover {
  color: #6BB0FF;
  text-decoration: underline;
}

.blog-post-body strong {
  font-weight: 600;
  color: #ffffff;
}

.blog-post-body em {
  font-style: italic;
}

.blog-post-body code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.blog-post-body pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.blog-post-body pre code {
  background: transparent;
  padding: 0;
}

.blog-post-body blockquote {
  border-left: 4px solid #FF6B35;
  padding-left: 24px;
  margin: 24px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

/* Tables within blog post body */
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-body table thead {
  background: rgba(255, 255, 255, 0.08);
}

.blog-post-body table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.blog-post-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.blog-post-body table tbody tr:last-child td {
  border-bottom: none;
}

.blog-post-body table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Images within blog post body */
.blog-post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 32px auto;
  border-radius: 8px;
}

@media screen and (max-width: 767px) {
  .blog-post-body {
    font-size: 16px;
  }
  
  .blog-post-body h2 {
    font-size: 28px;
    margin: 40px 0 20px 0;
  }
  
  .blog-post-body h3 {
    font-size: 22px;
    margin: 32px 0 16px 0;
  }
  
  .blog-post-body h4 {
    font-size: 18px;
    margin: 24px 0 12px 0;
  }
  
  .blog-post-body table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .blog-post-body table thead {
    display: table-header-group;
  }
  
  .blog-post-body table tbody {
    display: table-row-group;
  }
  
  .blog-post-body table tr {
    display: table-row;
  }
  
  .blog-post-body table th,
  .blog-post-body table td {
    display: table-cell;
    padding: 10px 12px;
  }
}

/* Blog Post Footer */
.blog-post-footer {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Author Bio Section */
.blog-post-author-bio {
  margin-top: 40px;
}

.blog-post-author-bio h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #ffffff;
}

.author-bio-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-bio-text {
  flex: 1;
}

.author-bio-text h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.author-bio-text h4 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-bio-text h4 a:hover {
  color: #4A9EFF;
}

.author-bio-text p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.8);
}

.author-social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.author-social-links .social-link {
  color: #4A9EFF;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.author-social-links .social-link:hover {
  color: #6BB0FF;
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .blog-post-footer {
    margin-top: 40px;
    padding-top: 32px;
  }
  
  .author-bio-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .author-avatar {
    width: 60px;
    height: 60px;
  }
  
  .blog-post-author-bio h3 {
    font-size: 20px;
  }
  
  .author-bio-text h4 {
    font-size: 18px;
  }
}

/* Author Page Styles */
.author-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  .author-page {
    padding: 40px 20px;
  }
}

.author-header {
  margin-bottom: 60px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.author-avatar-large {
  flex-shrink: 0;
}

.author-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #ffffff;
  line-height: 1.2;
}

.author-bio {
  margin-bottom: 24px;
}

.author-bio p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.author-posts {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-posts h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 32px 0;
  color: #ffffff;
}

.author-post-item {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.author-post-item h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

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

.author-post-item h3 a:hover {
  color: #4A9EFF;
}

.author-post-item .post-date {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.author-post-item .post-summary {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

@media screen and (max-width: 767px) {
  .author-header {
    flex-direction: column;
    gap: 24px;
  }
  
  .author-image {
    width: 100px;
    height: 100px;
  }
  
  .author-name {
    font-size: 32px;
  }
  
  .author-bio p {
    font-size: 16px;
  }
  
  .author-posts {
    margin-top: 40px;
    padding-top: 32px;
  }
  
  .author-posts h2 {
    font-size: 28px;
  }
  
  .author-post-item h3 {
    font-size: 20px;
  }
}

/* Blog Index Page Styles */
.blog-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  .blog-index {
    padding: 40px 20px;
  }
}

.blog-index-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-index-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #ffffff;
  line-height: 1.2;
}

.blog-index-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 767px) {
  .blog-index-title {
    font-size: 36px;
  }
  
  .blog-index-description {
    font-size: 16px;
  }
}

/* Blog Category Filter */
.blog-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 40px 0 48px 0;
  padding: 0 24px;
}

.blog-filter-btn {
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.blog-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-2px);
}

.blog-filter-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(74, 158, 255, 0.2) 100%);
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

@media screen and (max-width: 767px) {
  .blog-category-filter {
    margin: 32px 0 40px 0;
    padding: 0 12px;
    gap: 8px;
  }
  
  .blog-filter-btn {
    padding: 8px 20px;
    font-size: 14px;
  }
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media screen and (max-width: 991px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Blog Post Card */
.blog-post-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 107, 53, 0.3);
}

.blog-post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Blog Post Card Image */
.blog-post-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

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

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

.blog-post-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(74, 158, 255, 0.2) 100%);
}

.placeholder-content {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Blog Post Card Content */
.blog-post-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-card-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #ffffff;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.blog-post-card:hover .blog-post-card-title {
  color: #4A9EFF;
}

.blog-post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.blog-post-card-date {
  color: rgba(255, 255, 255, 0.6);
}

.blog-post-card-author {
  color: rgba(255, 255, 255, 0.6);
}

.blog-post-card-summary {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .blog-post-card-image {
    height: 200px;
  }
  
  .blog-post-card-content {
    padding: 20px;
  }
  
  .blog-post-card-title {
    font-size: 20px;
  }
  
  .blog-post-card-summary {
    font-size: 15px;
  }
}
