/* ========================================
   🔐 PASSWORD GENERATOR BLOG - COMPLETE CSS
   Standalone + Index.html Theme
======================================== */

/* BASE BLOG STYLES - Same as Calculator Blog */
.blog-post-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.blog-post {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  animation: fadeInUp 0.6s ease;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date,
.read-time {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Typography */
.blog-post h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 2rem;
  font-weight: 800;
}

.blog-post h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  font-weight: 700;
}

.blog-post h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-post h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-post p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.intro-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.9;
}

.featured-image {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: var(--shadow-lg);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.05);
}

.table-of-contents {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.table-of-contents ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.table-of-contents a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--primary-dark);
  padding-left: 0.5rem;
}

.post-section {
  margin: 3rem 0;
}

.blog-post ul,
.blog-post ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-post ul li,
.blog-post ol li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.blog-post ul li::marker {
  color: var(--primary-color);
}

.blog-post ol li::marker {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post li strong {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.blog-post a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

.blog-post strong {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post code {
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  color: #dc2626;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid #10b981;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box p {
  margin: 0;
  color: var(--text-color);
}

/* ========================================
   📊 STATS HIGHLIGHT
======================================== */
.stats-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.stats-highlight h3 {
  margin-top: 0;
  text-align: center;
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0.5rem 0 0 0;
}

/* ========================================
   💡 BENEFIT CARDS
======================================== */
.benefit-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid var(--success-color);
  border-left: 4px solid var(--success-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.benefit-card h4 {
  margin-top: 0;
  color: var(--success-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ========================================
   🔬 TECH CARDS
======================================== */
.tech-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.tech-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.tech-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.example-box {
  background: white;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.example-box p {
  margin-bottom: 1rem;
}

.example-box ul,
.example-box ol {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.example-box ul li,
.example-box ol li {
  margin-bottom: 0.75rem;
}

/* ========================================
   🛠️ TOOL CARDS
======================================== */
.tool-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tool-header h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.4rem;
}

.badge-free {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-premium {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-features {
  margin: 1.5rem 0;
}

.tool-features ul {
  margin-left: 1.5rem;
}

.tool-features ul li {
  margin-bottom: 0.75rem;
}

.tool-specs {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.tool-specs p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* ========================================
   📊 COMPARISON TABLE
======================================== */
.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.comparison-table th {
  font-weight: 700;
  font-size: 0.95rem;
}

.comparison-table td {
  font-size: 0.95rem;
  color: var(--text-color);
}

.comparison-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* ========================================
   💪 STRENGTH GUIDE
======================================== */
.strength-guide {
  margin: 2rem 0;
}

.strength-guide h3 {
  text-align: center;
  color: var(--text-color);
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.strength-example {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.strength-example:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.strength-example.weak {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
  border-color: #ef4444;
}

.strength-example.medium {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
  border-color: #f59e0b;
}

.strength-example.strong {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(22, 163, 74, 0.05) 100%);
  border-color: #22c55e;
}

.strength-example h4 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.example-password {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.strength-example p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* ========================================
   📋 RECOMMENDATION CARD
======================================== */
.recommendation-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.recommendation-card h4 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.recommendation-card ul {
  margin-left: 1.5rem;
}

.recommendation-card li {
  margin-bottom: 1rem;
}

.highlight {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
}

/* ========================================
   🛡️ SECURITY TIP CARDS
======================================== */
.security-tip-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--primary-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.security-tip-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ========================================
   ❌ MISTAKE CARDS
======================================== */
.mistake-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 2px solid #ef4444;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.mistake-card h3 {
  margin-top: 0;
  color: #dc2626;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ========================================
   🔐 MANAGER COMPARISON
======================================== */
.manager-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.manager-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.manager-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.manager-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.manager-card p {
  margin-bottom: 0.75rem;
}

/* ========================================
   ⚡ TIP BOX
======================================== */
.tip-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 2px solid #ffc107;
  border-left: 4px solid #ffc107;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.tip-box p {
  margin: 0;
  color: var(--text-color);
}

/* ========================================
   🎯 CTA BOX
======================================== */
.cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-box h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-bottom: none !important;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ========================================
   📚 RELATED POSTS
======================================== */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 3px solid var(--border-color);
}

.related-posts h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.related-card {
  padding: 1.5rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.related-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.related-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   📱 RESPONSIVE - TABLETS (640px+)
======================================== */
@media (min-width: 640px) {
  .blog-post h1 {
    font-size: 3rem;
  }

  .blog-post h2 {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .manager-comparison {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   💻 RESPONSIVE - DESKTOP (768px+)
======================================== */
@media (min-width: 768px) {
  .blog-post {
    padding: 4rem 3.5rem;
  }

  .blog-post h1 {
    font-size: 3.5rem;
  }

  .featured-image {
    height: 500px;
  }
}

/* ========================================
   📱 RESPONSIVE - MOBILE
======================================== */
@media (max-width: 640px) {
  .blog-post-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .blog-post {
    padding: 2rem 1.5rem;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-post h2 {
    font-size: 1.5rem;
  }

  .featured-image {
    height: 250px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .manager-comparison {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ✨ ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   ♿ ACCESSIBILITY
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hilltop-banner-wrapper {
  text-align: center; /* Banner ko center mein laayega */
  margin-top: 20px; /* Top se thoda space (chipakne se bachayega, adjust kar le 30px if zyada chahiye) */
  margin-bottom: 20px; /* Neeche bhi space de, optional */
  width: 100%; /* Full width for responsive */
}

.hilltop-banner-wrapper img {
  max-width: 100%; /* Image responsive rahe, overflow na ho */
  height: auto; /* Aspect ratio maintain */
}