/**
 * ============================================================================
 * ENGINEERING PROJECTS IDEAS GENERATOR — style.css
 * ============================================================================
 * Saari classes e2zai-projects-generator-/e2zai-pg- prefixed, .e2zai-scope ke
 * andar, core CSS variables se dark-mode aware. 320px → 1920px responsive.
 * ============================================================================
 */

/* ---------- Hero ---------- */
.e2zai-scope .e2zai-projects-generator-head {
	display: flex; align-items: center; gap: 14px;
	background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
	border-radius: var(--e2zai-radius, 12px);
	padding: 18px 20px; margin-bottom: 12px; color: #fff;
}
.e2zai-scope .e2zai-projects-generator-head-icon { font-size: 34px; line-height: 1; }
.e2zai-scope .e2zai-projects-generator-title { margin: 0; font-size: 21px; font-weight: 800; color: #fff; }
.e2zai-scope .e2zai-projects-generator-sub { margin: 3px 0 0; font-size: 13px; opacity: .92; }

.e2zai-scope .e2zai-projects-generator-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* ---------- Setup card ---------- */
.e2zai-scope .e2zai-projects-generator-setup {
	border: 1px solid var(--e2zai-border, #e5e7eb);
	border-radius: var(--e2zai-radius, 12px);
	padding: 16px; margin-bottom: 16px;
	background: var(--e2zai-bg-soft, #f9fafb);
}
.e2zai-scope .e2zai-projects-generator-setuprow {
	display: grid; grid-template-columns: 1fr 1fr 170px; gap: 12px; margin-bottom: 12px;
}
.e2zai-scope .e2zai-projects-generator-customwrap { display: flex; gap: 6px; }
.e2zai-scope .e2zai-projects-generator-customwrap .e2zai-input { flex: 1; }
.e2zai-scope .e2zai-projects-generator-mic.is-active { background: #ef4444; color: #fff; animation: e2zai-pg-pulse 1.2s infinite; }
@keyframes e2zai-pg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.e2zai-scope .e2zai-projects-generator-filters {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px; margin-bottom: 14px;
}
.e2zai-scope .e2zai-projects-generator-go { width: 100%; font-size: 16px; padding: 12px; }

.e2zai-scope .e2zai-projects-generator-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.e2zai-scope .e2zai-projects-generator-example {
	border: 1px solid var(--e2zai-border, #e5e7eb); border-radius: 999px;
	background: var(--e2zai-bg, #fff); color: var(--e2zai-text, #1f2937);
	font-size: 12px; padding: 5px 12px; cursor: pointer; transition: all .15s ease;
}
.e2zai-scope .e2zai-projects-generator-example:hover { border-color: var(--e2zai-primary, #2563eb); color: var(--e2zai-primary, #2563eb); }

/* ---------- Tier tabs ---------- */
.e2zai-scope .e2zai-projects-generator-tiertabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.e2zai-scope .e2zai-projects-generator-tiertab {
	border: 1px solid var(--e2zai-border, #e5e7eb); border-radius: 999px;
	background: var(--e2zai-bg, #fff); color: var(--e2zai-text, #1f2937);
	font-size: 13px; font-weight: 600; padding: 7px 14px; cursor: pointer; transition: all .15s ease;
}
.e2zai-scope .e2zai-projects-generator-tiertab.is-active {
	background: var(--e2zai-primary, #2563eb); border-color: var(--e2zai-primary, #2563eb); color: #fff;
}
.e2zai-scope .e2zai-projects-generator-tiercount {
	display: inline-block; min-width: 20px; text-align: center;
	background: rgba(255, 255, 255, .25); border-radius: 999px; font-size: 11px; padding: 1px 6px; margin-left: 4px;
}
.e2zai-scope .e2zai-projects-generator-tiertab:not(.is-active) .e2zai-projects-generator-tiercount { background: var(--e2zai-bg-soft, #f3f4f6); }

/* ---------- Ideas grid ---------- */
.e2zai-scope .e2zai-projects-generator-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px; margin-bottom: 14px;
}
.e2zai-scope .e2zai-projects-generator-card {
	border: 1px solid var(--e2zai-border, #e5e7eb);
	border-radius: 14px;
	background: var(--e2zai-bg, #fff);
	padding: 18px; display: flex; flex-direction: column; gap: 10px;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.e2zai-scope .e2zai-projects-generator-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); border-color: var(--e2zai-primary, #2563eb); }
.e2zai-scope .e2zai-projects-generator-card-patent { border-top: 3px solid #7c3aed; }
.e2zai-scope .e2zai-projects-generator-card-advanced { border-top: 3px solid #f59e0b; }

.e2zai-scope .e2zai-projects-generator-ihead { display: flex; align-items: center; justify-content: space-between; }
.e2zai-scope .e2zai-projects-generator-inum {
	font-size: 12px; font-weight: 700; color: var(--e2zai-primary, #2563eb);
	background: var(--e2zai-bg-soft, #eff6ff); border-radius: 6px; padding: 2px 8px;
}
.e2zai-scope .e2zai-projects-generator-ititle { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.35; }
.e2zai-scope .e2zai-projects-generator-irows { display: flex; flex-direction: column; gap: 8px; }
.e2zai-scope .e2zai-projects-generator-irow { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--e2zai-text, #1f2937); }
.e2zai-scope .e2zai-projects-generator-iemoji { flex-shrink: 0; }
.e2zai-scope .e2zai-projects-generator-imeta { display: flex; flex-wrap: wrap; gap: 6px; }
.e2zai-scope .e2zai-projects-generator-ibadge {
	font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 10px;
	background: var(--e2zai-bg-soft, #f3f4f6); color: var(--e2zai-text-soft, #6b7280);
	text-transform: capitalize;
}
.e2zai-scope .e2zai-pg-b-beginner { background: #dcfce7; color: #166534; }
.e2zai-scope .e2zai-pg-b-intermediate { background: #fef3c7; color: #92400e; }
.e2zai-scope .e2zai-pg-b-advanced { background: #fee2e2; color: #991b1b; }
.e2zai-scope .e2zai-pg-b-type { background: #dbeafe; color: #1e40af; }
.e2zai-scope .e2zai-projects-generator-ifoot {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: auto; padding-top: 10px; border-top: 1px solid var(--e2zai-border, #e5e7eb);
}
.e2zai-scope .e2zai-projects-generator-openlink {
	border: none; background: none; cursor: pointer; padding: 0;
	font-size: 13px; font-weight: 600; color: var(--e2zai-primary, #2563eb); text-align: left;
}
.e2zai-scope .e2zai-projects-generator-openlink:hover { text-decoration: underline; }

/* Skeleton */
.e2zai-scope .e2zai-projects-generator-card.is-skeleton { pointer-events: none; }
.e2zai-scope .e2zai-pg-sk {
	height: 12px; border-radius: 6px;
	background: linear-gradient(90deg, var(--e2zai-bg-soft, #f3f4f6) 25%, var(--e2zai-border, #e5e7eb) 50%, var(--e2zai-bg-soft, #f3f4f6) 75%);
	background-size: 200% 100%; animation: e2zai-pg-shimmer 1.2s infinite;
}
.e2zai-scope .e2zai-pg-sk-title { height: 16px; width: 80%; }
.e2zai-scope .e2zai-pg-sk-line { width: 100%; }
.e2zai-scope .e2zai-pg-sk-line.short { width: 55%; }
@keyframes e2zai-pg-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.e2zai-scope .e2zai-projects-generator-more { grid-column: 1 / -1; justify-self: center; min-width: 240px; }

/* ---------- Escalation ---------- */
.e2zai-scope .e2zai-projects-generator-escalate { text-align: center; margin-bottom: 14px; }
.e2zai-scope .e2zai-projects-generator-escbtn { font-size: 15px; padding: 11px 22px; border: none; }
.e2zai-scope .e2zai-projects-generator-escbtn-advanced { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.e2zai-scope .e2zai-projects-generator-escbtn-patent { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; }
.e2zai-scope .e2zai-projects-generator-escbtn:hover { filter: brightness(1.08); }

/* ---------- Status ---------- */
.e2zai-scope .e2zai-projects-generator-loadstep { font-size: 13px; font-style: italic; color: var(--e2zai-text-soft, #6b7280); margin-top: 6px; }
.e2zai-scope .e2zai-projects-generator-softmsg {
	border-left: 4px solid var(--e2zai-primary, #2563eb);
	background: var(--e2zai-bg-soft, #f9fafb);
	border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 8px 0;
}

/* ---------- Compare tray ---------- */
.e2zai-scope .e2zai-projects-generator-tray {
	display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
	border: 1px solid var(--e2zai-border, #e5e7eb);
	border-radius: var(--e2zai-radius, 12px);
	background: var(--e2zai-bg-soft, #f9fafb);
	padding: 10px 12px; margin-bottom: 14px;
}
.e2zai-scope .e2zai-projects-generator-traychips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.e2zai-scope .e2zai-projects-generator-traychip {
	display: inline-flex; align-items: center; gap: 5px;
	background: var(--e2zai-bg, #fff); border: 1px solid var(--e2zai-border, #e5e7eb);
	border-radius: 999px; font-size: 12px; padding: 4px 10px;
}
.e2zai-scope .e2zai-projects-generator-traychip button {
	border: none; background: none; cursor: pointer; font-size: 14px; line-height: 1;
	color: var(--e2zai-text-soft, #6b7280); padding: 0 2px;
}
.e2zai-scope .e2zai-projects-generator-traychip button:hover { color: #ef4444; }

/* ---------- Detail modal ---------- */
.e2zai-scope .e2zai-projects-generator-modal {
	position: fixed; inset: 0; z-index: 99998;
	background: rgba(0, 0, 0, .58);
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.e2zai-scope .e2zai-projects-generator-modal-inner {
	background: var(--e2zai-bg, #fff);
	border-radius: var(--e2zai-radius, 12px);
	width: 100%; max-width: 860px; max-height: 92vh;
	overflow: auto; padding: 0 16px 16px;
}
.e2zai-scope .e2zai-projects-generator-modal-head {
	position: sticky; top: 0; z-index: 2;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: var(--e2zai-bg, #fff);
	border-bottom: 1px solid var(--e2zai-border, #e5e7eb);
	padding: 14px 0 10px; margin-bottom: 10px;
}
.e2zai-scope .e2zai-projects-generator-modal-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.e2zai-scope .e2zai-projects-generator-modal-bar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.e2zai-scope .e2zai-projects-generator-langtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.e2zai-scope .e2zai-projects-generator-langtab {
	border: 1px solid var(--e2zai-border, #e5e7eb); border-radius: 999px;
	background: var(--e2zai-bg, #fff); color: var(--e2zai-text, #1f2937);
	font-size: 12.5px; font-weight: 600; padding: 5px 12px; cursor: pointer;
}
.e2zai-scope .e2zai-projects-generator-langtab.is-active {
	background: var(--e2zai-primary, #2563eb); border-color: var(--e2zai-primary, #2563eb); color: #fff;
}
.e2zai-scope .e2zai-projects-generator-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }

/* Section cards */
.e2zai-scope .e2zai-projects-generator-seccard {
	border: 1px solid var(--e2zai-border, #e5e7eb);
	border-radius: var(--e2zai-radius, 12px);
	padding: 13px 15px; margin-bottom: 12px;
	background: var(--e2zai-bg, #fff);
}
.e2zai-scope .e2zai-projects-generator-sectitle { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.e2zai-scope .e2zai-projects-generator-secbody { font-size: 14px; line-height: 1.65; }
.e2zai-scope .e2zai-projects-generator-secbody p { margin: 0 0 8px; }
.e2zai-scope .e2zai-projects-generator-sec-patent { border-color: #c4b5fd; background: #faf5ff; }
.e2zai-scope .e2zai-dark .e2zai-projects-generator-sec-patent,
.e2zai-dark .e2zai-scope .e2zai-projects-generator-sec-patent { background: rgba(124, 58, 237, .12); }

/* Tables */
.e2zai-scope .e2zai-projects-generator-tablewrap { overflow-x: auto; margin: 8px 0; }
.e2zai-scope .e2zai-projects-generator-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.e2zai-scope .e2zai-projects-generator-table th,
.e2zai-scope .e2zai-projects-generator-table td {
	border: 1px solid var(--e2zai-border, #d1d5db); padding: 7px 10px; text-align: left;
}
.e2zai-scope .e2zai-projects-generator-table th { background: var(--e2zai-primary, #2563eb); color: #fff; font-weight: 600; }
.e2zai-scope .e2zai-projects-generator-table tbody tr:nth-child(even) { background: var(--e2zai-bg-soft, #f9fafb); }

/* Code blocks */
.e2zai-scope .e2zai-projects-generator-codewrap { margin: 8px 0; border: 1px solid var(--e2zai-border, #e5e7eb); border-radius: 8px; overflow: hidden; }
.e2zai-scope .e2zai-projects-generator-codebar {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--e2zai-bg-soft, #f3f4f6); font-size: 11.5px; color: var(--e2zai-text-soft, #6b7280);
	padding: 5px 10px;
}
.e2zai-scope .e2zai-pg-code-copy {
	border: none; background: none; cursor: pointer; font-size: 11.5px;
	color: var(--e2zai-primary, #2563eb); font-weight: 600;
}
.e2zai-scope .e2zai-projects-generator-code {
	margin: 0; padding: 10px 12px; overflow-x: auto;
	background: var(--e2zai-bg, #fff);
	font-family: Consolas, Monaco, "Courier New", monospace; font-size: 12.5px; line-height: 1.5;
	white-space: pre;
}

/* Read more */
.e2zai-scope .e2zai-projects-generator-readmore h4 { margin: 4px 0 8px; font-size: 14px; }
.e2zai-scope .e2zai-projects-generator-rmgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 12px; }
.e2zai-scope .e2zai-projects-generator-rmcard {
	display: flex; flex-direction: column; gap: 4px;
	border: 1px solid var(--e2zai-border, #e5e7eb); border-radius: 10px;
	padding: 10px 12px; font-size: 13px; text-decoration: none;
	color: var(--e2zai-text, #1f2937); background: var(--e2zai-bg-soft, #f9fafb);
	transition: border-color .15s ease;
}
.e2zai-scope .e2zai-projects-generator-rmcard:hover { border-color: var(--e2zai-primary, #2563eb); }
.e2zai-scope .e2zai-projects-generator-rmgo { color: var(--e2zai-primary, #2563eb); font-size: 12px; font-weight: 600; }

/* Feedback */
.e2zai-scope .e2zai-projects-generator-feedback {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; color: var(--e2zai-text-soft, #6b7280);
	border-top: 1px solid var(--e2zai-border, #e5e7eb); padding-top: 10px;
}

/* ---------- Tips ---------- */
.e2zai-scope .e2zai-projects-generator-tips { margin-top: 16px; }
.e2zai-scope .e2zai-projects-generator-tips h4 { margin: 0 0 10px; font-size: 15px; }
.e2zai-scope .e2zai-projects-generator-tipsgrid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px;
}
.e2zai-scope .e2zai-projects-generator-tip {
	border: 1px solid var(--e2zai-border, #e5e7eb); border-radius: 10px;
	padding: 10px 12px; background: var(--e2zai-bg-soft, #f9fafb);
}
.e2zai-scope .e2zai-projects-generator-tip strong { display: block; font-size: 13px; margin-bottom: 3px; }
.e2zai-scope .e2zai-projects-generator-tip p { margin: 0; font-size: 12.5px; color: var(--e2zai-text-soft, #6b7280); line-height: 1.5; }

.e2zai-scope .e2zai-projects-generator-hint { margin-top: 12px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.e2zai-scope .e2zai-projects-generator-setuprow { grid-template-columns: 1fr; }
	.e2zai-scope .e2zai-projects-generator-modal { padding: 8px; }
	.e2zai-scope .e2zai-projects-generator-modal-inner { max-height: 96vh; padding: 0 12px 12px; }
	.e2zai-scope .e2zai-projects-generator-toolbar { width: 100%; }
	.e2zai-scope .e2zai-projects-generator-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.e2zai-scope .e2zai-projects-generator-card,
	.e2zai-scope .e2zai-pg-sk,
	.e2zai-scope .e2zai-projects-generator-mic.is-active { animation: none; transition: none; }
}

/* Live timer + elapsed line */
.e2zai-scope .e2zai-projects-generator-timer {
	display: inline-block; min-width: 44px;
	font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums;
	color: var(--e2zai-primary, #2563eb);
	background: var(--e2zai-bg-soft, #eff6ff);
	border-radius: 6px; padding: 1px 7px; margin-left: 4px; font-size: 12px;
}
.e2zai-scope .e2zai-projects-generator-elapsed {
	font-size: 12.5px; font-weight: 600; color: #16a34a;
	margin: 6px 0; text-align: center;
}
