/* Static Blog Pages - Complete Styles */
/* This file contains all the styles needed for static HTML blog pages to match the Vue SPA */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #2c3e50;
}

body.drawer-open {
  overflow: hidden;
}

/* Header/Navigation Styles */
#app-navigation header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

#app-navigation .header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

#app-navigation .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

#app-navigation .logo:hover {
  color: #3498db;
}

#app-navigation nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#app-navigation .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

#app-navigation .nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

#app-navigation .nav-links a:hover {
  color: #3498db;
}

#app-navigation .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #3498db;
  transition: width 0.3s ease;
}

#app-navigation .nav-links a:hover::after {
  width: 80%;
}

/* Dropdown Styles */
#app-navigation .dropdown {
  position: relative;
}

#app-navigation .dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

#app-navigation .dropdown-toggle::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 0.32rem solid transparent;
  border-right: 0.32rem solid transparent;
  border-top: 0.45rem solid currentColor;
  transition: transform 0.3s ease;
}

#app-navigation .dropdown:hover .dropdown-toggle::before {
  transform: rotate(-180deg);
}

#app-navigation .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  margin-top: 0.5rem;
  transform: translateX(-50%) translateY(-10px);
}

#app-navigation .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

#app-navigation .dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #555;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

#app-navigation .dropdown-menu a:first-child {
  border-radius: 8px 8px 0 0;
}

#app-navigation .dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
}

#app-navigation .dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #3498db;
}

#app-navigation .dropdown-menu a::after {
  display: none;
}

/* Mobile Menu Toggle */
#app-navigation .mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

#app-navigation .mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* Language Selector */
#app-navigation .language-selector {
  margin-left: 1rem;
}

#app-navigation .language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#app-navigation .language-icon {
  font-size: 1.2rem;
}

#app-navigation .language-text {
  font-weight: 600;
  font-size: 0.9rem;
}

#app-navigation .language-menu {
  min-width: 160px;
  max-height: 300px;
  overflow-y: auto;
}

#app-navigation .language-menu a {
  padding: 0.75rem 1.5rem;
}

#app-navigation .language-menu a.active {
  background-color: #f0f0f0;
  color: #3498db;
  font-weight: 600;
}

/* Mobile Drawer Backdrop */
#app-navigation .mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#app-navigation .mobile-backdrop.active {
  display: block;
  opacity: 1;
}

/* Footer Styles */
#app-footer {
  display: flex;
  flex-direction: column;
}

/* CTA Section Styles */
#app-footer .cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
}

#app-footer .join-group {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

#app-footer .join-group:hover {
  background-color: #218838;
  transform: translateY(-3px);
}

#app-footer .footer-wrapper {
  background-color: #2c3e50;
  color: white;
  padding: 4rem 2rem 2rem;
}

#app-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

#app-footer .footer-column h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #fff;
}

#app-footer .footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  margin-left: -0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#app-footer .footer-column a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

#app-footer .social-links {
  display: flex;
  flex-direction: column;
}

#app-footer .social-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  margin-left: -0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#app-footer .social-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

#app-footer .social-links a:hover .social-icon {
  transform: scale(1.2);
}

#app-footer .social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

#app-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

#app-footer .legal-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

#app-footer .legal-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

#app-footer .legal-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

#app-footer .footer-bottom p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

#app-footer .community-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

#app-footer .community-link:hover {
  color: #5568d3;
}

/* Blog Post Article Styles */
/* NOTE: Blog post styles have been moved to post.css for better organization */
/* Static pages that include blog content should link both static-styles.css and post.css */

/* Responsive Design */
@media (max-width: 900px) {
  #app-navigation .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    padding: 80px 0 1rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    gap: 0;
    overflow-y: auto;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  #app-navigation .nav-links.active {
    transform: translateX(0);
  }

  #app-navigation .nav-links li {
    width: 100%;
    text-align: center;
  }

  #app-navigation .nav-links a {
    display: block;
    padding: 1rem;
  }

  #app-navigation .mobile-menu-toggle {
    display: flex;
  }

  /* Accordion style dropdowns in mobile */
  #app-navigation .dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    box-shadow: none;
    margin: 0;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
  }

  #app-navigation .dropdown.active .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
  }

  #app-navigation .dropdown-menu a {
    padding: 0.75rem 2rem;
    border-radius: 0;
  }

  #app-navigation .dropdown-toggle::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.32rem solid transparent;
    border-right: 0.32rem solid transparent;
    border-top: 0.45rem solid currentColor;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
  }

  #app-navigation .dropdown.active .dropdown-toggle::before {
    transform: rotate(-180deg);
  }

  #app-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
