/* =========================
   GLOBAL
========================= */

body{
  margin:0;
  background:#0b0b0b;
  color:white;
  overflow:hidden;
  font-family:
    Inter,
    system-ui,
    sans-serif;
}

.hidden{
  display:none !important;
}

.language-switcher{

  display:flex;

  gap:8px;

  padding:12px;

  border-bottom:1px solid #27272a;

}

.language-button{

  flex:1;

  background:#18181b;

  border:1px solid #27272a;

  border-radius:8px;

  color:white;

  padding:8px;

  cursor:pointer;

  transition:.2s;

}

.language-button:hover{

  background:#27272a;

}

/* =========================
   APP LAYOUT
========================= */

.app-layout{
  display:flex;
  height:100vh;
}

.main-content{
  flex:1;
  overflow-y:auto;
}


/* =========================
   SIDEBAR
========================= */

.sidebar{
  width:220px;
  border-right:1px solid #27272a;
  display:flex;
  flex-direction:column;
}

.sidebar-header{
  padding:20px;
  border-bottom:1px solid #27272a;
}

.site-title{
  font-size:24px;
  font-weight:700;
}

.site-subtitle{
  font-size:14px;
  color:#a1a1aa;
  margin-top:4px;
}

.sidebar-actions{
  padding:12px;
  border-bottom:1px solid #27272a;
}

.sidebar-button{
  width:100%;
  border:none;
  background:#27272a;
  color:white;
  border-radius:8px;
  padding:10px;
  cursor:pointer;
  transition:.2s;
}

.sidebar-button:hover{
  background:#3f3f46;
}

.shot-list{
  flex:1;
  overflow-y:auto;
  padding:12px;
}

.sidebar-shot-button{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  color:white;
  padding:10px;
  border-radius:8px;
  cursor:pointer;
  transition:.2s;
}

.sidebar-shot-button:hover{
  background:#18181b;
}

.sidebar-shot-title{
  font-size:14px;
}

.shot-active{
  background:#ffffff15;
}


/* =========================
   SCROLLBAR
========================= */

.sidebar-scroll::-webkit-scrollbar{
  width:6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb{
  background:#333;
  border-radius:999px;
}

textarea::-webkit-scrollbar{
  width:6px;
}

textarea::-webkit-scrollbar-thumb{
  background:#333;
  border-radius:999px;
}


/* =========================
   SINGLE SHOT PAGE
========================= */

.single-shot-view{
  max-width:1152px;
  margin:auto;
  padding:32px;
}

.page-header{
  margin-bottom:24px;
}

.page-label{
  font-size:14px;
  color:#a1a1aa;
  margin-bottom:8px;
}

.scene-title{
  font-size:48px;
  font-weight:700;
}


/* =========================
   MAIN IMAGE
========================= */

.main-image-wrapper{
  position:relative;

  width:100%;
  aspect-ratio:16/9;

  background:#18181b;

  border-radius:24px;

  overflow:hidden;

  border:1px solid #27272a;

  margin-bottom:32px;
}

.main-image{
  width:100%;
  height:100%;
  object-fit:cover;
  cursor:pointer;
  transition:.2s;
}

.main-image:hover{
  transform:scale(1.005);
}


/* =========================
   DIAGRAM OVERLAY
========================= */

.diagram-overlay{
  position:fixed;
  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  background:rgba(0,0,0,.85);

  z-index:999;

  padding:40px;

  backdrop-filter:blur(4px);
}

.diagram-image{
  max-width:95vw;
  max-height:95vh;

  object-fit:contain;

  border-radius:16px;

  border:1px solid #3f3f46;

  box-shadow:
    0 20px 60px rgba(0,0,0,.6);
}


/* =========================
   META
========================= */

.meta-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;

  margin-bottom:32px;
}

.meta-card{
  background:#18181b;
  border:1px solid #27272a;
  border-radius:16px;
  padding:16px;
}

.meta-label{
  font-size:14px;
  color:#a1a1aa;
  margin-bottom:4px;
}

.meta-value{
  font-size:20px;
  font-weight:600;
}


/* =========================
   CONTENT
========================= */

.content-card{
  background:#18181b;
  border:1px solid #27272a;
  border-radius:24px;
  padding:24px;
  margin-bottom:24px;
}

.section-title{
  font-size:24px;
  font-weight:700;
  margin-bottom:16px;
}

.details-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}


/* =========================
   TEXTAREA
========================= */

.storyboard-textarea{
  width:100%;
  background:transparent;
  border:none;
  color:#d4d4d8;
  resize:vertical;
  line-height:1.7;
}

.storyboard-textarea:focus{
  outline:none;
}

.textarea-large{
  min-height:180px;
  font-size:18px;
}

.textarea-medium{
  min-height:160px;
}

.textarea-prompt{
  min-height:220px;
  font-size:14px;
}


/* =========================
   ALL SHOTS PAGE
========================= */

.all-shots-view{
  max-width:1800px;
  margin:auto;
  padding:32px;
}

.all-shots-header{
  margin-bottom:24px;
}

.all-shots-title{
  font-size:40px;
  font-weight:700;
}

.all-shots-grid{
  display:grid;

  grid-template-columns:
    repeat(6,minmax(0,1fr));

  gap:20px;
}

.shot-card{
  background:#18181b;

  border:1px solid #27272a;

  border-radius:12px;

  overflow:hidden;

  cursor:pointer;

  transition:.2s;
}

.shot-card:hover{
  transform:translateY(-3px);
  border-color:#52525b;
}

.shot-card-image{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}

.shot-card-title{
  padding:10px;
  text-align:center;
  font-size:13px;
  font-weight:600;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width:1600px){

  .all-shots-grid{
    grid-template-columns:repeat(5,1fr);
  }

}

@media (max-width:1300px){

  .all-shots-grid{
    grid-template-columns:repeat(4,1fr);
  }

}

@media (max-width:1000px){

  .all-shots-grid{
    grid-template-columns:repeat(3,1fr);
  }

}

@media (max-width:700px){

  .all-shots-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .meta-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .details-grid{
    grid-template-columns:1fr;
  }

}

@media (max-width:500px){

  .all-shots-grid{
    grid-template-columns:1fr;
  }

}
