/* Article Details Styles - Light Version */
:root {
  --primary: #ffffff;
  --secondary: #6b7280;
  --accent: #3b82f6;
  --electric: #6366f1;
  --light: #f9fafb;
  --dark: #1f2937;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-hover: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: #4b5563;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
    url('https://www.transparenttextures.com/patterns/clean-textile.png');
  z-index: -1;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header & Navigation - Consistent with other pages */
header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid #e5e7eb !important;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1003;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: var(--transition);
  padding: 8px 0;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, var(--accent), var(--electric));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--electric));
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* Mobile Menu Styles - Updated from media.css */
nav .mobile-menu-toggle {
  display: none !important;
  background: linear-gradient(90deg, var(--accent), var(--electric)) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  padding: 12px !important;
  z-index: 1002 !important;
  position: relative !important;
  width: 50px !important;
  height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

nav .mobile-menu-toggle:hover {
  transform: scale(1.05) !important;
}

.mobile-nav {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 1001 !important;
  padding: 100px 20px 40px !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow-y: auto !important;
}

.mobile-nav.active {
  display: flex !important;
}

.mobile-nav-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  width: 100% !important;
  max-width: 400px !important;
}

.mobile-nav-links a {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  text-decoration: none !important;
  padding: 15px 25px !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
  background: rgba(59, 130, 246, 0.05) !important;
  border: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.mobile-nav-links a:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--accent) !important;
  transform: translateX(5px) !important;
}

.mobile-nav .nav-cta {
  background: linear-gradient(90deg, var(--accent), var(--electric)) !important;
  color: white !important;
  margin-top: 20px !important;
  width: 100% !important;
  max-width: 400px !important;
  text-align: center !important;
  padding: 16px !important;
  border-radius: 12px !important;
}

.mobile-menu-close {
  position: absolute !important;
  top: 30px !important;
  right: 30px !important;
  background: rgba(59, 130, 246, 0.1) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  color: #1f2937 !important;
  cursor: pointer !important;
  z-index: 1003 !important;
  transition: all 0.3s ease !important;
}

.mobile-menu-close:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  transform: rotate(90deg) !important;
}


.mobile-menu-close {
  display: none !important;
}


.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1000 !important;
  display: none !important;
}

.mobile-menu-overlay.active {
  display: block !important;
}


/* Article Detail Section - Light version */
.article-detail {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 60px 0;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  position: relative;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.detail-header h2 {
  font-size: 2.2rem;
  background: linear-gradient(to right, #1f2937, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--glass-border);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #4b5563;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.back-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  transform: translateX(-3px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .detail-content {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-featured {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow);
}

.detail-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.detail-featured:hover img {
  transform: scale(1.03);
}

.detail-text {
  padding: 20px 0;
}

.article-meta {
  margin-bottom: 30px;
}

.article-category {
  display: inline-block;
  padding: 6px 15px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.article-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  color: #1f2937;
}

.article-date {
  color: #6b7280;
  font-size: 0.95rem;
}

.article-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 30px;
}

.article-content h2, 
.article-content h3, 
.article-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #1f2937;
  position: relative;
  padding-bottom: 10px;
}

.article-content h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--electric));
  border-radius: 10px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content img {
  max-width: 100%;
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.article-tags {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.9rem;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-share span {
  font-weight: 600;
  color: #1f2937;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #6b7280;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  
  .detail-content {
    grid-template-columns: 1fr;
  }
  
  .detail-featured {
    height: 350px;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .detail-header h2 {
    font-size: 2rem;
    order: 2;
  }
  
  .back-btn {
    order: 1;
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .article-detail {
    padding: 30px 20px;
    margin: 40px 0;
    border-radius: 15px;
  }
  
  .detail-featured {
    height: 300px;
  }
  
  .detail-header h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .article-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .article-avatar {
    width: 50px;
    height: 50px;
  }
  
  .social-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .social-share span {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }
  
  nav {
    padding: 15px 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .article-detail {
    padding: 20px 15px;
    margin: 20px 0;
    border-radius: 12px;
  }
  
  .detail-featured {
    height: 250px;
    border-radius: 15px;
  }
  
  .detail-header h2 {
    font-size: 1.6rem;
  }
  
  .back-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .article-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .article-content h2, 
  .article-content h3, 
  .article-content h4 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 12px;
  }
  
  .article-author-info h4 {
    font-size: 1rem;
  }
  
  .article-date {
    font-size: 0.9rem;
  }
  
  .tag {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
  
  .social-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .article-detail {
    padding: 15px 10px;
    margin: 15px 0;
  }
  
  .detail-header {
    gap: 15px;
  }
  
  .detail-header h2 {
    font-size: 1.4rem;
  }
  
  .detail-featured {
    height: 220px;
  }
  
  .article-content {
    font-size: 0.9rem;
  }
  
  .article-content h2, 
  .article-content h3, 
  .article-content h4 {
    font-size: 1.2rem;
  }
  
  .article-meta {
    margin-bottom: 20px;
  }
  
  .article-author {
    gap: 8px;
  }
  
  .article-avatar {
    width: 45px;
    height: 45px;
  }
  
  .social-share {
    gap: 10px;
  }
  
  .social-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Tablet specific adjustments */
@media (min-width: 577px) and (max-width: 991px) {
  .detail-content {
    gap: 30px;
  }
  
  .detail-featured {
    height: 320px;
  }
  
  .article-content {
    font-size: 1.05rem;
  }
  
  .detail-header h2 {
    font-size: 2rem;
  }
}

/* Large mobile specific adjustments */
@media (min-width: 481px) and (max-width: 576px) {
  .article-detail {
    padding: 25px 18px;
  }
  
  .detail-featured {
    height: 280px;
  }
  
  .detail-header h2 {
    font-size: 1.5rem;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .detail-featured {
    height: 250px;
  }
  
  .article-detail {
    padding: 25px 20px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .detail-featured img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
  .mobile-nav {
    background: rgba(31, 41, 55, 0.98);
  }
  
  .mobile-nav-links a {
    color: #f9fafb;
    background: rgba(59, 130, 246, 0.1);
  }
  
  .mobile-menu-close {
    background: rgba(59, 130, 246, 0.2);
    color: #f9fafb;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle:focus,
  .mobile-menu-close:focus,
  .back-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  
  .mobile-nav-links a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .mobile-menu-toggle,
  .mobile-menu-close,
  .back-btn,
  .social-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .mobile-nav-links a {
    min-height: 60px;
    padding: 20px 30px;
  }
  
  .tag {
    min-height: 36px;
    padding: 8px 20px;
  }
}

/* Print styles */
@media print {
  .mobile-menu-toggle,
  .mobile-nav,
  .mobile-menu-overlay,
  .back-btn,
  .social-share {
    display: none !important;
  }
  
  .article-detail {
    background: white;
    box-shadow: none;
    border: none;
    padding: 20px;
  }
  
  .detail-header h2 {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
  }
}


  .whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    bottom: 20px !important;
    right: 20px !important;
    font-size: 24px !important;
  }


/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}


@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  /* Fix the selector to match the original specificity */
  nav .mobile-menu-toggle {
    display: flex !important;
  }
}
