/* Blog Page Specific Styles */

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: white;
  color: #0a0a0a;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Main Blog Layout */
.blog-main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 40px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 80px;
  padding-top: 60px;
}

.blog-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.4;
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 120px;
}

.blog-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Title */
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 40px;
  text-align: left;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Featured Article */
.featured-article {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.featured-article:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.featured-article:hover::before {
  left: 100%;
}

.featured-article .article-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

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

.featured-article:hover .article-image img {
  transform: scale(1.05);
}

.article-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ffab1d 0%, #ffab1d 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.featured-article .article-content {
  padding: 32px;
  position: relative;
  z-index: 2;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.article-category {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-read-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Article Content */
.article-title {
  margin: 0 0 12px 0;
}

.article-link {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.article-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.article-excerpt {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.article-excerpt p {
  margin: 0 0 12px 0;
}

.article-excerpt p:last-child {
  margin-bottom: 0;
}

/* Article Tags */
.article-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
}

/* Article Author */
.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.author-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.article-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.article-card:hover,
.article-card:focus-within {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.article-card:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.4s ease;
}

.article-card:hover::before {
  left: 100%;
}

.article-card .article-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.article-card .article-content {
  padding: 24px;
}

.article-card .article-link {
  font-size: 18px;
  font-weight: 600;
}

.article-card .article-excerpt {
  font-size: 14px;
  margin-bottom: 16px;
}

/* Read More Button */
.read-more-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 8px;
}

.read-more-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.read-more-button:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.read-more-button::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.read-more-button:hover::after {
  transform: translateX(4px);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.4s ease;
}

.category-card:hover::before {
  left: 100%;
}

.category-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.category-name {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
}

.category-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.category-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Newsletter Section */
.newsletter-section {
  display: flex;
  justify-content: center;
}

.newsletter-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 600px;
  width: 100%;
  transition: all 0.3s ease;
}

.newsletter-container:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.newsletter-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 0 12px 0;
}

.newsletter-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 32px 0;
}

.newsletter-form {
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-button {
  background: white;
  color: #0a0a0a;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.newsletter-privacy {
  text-align: center;
}

.privacy-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.privacy-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: white;
}

.newsletter-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Load More Section */
.load-more-section {
  text-align: center;
}

.load-more-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.load-more-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.button-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.load-more-button:hover .button-icon {
  transform: translateY(2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-main {
    padding: 24px 24px 0;
  }

  .blog-header {
    margin-bottom: 60px;
    padding-top: 40px;
  }

  .blog-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .blog-subtitle {
    font-size: 16px;
  }

  .blog-content {
    gap: 60px;
    margin-bottom: 80px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .featured-article .article-image {
    height: 240px;
  }

  .featured-article .article-content {
    padding: 24px;
  }

  .article-link {
    font-size: 20px;
  }

  .article-excerpt {
    font-size: 14px;
  }

  .article-meta {
    gap: 12px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-card .article-image {
    height: 180px;
  }

  .article-card .article-content {
    padding: 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .category-card {
    padding: 20px;
  }

  .category-icon {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .category-name {
    font-size: 16px;
  }

  .newsletter-container {
    padding: 32px 24px;
  }

  .newsletter-title {
    font-size: 24px;
  }

  .newsletter-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .form-group {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-stats {
    gap: 24px;
  }

  .load-more-button {
    padding: 14px 28px;
    font-size: 15px;
  }

  .read-more-button {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .blog-main {
    padding: 16px 16px 0;
  }

  .blog-header {
    margin-bottom: 40px;
    padding-top: 24px;
  }

  .blog-content {
    gap: 40px;
    margin-bottom: 60px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .featured-article .article-image {
    height: 200px;
  }

  .featured-article .article-content {
    padding: 20px;
  }

  .article-link {
    font-size: 18px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article-tags {
    gap: 6px;
  }

  .tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  .article-card .article-image {
    height: 160px;
  }

  .article-card .article-content {
    padding: 16px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    padding: 16px;
  }

  .category-icon {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .category-name {
    font-size: 15px;
  }

  .category-description {
    font-size: 13px;
  }

  .newsletter-container {
    padding: 24px 16px;
  }

  .newsletter-title {
    font-size: 20px;
  }

  .newsletter-stats {
    gap: 16px;
  }

  .stat-item {
    gap: 2px;
  }

  .stat-number {
    font-size: 14px;
  }

  .stat-label {
    font-size: 11px;
  }

  .load-more-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .read-more-button {
    padding: 8px 14px;
    font-size: 12px;
  }
}
