/* layout.css */
/* Manages the overall page structure, grids, and major sections. */

/* Centered container with padding */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;  /* 16px */
  padding-right: 0px;  /* Remove right padding */
  right: 0px; /* 16px */
}

/* Responsive container widths */
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  height: 70px;
}

/* Ensure sticky behavior works with Tailwind classes */
header.sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Additional sticky header support */
header[class*="sticky"] {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Ensure body allows for sticky positioning */
body {
  position: relative;
}

.header-container {
  top: 0;
  display: flex;
  margin-right: 0px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-left: 0px;
  margin-right: 0px;
  right: 0px;
  width: 100%;
  margin-right: 50px;
  margin-left: 30px;
  width: 100%;
  


}
.logo-pic{
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.logo-container{
  display: flex;
  width: 100px;
  height: 100px;
}

.header-left{
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 50px;
  gap: 20px;
  

}

.header-right {
  white-space: nowrap;
  display: flex;
  align-items: center;
  margin-right: 80px;
  padding-right: 0;
  gap: 2rem;
  flex: 1;
  justify-content: space-between;
}

.logo-text {
  display: flex;
  align-items: center;
  font-size: 20px; /* 24px */
  font-weight: 700;
  color: var(--color-text-white);
  left: 0;
}

.main-nav {
  display: flex; /* Show navigation by default */
  align-items: center;
  gap: 1.5rem; /* 24px */
}

.nav-link {
  font-size: 0.875rem; /* 14px */
  color: var(--color-text-secondary);
}
.home-box-region{
  margin-right: 100px;
  min-width: 200px;
}
.nav-link:hover {
  color: var(--color-text-white);
}

/* --- Hero Section --- */
.hero-section {
  padding-bottom: 3rem; /* 64px */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  }

.hero-content {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

.hero-title {
  padding-top: 100px;
  font-size: 4.5rem; /* 56px */
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 1.75rem; /* 24px */
  color: var(--color-text-secondary);
  max-width: 42rem; /* 672px */
  padding-top: -100px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}

.main-search-wrapper {
  max-width: 36rem; /* 576px */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem; /* 40px */
}

.main-search-container {
    display: block !important;
}

.hero-cta {
    padding-top: 100px;/* 32px */
}


/* --- Sections & Grids --- */
.trending-section, .dashboard-section, .pricing-section {
  padding-top: 10rem;  /* 64px */
  padding-bottom: 10rem; /* 64px */
}

/* Key Features section with increased padding */
section.py-12.md\\:py-20 {
  padding-top: 15rem;  /* 96px */
  padding-bottom: 30rem; /* 96px */
}

@media (min-width: 768px) {
  section.py-12.md\\:py-20 {
    padding-top: 15rem;  /* 128px */
    padding-bottom: 30rem; /* 128px */
  }
}

.trending-section, .dashboard-section {
  background-color: rgba(31, 41, 55, 0.5); /* bg-gray-800/50 */
}

.live-feed-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.grid-3-col {
  display: grid;
  gap: 2rem; /* 32px */
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Special grid for pricing section with 2 cards */
.pricing-section .grid-3-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

.grid-4-col {
  display: grid;
  gap: 1.5rem; /* 24px */
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.dashboard-section .grid-4-col {
  gap: 2rem; /* 32px */
}

.dashboard-title {
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 3rem; /* 48px */
  text-align: center;
}

/* --- Feed --- */
.feed-container {
  background-color: var(--color-background-light);
  border-radius: 0.5rem; /* 8px */
  box-shadow: var(--shadow-lg);
  padding: 1.5rem; /* 24px */
  max-height: 24rem; /* 384px */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

/* --- Footer --- */
.footer {
    background-color: var(--color-background-light);
    padding-top: 3rem; /* 48px */
    padding-bottom: 2rem; /* 32px */
    margin-top: 4rem; /* 64px */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem; /* 32px */
    margin-bottom: 2rem; /* 32px */
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem; /* 32px */
    text-align: center;
}

/* --- Responsive Media Queries --- */
@media (min-width: 640px) { /* sm */
  .grid-4-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) { /* md */
  .main-nav {
    display: flex;
  }
  
  
  .dashboard-section .grid-4-col {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3-col {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  /* Pricing section responsive */
  .pricing-section .grid-3-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) { /* lg */
  .grid-4-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
