/* Custom Single Column Layout Styles */

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Override Chirpy theme sidebar styles */
#main-wrapper {
  display: block !important;
}

.main-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Navigation Styles */
.navbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar-brand {
  font-size: 1.6rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  color: #6c757d;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.2rem;
}

.nav-link:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.nav-link i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #667eea;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Content Container */
.main-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Post Layout Adjustments - Modern Design */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* Article Header */
article header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 16px;
}

article .post-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 24px;
}

/* Post Meta */
.post-meta {
  font-size: 0.875rem;
  color: #6b7280 !important;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 32px;
}

.post-meta span {
  color: #6b7280 !important;
}

.post-meta a {
  color: #111827 !important;
  text-decoration: none;
  font-weight: 500;
}

.post-meta a:hover {
  color: #000000 !important;
}

/* Article Content */
article .content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
}

article .content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

article .content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

article .content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-top: 24px;
  margin-bottom: 12px;
}

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

article .content a {
  color: #111827;
  text-decoration: underline;
  text-decoration-color: #d1d5db;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

article .content a:hover {
  color: #000000;
  text-decoration-color: #111827;
}

article .content ul,
article .content ol {
  margin: 20px 0;
  padding-left: 28px;
}

article .content li {
  margin-bottom: 8px;
  color: #374151;
}

article .content code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: #111827;
  font-family: 'Monaco', 'Courier New', monospace;
}

article .content pre {
  background: #1f2937;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

article .content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #f3f4f6;
}

article .content blockquote {
  border-left: 4px solid #111827;
  padding-left: 20px;
  margin: 24px 0;
  color: #6b7280;
  font-style: italic;
}

article .content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

article .content figure {
  margin: 32px 0;
}

article .content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Categories and Tags */
.post-meta .far,
.post-meta .fa {
  color: #6b7280 !important;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.post-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #111827 !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.post-tag:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #000000 !important;
}

/* Separator */
article hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 48px 0;
}

/* Post tail */
.post-tail-wrapper {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.post-tail-wrapper .post-meta {
  border: none;
  padding: 0;
  margin-bottom: 16px;
}

/* License and sharing */
.post-tail-bottom {
  margin-top: 32px !important;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.license-wrapper {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Related posts styling */
.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.post-navigation a {
  flex: 1;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none !important;
  color: #111827 !important;
  transition: all 0.2s ease;
}

.post-navigation a:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
}

/* Responsive article design */
@media (max-width: 768px) {
  article {
    padding: 40px 16px;
  }

  article header h1 {
    font-size: 2rem;
  }

  article .post-desc {
    font-size: 1rem;
  }

  article .content {
    font-size: 1rem;
  }

  article .content h2 {
    font-size: 1.5rem;
  }

  article .content h3 {
    font-size: 1.25rem;
  }
}

/* Remove sidebar-related styles */
#sidebar,
.sidebar,
.panel,
#panel-wrapper {
  display: none !important;
}

/* Ensure full width for all content */
.col-12 {
  width: 100% !important;
  max-width: none !important;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  margin-top: 60px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: block !important;
  visibility: visible !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grain)"/></svg>');
  opacity: 0.3;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 40px;
  position: relative;
  z-index: 1;
  display: block !important;
  visibility: visible !important;
}

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

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #667eea !important;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
  display: block !important;
  visibility: visible !important;
}

.footer-description {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-link:hover {
  background: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #bdc3c7 !important;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block !important;
  visibility: visible !important;
}

.footer-links a:hover {
  color: #667eea;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright p {
  color: #95a5a6 !important;
  font-size: 0.9rem;
  margin: 0;
  display: block !important;
  visibility: visible !important;
}

.footer-newsletter p {
  color: #bdc3c7;
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e9ecef;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    width: 100%;
    justify-content: flex-start;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  article {
    padding: 1rem 0.5rem;
  }
  
  /* Footer responsive */
  .footer-container {
    padding: 40px 15px 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding-bottom: 30px;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Ensure homepage styles work with single column */
.homepage {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Override any theme-specific width constraints */
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Make sure all sections use full width */
.hero-section,
.tools-section,
.why-section,
.apps-section,
.newsletter-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure no white space on sides */
* {
  box-sizing: border-box;
}

#main-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}
