/* ========== layout.css ========== */

/* --- Containers and Section Spacing --- */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.mobile-menu-toggle {
    display:none;
}

section {
  padding: 0;
}

/* --- Layout helpers --- */
main, .main-content, .assistant-grid, section {
  margin-top: 0;
  padding-top: 0;
  margin-left: 0;
}

/* --- Grid for Cards --- */
.assistant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 50px;
  padding: 0 30px;
  padding-top: 24px;
}
@media (max-width: 900px) {
  .assistant-grid { grid-template-columns: repeat(2, 1fr); padding: 0 12px; }
}
@media (max-width: 640px) {
  .assistant-grid { grid-template-columns: 1fr; padding: 0 4px; justify-items: center; }
}

/* --- Banner/Header/Footer Layout --- */
.gradient-banner {
  width: 100%;
  min-width: 100%;
  min-height: 7rem;
  background: url('../images/Gradient-Banner-12.png') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  z-index: 1;
  margin: 0;
  padding: 0;
  background-color: var(--color-banner-bg);
  border: none;
  box-shadow: none;
}
body.light-mode .gradient-banner {
  background: url('../images/Gradient-Banner2-12.png') center center/cover no-repeat;
  background-color: var(--color-banner-bg);
}
@media (max-width: 768px) {
  .gradient-banner { height: 100px; }
}

.site-header {
  background-color: transparent !important;
  box-shadow: none;
  z-index: 2;
  justify-content: space-between;
  padding-left: 0;
  padding-right: 3rem;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Centered logo above assistant card grid */
.logo-center {
    text-align: center;
    margin-bottom: 20px; /* This controls the space below the logo */
}

.logo-center img {
    height: 48px;
    margin-right: 20px;
}

/* Logo alignment in header (desktop) */
.logo-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 250px; /* Restore original left margin for logo on desktop */
}

/* Logo alignment in header (desktop) */
.logo-left img {
    height: 48px;
}

.site-footer {
  background-color: var(--color-banner-bg) !important;
  color: var(--color-header);
  padding: 0;
  min-height: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  box-shadow: none;
  font-size: 1rem;
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 100;
}

/* --- Nav Layout --- */
.main-nav {
  text-align: right;
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-right: 32px;
  margin-left: 200px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
  padding-top: 0;
  padding-right: 5rem;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
}
.main-nav li {
  margin-left: 18px;
  display: flex;
  align-items: center;
}
.main-nav a {
  color: var(--color-nav-link);
  font-weight: 600;
  position: relative;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
}
.main-nav a.active,
.main-nav a:hover {
  color: #fff;
}
.main-nav a.active::after {
  background-color: #fff;
}
@media (max-width: 1024px) {
  .mobile-menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #002855;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    width: 200px;
    margin-right: 0;
    z-index: 200;
  }
  .logo-left {
    margin-left: 2rem;    /* No margin for tablets/mobile */
  }
  .main-nav.active ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
  .main-nav.active li {
    margin: 0;
    padding: 12px 24px;
    width: 100%;
  }
  .main-nav.active a {
    color: #fff;
    width: 100%;
    display: block;
    text-align: left;
    padding: 8px 0;
    font-size: 1.1rem;
  }
  .main-nav.active a.active,
  .main-nav.active a:hover { color: #C57ED3; }
}

/* --- Section Spacing for Main Content --- */
.assistant-section { margin-top: 36px; }
.prompt-library { padding: 60px 20px; text-align: center; }
.prompt-library .container { max-width: 1200px; margin: 0 auto; }

/* --- Two Column Prompt Library --- */
.prompt-columns {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 40px;
  text-align: left;
}
.prompt-columns .column { flex: 1; max-width: 45%; }

/* --- Responsive adjustments --- */
@media (max-width: 600px) {
  body { font-size: 0.95rem; }
  .logo-left {
    margin-left: 2rem;    /* No margin for tablets/mobile */
  }
}