/* Layout System */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
}

.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* Container widths */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow { max-width: 768px; }
.container-normal { max-width: 1200px; }
.container-wide { max-width: 1440px; }
.container-full { max-width: 100%; padding: 0; }

/* Grid system */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Navigation Styles */

.site-header {
  
  background: var(--surface-color); border-bottom: 1px solid var(--border-color);
  
  
  
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-item.active .nav-link {
  color: var(--primary-color);
}

/* Sidebar navigation */
.site-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: var(--surface-color);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  z-index: 90;
}

.sidebar-nav {
  padding: 1rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

.sidebar-link:hover {
  background: var(--surface-hover);
  color: var(--primary-color);
}

.sidebar-item.active .sidebar-link {
  background: var(--primary-color-alpha);
  color: var(--primary-color);
}

/* Hero Section */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  
  min-height: 500px;
  
  
  
}

.hero-background {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Card Styles */

.card {
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
}

.card-flat {
  background: var(--surface-color);
}

.card-raised {
  background: var(--surface-color);
  box-shadow: var(--shadow-md);
}

.card-outlined {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
}

.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover effects */
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-glow:hover {
  box-shadow: 0 0 20px var(--primary-color-alpha);
}

.post-card {
  overflow: hidden;
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1.5rem;
}

/* Footer Styles */

.site-footer {
  background: var(--bg-alt-color);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3rem 0 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-minimal {
  text-align: center;
  padding: 2rem 0;
}

.footer-centered {
  text-align: center;
}

.footer-columns .footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid.columns-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.footer-grid.columns-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid.columns-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

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

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  color: var(--text-muted);
}

.footer-list a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-wrapper {
    margin-left: 0;
  }
  
  .site-sidebar {
    transform: translateX(-100%);
    position: fixed;
  }
  
  .site-sidebar.open {
    transform: translateX(0);
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1rem 0;
  }
  
  .container {
    padding: 0 0.75rem;
  }
}