/* Modern UI for YouTube Idea Studio */
:root{
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #ff3b30;
  --muted: #9aa4b2;
  --glass: rgba(255,255,255,0.04);
  --radius: 14px;
}

.ytg-container{
  display:flex;
  justify-content:center;
  padding:30px 15px;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #071129 0%, #0f1724 100%);
}

.ytg-card{
  width:100%;
  max-width:980px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  color: #e6eef8;
}

.ytg-header{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:14px;
}

.ytg-logo svg{ border-radius:8px; box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
.ytg-title{ margin:0; font-size:20px; letter-spacing:0.2px; font-weight:700; }
.ytg-sub{ margin:0; color:var(--muted); font-size:13px; }

.ytg-controls{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
  margin-bottom:16px;
}

.ytg-controls input[type="text"]{
  flex:1;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
  background: var(--glass);
  color: #eaf2ff;
  font-size:14px;
}

.ytg-controls select{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.03);
  background: rgba(255,255,255,0.02);
  color:#e6eef8;
  font-size:14px;
}

.ytg-count-label{ color:var(--muted); font-size:13px; display:flex; align-items:center; gap:8px; }

.ytg-btn{
  background: linear-gradient(180deg, var(--accent), #d92b24);
  color:white;
  padding:11px 16px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:600;
  box-shadow: 0 8px 20px rgba(255,59,48,0.12);
}

.ytg-status{
  margin-top:10px;
  min-height:28px;
}

.ytg-results{ margin-top:18px; display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap:14px; }

.ytg-idea-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding:12px;
  border-radius:12px;
  color:#dfe9fb;
}

.ytg-idea-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.ytg-idea-header h3{ margin:0; font-size:16px; }
.ytg-idea-actions button{ background:transparent; color:var(--muted); border:1px solid rgba(255,255,255,0.03); padding:6px 10px; border-radius:8px; cursor:pointer; }

.ytg-field{ margin-bottom:10px; position:relative; }
.ytg-field label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
.ytg-field pre{ background:linear-gradient(180deg, rgba(0,0,0,0.25), rgba(255,255,255,0.02)); padding:10px; border-radius:8px; font-size:13px; color:#e6eef8; white-space:pre-wrap; max-height:180px; overflow:auto; }
.copy-btn{ position:absolute; right:6px; top:6px; background:transparent; color:var(--muted); border:none; padding:6px 8px; cursor:pointer; border-radius:8px; }

.ytg-error{ color:#ffbbcc; background:rgba(255,0,0,0.04); padding:10px; border-radius:8px; }

@media (max-width:600px){
  .ytg-controls{ flex-direction:column; align-items:stretch; }
  .ytg-count-label{ justify-content:flex-start; }
}
