/* ======================================================
   Minty AI — Clean, Stable, Fully Working UI
====================================================== */

:root{
  --minty:#70e6b8;
  --minty-strong:#1abc9c;
  --deep:#0d3d27;
  --bg-dark:#2f2f2f;
  --text-light:#e5e5e5;
}

/* GLOBAL -------------------------------------------- */
*{
  box-sizing:border-box;
}

html,body{
  height:100%;
  margin:0;
  padding:0;
}

body{
  background:var(--bg-dark);
  color:#fff;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* BACKGROUND VIDEO ---------------------------------- */
.video-bg{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-1;
  display:none;
  pointer-events:none;
}

/* ======================================================
   NAVBAR
====================================================== */

.minty-nav{
  width:92%;
  max-width:1100px;
  margin:12px auto 0;
  padding:10px 18px;
  background:var(--deep);
  border:2px solid var(--minty);
  border-radius:12px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  box-shadow:0 6px 20px rgba(0,0,0,0.35);
  position:sticky;
  top:10px;
  z-index:1000;
}

.nav-left{
  display:flex;
  align-items:center;
}

.nav-logo img{
  height:44px;
  display:block;
}

.nav-right{
  display:flex;
  align-items:center;
  position:relative;
  gap:16px;
}

/* Desktop links */
.nav-links{
  display:flex;
  gap:28px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-links a{
  color:var(--minty);
  text-decoration:none;
  padding:6px 10px;
  border-radius:8px;
  font-weight:600;
  transition:.2s;
}

.nav-links a:hover,
.nav-links a.active{
  background:var(--minty-strong);
  color:var(--deep);
}

/* Hamburger */
.hamburger{
  display:none;
  font-size:30px;
  color:var(--minty);
  cursor:pointer;
  padding:6px;
  border-radius:6px;
}

/* ======================================================
   MOBILE NAV
====================================================== */

@media(max-width:768px){

  .hamburger{ display:block; }

  /* hide desktop layout */
  .nav-links{
    position:absolute;
    top:64px;
    right:10px;
    flex-direction:column;
    width:220px;

    background:#0d3d27;
    border:2px solid var(--minty);
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,0.35);

    overflow:hidden;
    max-height:0;
    padding:0;

    transition:max-height .35s ease, padding .25s ease;
    z-index:999;
  }

  /* OPEN */
  .nav-links.open{
    max-height:400px;
    padding:14px;
  }
}

/* ======================================================
   MAIN CONTENT
====================================================== */

main{
  width:100%;
  max-width:1200px;
  padding:22px;
}

.page-title{
  font-size:2rem;
  text-align:center;
  margin:20px 0;
  color:#98fbcb;
}

/* CHAT ------------------------------------------------ */
.chat-container{
  width:100%;
  max-width:1200px;
  height:75vh;
  background:linear-gradient(to bottom,#000,#fff);
  border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,0.4);
  margin:20px auto;

  display:flex;
  align-items:center;
  justify-content:center;
}

#quickchat-embedded{
  width:95%;
  height:95%;
  border-radius:10px;
  background:#FAF9F6;
}

/* ======================================================
   THEME SELECTOR — UNIFORM GRID
====================================================== */

.theme-container{
  width:100%;
  max-width:760px;
  padding:12px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* Desktop = 3 columns */
.theme-buttons{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}

/* Breakpoints */
@media(max-width:900px){
  .theme-buttons{
    grid-template-columns:repeat(2, 1fr);
  }
}
@media(max-width:600px){
  .theme-buttons{
    grid-template-columns:1fr;
  }
}

.theme-buttons button{
  width:100%;
  height:130px;
  position:relative;
  overflow:hidden;

  border:2px solid var(--minty);
  border-radius:12px;
  background:#0d3d27;
  color:var(--minty);

  display:flex;
  align-items:flex-end;
  justify-content:center;

  cursor:pointer;
  font-weight:600;
  transition:.2s;
}

/* Thumbnail image — ALWAYS UNIFORM */
.theme-buttons button img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.75;
  transition:.2s;
  pointer-events:none;
}

.theme-buttons button span{
  position:relative;
  z-index:2;
  background:rgba(0,0,0,0.5);
  padding:6px 10px;
  border-radius:8px;
}

/* Hover effect */
.theme-buttons button:hover{
  border-color:var(--minty-strong);
  background:var(--minty-strong);
  color:var(--deep);
}

.theme-buttons button:hover img{
  opacity:.4;
}

/* ======================================================
   DEVLOGS
====================================================== */
.devlog-entry{
  background:rgba(0,0,0,0.35);
  padding:20px;
  border-radius:12px;
  border-left:4px solid var(--minty);
  margin-bottom:20px;
  color:var(--text-light);
}

.devlog-entry h2{
  margin:0 0 6px 0;
  color:#98fbcb;
}

/* RESET THEME BUTTON ------------------------------- */
#reset-theme{
  width:100%;
  padding:12px;
  margin-top:15px;
  background:#2a2a2a;
  color:#fff;
  border:2px solid #444;
  border-radius:10px;
  cursor:pointer;
  font-size:1.1rem;
  transition:.25s ease;
}

#reset-theme:hover{
  background:#3a3a3a;
  transform:translateY(-4px);
  box-shadow:0 6px 12px rgba(0,0,0,0.4);
}

#reset-theme:hover {
    background: #3b3b3b;
    border-color: #fff;
    transform: scale(1.05);
}
