/* Blog Styles - AdaTech */

/* === Base === */
.blog-page {
  font-family: 'Urbanist', sans-serif;
  background: #f7f7f7;
}

.blog-page * {
  font-family: 'Urbanist', sans-serif;
}

/* === Blog Header === */
.blog-header {
  background: linear-gradient(rgba(10, 11, 13, 0.75), rgba(10, 11, 13, 0.85)), url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?w=1600&q=80');
  background-size: cover;
  background-position: center;
  padding: 160px 0 80px;
  text-align: center;
}

.blog-header h1 {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.blog-header p {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
  white-space: nowrap;
}

/* === Blog Featured === */
.blog-featured {
  padding: 80px 0;
  background: #f7f7f7;
}

.blog-card-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
}

.blog-card-featured .blog-card-image {
  height: 100%;
}

.blog-card-featured .blog-card-image img {
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.blog-card-featured .blog-card-content {
  padding: 48px 48px 48px 0;
}

.blog-card-featured h2 {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-card-featured h2 a {
  color: #0a0b0d;
  text-decoration: none;
}

.blog-card-featured h2 a:hover {
  color: #f54e00;
}

.blog-card-featured p {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.0625rem;
  color: #5b616e;
  margin-bottom: 24px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-card-featured {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-card-featured .blog-card-image img {
    min-height: 250px;
  }

  .blog-card-featured .blog-card-content {
    padding: 32px;
  }
}

/* === Blog Grid === */
.blog-grid-section {
  padding: 40px 0 80px;
  background: #f7f7f7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* === Blog Card === */
.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.blog-card-image {
  display: block;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #f54e00;
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content {
  padding: 24px;
}

.blog-card-date {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.8125rem;
  color: #7c828a;
  display: block;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card h3 a {
  color: #0a0b0d;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: #f54e00;
}

.blog-card p {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.9375rem;
  color: #5b616e;
  line-height: 1.6;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f54e00;
  text-decoration: none;
  margin-top: 16px;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* === Load More === */
.blog-load-more {
  text-align: center;
  margin-top: 48px;
}

/* === Newsletter === */
.blog-newsletter {
  padding: 80px 0;
  background: #0a0b0d;
}

.newsletter-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-card h2 {
  font-family: 'Urbanist', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.newsletter-card p {
  font-family: 'Urbanist', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 100px;
  font-family: 'Urbanist', sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}

/* === Article Page === */
.article-page {
  font-family: 'Urbanist', sans-serif;
  background: #f7f7f7;
}

.article-header {
  background: #0a0b0d;
  padding: 140px 0 60px;
  text-align: center;
}

.article-header .container {
  max-width: 800px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.article-category {
  background: #f54e00;
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.article-header h1 {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.article-excerpt {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.article-hero {
  margin-top: -40px;
  padding: 0 20px;
}

.article-hero img {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
  border-radius: 16px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.article-content h2 {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a0b0d;
  margin: 48px 0 20px;
  line-height: 1.3;
}

.article-content h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #0a0b0d;
  margin: 36px 0 16px;
}

.article-content p {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.125rem;
  color: #3d3d3d;
  line-height: 1.8;
  margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.article-content li {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.125rem;
  color: #3d3d3d;
  line-height: 1.8;
  margin-bottom: 12px;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: #eef0f3;
  border-left: 4px solid #f54e00;
  border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
  font-size: 1.25rem;
  font-style: italic;
  color: #0a0b0d;
  margin: 0;
}

.article-content strong {
  font-weight: 600;
  color: #0a0b0d;
}

.article-content a {
  color: #f54e00;
  text-decoration: underline;
}

.article-content a:hover {
  text-decoration: none;
}

/* Article Footer */
.article-footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 60px;
  border-top: 1px solid #dee1e6;
  padding-top: 40px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.article-tag {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5b616e;
  background: #eef0f3;
  padding: 8px 16px;
  border-radius: 100px;
  text-decoration: none;
}

.article-tag:hover {
  background: #dee1e6;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-share span {
  font-family: 'Urbanist', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0b0d;
}

.article-share a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f3;
  border-radius: 50%;
  color: #5b616e;
  transition: all 0.2s ease;
}

.article-share a:hover {
  background: #f54e00;
  color: #fff;
}

/* Related Articles */
.related-articles {
  background: #ffffff;
  padding: 80px 0;
}

.related-articles h2 {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a0b0d;
  text-align: center;
  margin-bottom: 48px;
}

/* === Scroll to Top === */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #f54e00;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(245, 78, 0, 0.3);
}

.scroll-to-top:hover {
  background: #ff6a1a;
  transform: translateY(-2px);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* === Blog Navigation Overrides === */
.blog-page .nav,
.article-page .nav {
  background: #0a0b0d;
}

.blog-page .nav-logo-adatech .logo-text,
.article-page .nav-logo-adatech .logo-text {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  color: #ffffff;
}

.blog-page .nav-link,
.article-page .nav-link {
  font-family: 'Urbanist', sans-serif;
  color: #ffffff;
}

/* Mobile navigation for blog/article pages */
.blog-page .nav-toggle span,
.article-page .nav-toggle span {
  background: #ffffff;
}

@media (max-width: 768px) {
  .blog-page .nav-links,
  .article-page .nav-links {
    background: #0a0b0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .blog-page .nav-link,
  .article-page .nav-link {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

.blog-page .footer,
.article-page .footer {
  background: #0a0b0d;
}

.blog-page .footer *,
.article-page .footer * {
  font-family: 'Urbanist', sans-serif;
}

.blog-page .footer-title,
.article-page .footer-title {
  color: rgba(255, 255, 255, 0.5);
}

.blog-page .footer-links a,
.article-page .footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.blog-page .footer-links a:hover,
.article-page .footer-links a:hover {
  color: #ffffff;
}

.blog-page .footer-bottom,
.article-page .footer-bottom {
  color: rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* === Responsive Tablet === */
@media (max-width: 1024px) {
  .blog-header {
    padding: 140px 0 60px;
  }

  .blog-header p {
    white-space: normal;
    max-width: 600px;
    padding: 0 20px;
  }

  .blog-featured {
    padding: 60px 0;
  }

  .blog-grid-section {
    padding: 30px 0 60px;
  }

  .blog-newsletter {
    padding: 60px 0;
  }

  .article-header {
    padding: 120px 0 50px;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
  }

  .article-content h3 {
    font-size: 1.25rem;
    margin: 30px 0 14px;
  }

  .related-articles {
    padding: 60px 0;
  }

  .related-articles .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Responsive Mobile === */
@media (max-width: 640px) {
  .blog-header {
    padding: 120px 0 50px;
  }

  .blog-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .blog-header p {
    font-size: 1rem;
    white-space: normal;
    padding: 0 16px;
  }

  .blog-featured {
    padding: 40px 0;
  }

  .blog-grid-section {
    padding: 20px 0 50px;
  }

  .blog-grid {
    gap: 24px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-card h3 {
    font-size: 1rem;
  }

  .blog-card p {
    font-size: 0.875rem;
  }

  .blog-load-more {
    margin-top: 32px;
  }

  .blog-newsletter {
    padding: 50px 0;
  }

  .newsletter-card h2 {
    font-size: 1.5rem;
  }

  .newsletter-card p {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }

  /* Article Page Mobile */
  .article-header {
    padding: 110px 0 40px;
  }

  .article-header h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .article-excerpt {
    font-size: 1rem;
  }

  .article-hero {
    margin-top: -30px;
    padding: 0 16px;
  }

  .article-hero img {
    border-radius: 12px;
  }

  .article-content {
    padding: 40px 16px 60px;
  }

  .article-content h2 {
    font-size: 1.375rem;
    margin: 32px 0 14px;
  }

  .article-content h3 {
    font-size: 1.125rem;
    margin: 24px 0 12px;
  }

  .article-content p,
  .article-content li {
    font-size: 1rem;
  }

  .article-content blockquote {
    padding: 20px 24px;
    margin: 24px 0;
  }

  .article-content blockquote p {
    font-size: 1.0625rem;
  }

  .article-footer {
    padding: 0 16px 40px;
    padding-top: 32px;
  }

  .article-tags {
    margin-bottom: 24px;
  }

  .article-tag {
    font-size: 0.8125rem;
    padding: 6px 12px;
  }

  .related-articles {
    padding: 50px 0;
  }

  .related-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .related-articles .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Article meta mobile */
  .article-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .article-category {
    font-size: 0.6875rem;
    padding: 5px 10px;
  }

  .article-date {
    font-size: 0.8125rem;
  }

  /* Article share mobile */
  .article-share {
    flex-wrap: wrap;
    gap: 12px;
  }

  .article-share a {
    width: 36px;
    height: 36px;
  }
}

/* === Extra small screens === */
@media (max-width: 375px) {
  .blog-header h1 {
    font-size: 1.75rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .blog-card-content {
    padding: 16px;
  }

  .newsletter-card h2 {
    font-size: 1.375rem;
  }
}
