/* Base Styles */
:root {
  --primary-color: #0a3d91;
  --secondary-color: #1ec6ff;
  --accent-color: #ff4d6d;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #f8fafd;
  --white: #ffffff;
  --border-color: #e0e7ef;
  --shadow: 0 4px 20px rgba(10, 61, 145, 0.08);
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
  background: var(--bg-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Header Styles */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-text .highlight { color: var(--secondary-color); }

.nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  opacity: 0.8;
}

.nav-list a:hover { opacity: 1; color: var(--secondary-color); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.search-toggle:hover { background: rgba(30, 198, 255, 0.1); }

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border-radius: 25px;
  padding: 5px 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--secondary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 198, 255, 0.1);
}

.search-field {
  border: none;
  background: none;
  padding: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  width: 180px;
  outline: none;
}

.search-submit {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-submit:hover {
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .search-field {
    width: 120px;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Footer Styles - Redesigned */
.site-footer {
  background: #051d44; /* Darker, more professional blue */
  color: var(--white);
  padding: 50px 0 20px;
  margin-top: 60px;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1100px; /* Slightly narrower for better focus */
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.2fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo img {
  max-height: 35px;
  width: auto;
  margin-bottom: 15px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: block;
}

.footer-about {
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #ffffff !important;
  margin: 0 5px;
}
.social-link svg {
  fill: currentColor;
  display: block;
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(30, 198, 255, 0.3);
}

.footer-nav-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-nav-col h4, .footer-newsletter h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-col li {
  margin-bottom: 10px;
}

.footer-nav-col a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-nav-col a:hover {
  opacity: 1;
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-newsletter p {
  opacity: 0.7;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  background: rgba(255,255,255,0.05);
  padding: 5px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-form input {
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--white);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.newsletter-form button {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #00b4f0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-newsletter {
    grid-column: span 2;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-newsletter {
    grid-column: span 1;
  }
  .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-about {
    max-width: 100%;
  }
  .footer-nav-group {
    text-align: center;
  }
  .footer-newsletter {
    text-align: center;
    margin: 0 auto;
  }
  .newsletter-form {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Blog Page Styles */
.blog-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

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

.blog-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.blog-page-subtitle {
  color: var(--light-text);
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(10, 61, 145, 0.15);
}

.blog-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.blog-card:hover .blog-img { transform: scale(1.1); }

.blog-img-placeholder {
  width: 100%;
  height: 100%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--secondary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card-content { padding: 25px; }

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--light-text);
  margin-bottom: 15px;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-title a:hover { color: var(--secondary-color); }

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--light-text);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.blog-read-more:hover { color: var(--secondary-color); }

.blog-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.blog-pagination .page-numbers {
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 600;
}

.blog-pagination .current {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Single Post Styles */
.post-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.post-article {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.post-header { margin-bottom: 30px; }

.post-category-badge {
  display: inline-block;
  background: rgba(30, 198, 255, 0.1);
  color: var(--secondary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--light-text);
  font-size: 0.9rem;
}

.post-author { display: flex; align-items: center; gap: 10px; }
.post-author img { border-radius: 50%; }

.post-date { display: flex; align-items: center; gap: 8px; }

.post-featured-image {
  margin: 0 -40px 40px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.post-content p { margin-bottom: 25px; }

/* Decoder Box in Post */
.post-decoder-box {
  background: #f0f7ff;
  border: 2px dashed var(--secondary-color);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin: 40px 0;
}

.post-decoder-box h3 {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.timer-circle-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 20px auto;
}

.timer-circle-wrapper svg { transform: rotate(-90deg); }
.timer-bg { fill: none; stroke: #e0e7ef; stroke-width: 6; }
.timer-progress {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 6;
  transition: stroke-dashoffset 1s linear;
}

#post-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.timer-status { font-weight: 600; color: var(--light-text); }

#post-decoded-content {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 20px 0;
  word-break: break-all;
  font-family: monospace;
}

.btn-copy {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-copy:hover { background: var(--secondary-color); }

/* Post Footer */
.post-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.post-tags a {
  background: #f0f2f5;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 0.85rem;
  color: var(--light-text);
}
.post-tags a:hover { background: var(--primary-color); color: var(--white); }

.post-share {
  background: #f8fafd;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.share-title { font-weight: 700; color: var(--primary-color); }
.share-buttons { display: flex; gap: 10px; }
.share-btn {
  padding: 8px 15px;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.tg { background: #0088cc; }

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-navigation div a {
  font-weight: 700;
  color: var(--primary-color);
}

.post-navigation div a:hover { color: var(--secondary-color); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: var(--white);
    padding: 40px 20px;
    transition: var(--transition);
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  }
  .main-nav.active { left: 0; }
  .nav-list { flex-direction: column; gap: 20px; }
  .nav-list a { font-size: 1.1rem; }
  
  .blog-grid { grid-template-columns: 1fr; }
  .post-article { padding: 20px; }
  .post-featured-image { margin: 0 -20px 20px; }
  .post-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-newsletter { grid-column: span 1; }
}

/* Encoder & Decoder Professional Styles */
.main-encoder-wrapper, .main-decoder-wrapper {
  padding: 40px 20px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.encoder-card, .decoder-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.encoder-card::before, .decoder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.encoder-description, .decoder-description {
  font-size: 1.05rem;
  color: var(--light-text) !important;
  margin-bottom: 30px;
  line-height: 1.6;
}

.input-label {
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

textarea#encode-content, textarea#decode-content {
  width: 100%;
  min-height: 150px;
  padding: 20px;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  background: #fcfdfe;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  resize: vertical;
  margin-bottom: 20px;
}

textarea#encode-content:focus, textarea#decode-content:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(30, 198, 255, 0.1);
  background: var(--white);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 4px 15px rgba(10, 61, 145, 0.2);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 198, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.result-label {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 30px !important;
  margin-bottom: 10px;
  display: block;
}

.result-box {
  background: #f0f7ff;
  border: 2px dashed var(--secondary-color);
  border-radius: 15px;
  padding: 20px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: var(--transition);
}

.result-box textarea {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--primary-color);
  resize: none;
}

.copy-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--secondary-color);
}

/* Info Sections */
.info-section {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.info-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-section ul, .info-section ol {
  padding-left: 20px;
  margin: 0;
}

.info-section li {
  margin-bottom: 12px;
  color: var(--light-text);
  position: relative;
}

.info-section ul { list-style: none; }
.info-section ul li::before {
  content: '✓';
  position: absolute;
  left: -25px;
  color: var(--secondary-color);
  font-weight: 900;
}

.important-box {
  background: #fff5f7;
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin-top: 25px;
  color: #d63384;
  font-size: 0.95rem;
}

/* FAQs Section */
.faqs-section {
  margin-top: 60px !important;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: var(--transition);
}

.faq-question.active::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--light-text);
  display: none;
  line-height: 1.6;
  border-top: 1px solid #f0f2f5;
  padding-top: 15px;
}

/* Mobile App-like UI Enhancements */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #fff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 9999;
        border-top: 1px solid #eee;
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        font-size: 11px;
        font-weight: 500;
        transition: color 0.3s;
        cursor: pointer;
        flex: 1;
    }
    
    .mobile-bottom-nav .nav-item svg {
        margin-bottom: 4px;
        width: 22px;
        height: 22px;
    }
    
    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item.active {
        color: #0a3d91;
    }

    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .encoder-card, .decoder-card {
      padding: 25px;
    }
    .section-title {
      font-size: 1.6rem;
    }
    .info-section {
      padding: 20px;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Social Icons Styling */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mobile-sidebar .footer-social {
    justify-content: flex-start;
    margin-top: 15px;
}

.mobile-sidebar .social-link {
    background: #f0f2f5;
    color: var(--primary-color) !important;
}

.mobile-sidebar .social-link:hover {
    background: var(--primary-color);
    color: #ffffff !important;
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 10001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.mobile-sidebar-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.mobile-nav-section {
    margin-bottom: 30px;
}

.mobile-nav-section h4 {
    font-size: 16px;
    color: #0a3d91;
    margin-bottom: 15px;
    border-bottom: 2px solid #0a3d91;
    display: inline-block;
}

.mobile-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-section ul li {
    margin-bottom: 12px;
}

.mobile-nav-section ul li a {
    color: #555;
    font-size: 15px;
    display: block;
}

/* Mobile social icons handled by .footer-social and .social-link */

.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-footer {
        display: none !important;
    }
}

/* Paste Button Styles */
.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(30, 198, 255, 0.2);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.paste-btn:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 61, 145, 0.15);
}

.paste-btn:active {
  transform: translateY(0);
}

.paste-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .input-header {
    margin-bottom: 12px;
  }
  .paste-btn {
    padding: 10px 18px; /* Larger touch target for mobile */
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .input-header {
    flex-direction: row;
    align-items: center;
  }
  .paste-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* --- Amazing Comment Section Styles --- */
.comments-area {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comments-title svg {
  color: var(--secondary-color);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.comment-item {
  margin-bottom: 25px;
}

.comment-body {
  background: #f8fafd;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.comment-body:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(30, 198, 255, 0.05);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.comment-author-avatar img {
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-author-name b {
  font-size: 1.05rem;
  color: var(--primary-color);
}

.comment-date {
  font-size: 0.85rem;
  color: var(--light-text);
}

.comment-content {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 15px;
}

.reply {
  display: inline-flex;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: rgba(30, 198, 255, 0.1);
  padding: 6px 15px;
  border-radius: 20px;
  transition: var(--transition);
}

.comment-reply-link:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* Comment Form Styles */
.comment-respond {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px dashed var(--border-color);
}

.comment-reply-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.comment-form {
  display: grid;
  gap: 20px;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comment-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: #f8fafd;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--secondary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 198, 255, 0.1);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 14px 35px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(10, 61, 145, 0.2);
}

.form-submit button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 198, 255, 0.3);
}

/* Nested Comments */
.children {
  list-style: none;
  padding-left: 40px;
  margin-top: 20px;
  border-left: 2px solid var(--border-color);
}

/* Responsive Comments */
@media (max-width: 768px) {
  .comments-area {
    padding: 25px;
  }
  .comment-form-row {
    grid-template-columns: 1fr;
  }
  .children {
    padding-left: 20px;
  }
  .comment-body {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .comment-author-avatar img {
    width: 40px;
    height: 40px;
  }
}

/* Anti-AdBlock Overlay */
.adblock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 29, 68, 0.95);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.adblock-modal {
  background: var(--white);
  padding: 50px;
  border-radius: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.adblock-icon {
  margin-bottom: 25px;
  background: rgba(255, 77, 109, 0.1);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.adblock-modal h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.adblock-modal p {
  color: var(--light-text);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.adblock-modal .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

/* Ad Slot Styles */
.ad-slot {
  margin: 20px auto;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
}

.ad-top { margin-top: 0; margin-bottom: 30px; }
.ad-bottom { margin-top: 30px; margin-bottom: 0; }
.ad-middle { margin: 25px 0; }
.ad-inside-decoder { margin: 15px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

@media (max-width: 768px) {
  .ad-slot { margin: 15px auto; }
}

/* Table of Contents Styling */
.safelink-toc, .safelink-cross-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.toc-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.toc-toggle {
    font-size: 12px;
    color: #2563eb;
    cursor: pointer;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-level-2 { margin-left: 0; margin-bottom: 8px; }
.toc-level-3 { margin-left: 20px; margin-bottom: 5px; font-size: 0.95em; }
.toc-list a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}
.toc-list a:hover { color: #2563eb; }

/* Related Posts Styling */
.related-posts-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.related-post-card:hover { transform: translateY(-5px); }
.related-post-card a { text-decoration: none; color: inherit; }
.related-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.related-title {
    display: block;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

/* Featured Image Optimization */
.post-featured-image-container {
    text-align: center;
    margin-bottom: 30px;
}
.optimized-featured-image {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* Limit height as requested */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
