/* ===== AI INTERVIEW PREP ===== */

/* Header */
.aiq-header { background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #4f46e5 100%) !important; }

/* Layout */
.aiq-layout { display: grid; grid-template-columns: 360px 1fr; gap: 22px; align-items: start; margin-bottom: 28px; }

/* Controls */
.aiq-controls { background: #fff; border: 2px solid #e5e7eb; border-radius: 20px; padding: 20px; position: sticky; top: 80px; max-height: 92vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #e5e7eb #fff; }
.aiq-controls::-webkit-scrollbar { width: 4px; }
.aiq-controls::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.aiq-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid #f3f4f6; }
.aiq-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.aiq-section-title { font-size: 12px; font-weight: 800; color: #1f2937; margin-bottom: 10px; letter-spacing: .3px; }
.aiq-req { color: #ef4444; }
.aiq-hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* Input */
.aiq-input { width: 100%; border: 2px solid #e5e7eb; border-radius: 10px; padding: 10px 13px; font-size: 13px; font-family: inherit; outline: none; transition: border-color .2s; box-sizing: border-box; color: #1f2937; }
.aiq-input:focus { border-color: #4f46e5; }

/* Experience Grid */
.aiq-exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.aiq-exp-btn { background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 8px 5px; font-size: 11px; font-weight: 700; color: #374151; cursor: pointer; transition: all .2s; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.aiq-exp-btn small { font-weight: 400; font-size: 10px; color: #9ca3af; }
.aiq-exp-btn:hover { border-color: #4f46e5; background: #eef2ff; }
.aiq-exp-btn.active { background: linear-gradient(135deg, #1e40af, #4f46e5); border-color: #4f46e5; color: #fff; }
.aiq-exp-btn.active small { color: #c7d2fe; }

/* Type Grid */
.aiq-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.aiq-type-btn { background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 9px 6px; font-size: 11px; font-weight: 700; color: #374151; cursor: pointer; transition: all .2s; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.aiq-type-btn small { font-weight: 400; font-size: 10px; color: #9ca3af; }
.aiq-type-btn:hover { border-color: #4f46e5; background: #eef2ff; }
.aiq-type-btn.active { background: linear-gradient(135deg, #1e40af, #4f46e5); border-color: #4f46e5; color: #fff; }
.aiq-type-btn.active small { color: #c7d2fe; }

/* Count Slider */
.aiq-count-row { display: flex; align-items: center; gap: 12px; }
.aiq-count-row input[type="range"] { flex: 1; accent-color: #4f46e5; height: 6px; }
.aiq-count-val { font-size: 20px; font-weight: 900; color: #4f46e5; min-width: 28px; text-align: center; }

/* Lang Btns */
.aiq-lang-btns { display: flex; gap: 6px; }
.aiq-lang-btn { flex: 1; background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 9px; padding: 9px 5px; font-size: 12px; font-weight: 700; color: #374151; cursor: pointer; transition: all .2s; text-align: center; }
.aiq-lang-btn:hover { border-color: #4f46e5; }
.aiq-lang-btn.active { background: linear-gradient(135deg, #1e40af, #4f46e5); border-color: #4f46e5; color: #fff; }

/* Examples */
.aiq-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.aiq-ex-btn { background: #eef2ff; border: 1.5px solid #c7d2fe; border-radius: 20px; padding: 6px 12px; font-size: 11px; font-weight: 700; color: #3730a3; cursor: pointer; transition: all .2s; white-space: nowrap; }
.aiq-ex-btn:hover { background: #4f46e5; color: #fff; border-color: #4f46e5; }

/* Generate Button */
.aiq-generate-btn { width: 100%; background: linear-gradient(135deg, #1e40af, #4f46e5, #7c3aed); color: #fff; border: none; border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 900; cursor: pointer; transition: all .3s; box-shadow: 0 4px 20px rgba(79,70,229,.4); display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.aiq-generate-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,70,229,.5); }
.aiq-generate-btn:disabled { opacity: .7; cursor: not-allowed; }

/* Output */
.aiq-output { display: flex; flex-direction: column; gap: 14px; min-height: 500px; }

/* Placeholder */
.aiq-placeholder { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border: 3px dashed #c7d2fe; border-radius: 20px; padding: 50px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; justify-content: center; min-height: 400px; }
.aiq-ph-icon { font-size: 64px; animation: aiq-float 3s ease-in-out infinite; }
@keyframes aiq-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.aiq-placeholder h3 { font-size: 22px; font-weight: 800; color: #1e40af; margin: 0; }
.aiq-placeholder p { font-size: 14px; color: #3730a3; max-width: 380px; margin: 0; line-height: 1.6; }
.aiq-ph-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 380px; }
.aiq-ph-tip { background: #fff; border: 2px solid #c7d2fe; border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 600; color: #3730a3; text-align: left; }

/* Loading */
.aiq-loading { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border: 3px solid #c7d2fe; border-radius: 20px; padding: 60px 30px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; min-height: 300px; justify-content: center; }
.aiq-loading-icon { font-size: 52px; animation: aiq-spin 2s linear infinite; }
@keyframes aiq-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.aiq-loading-title { font-size: 18px; font-weight: 800; color: #1e40af; }
.aiq-loading-sub { font-size: 13px; color: #6366f1; margin: 0; }
.aiq-loading-dots { display: flex; gap: 8px; }
.aiq-loading-dots span { width: 10px; height: 10px; background: #4f46e5; border-radius: 50%; animation: aiq-dot 1s ease-in-out infinite; }
.aiq-loading-dots span:nth-child(2) { animation-delay: .2s; }
.aiq-loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes aiq-dot { 0%,100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.2); opacity: 1; } }

/* Error */
.aiq-error { display: flex; align-items: center; gap: 10px; padding: 20px; background: #fef2f2; border: 2px solid #fecaca; border-radius: 14px; color: #dc2626; font-size: 14px; font-weight: 600; }

/* Results */
.aiq-results { display: flex; flex-direction: column; gap: 14px; }
.aiq-results-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 20px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-radius: 14px; border: 2px solid #c7d2fe; }
.aiq-results-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aiq-results-info h3 { font-size: 16px; font-weight: 800; color: #1e40af; margin: 0; }
.aiq-results-badge { background: #4f46e5; color: #fff; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.aiq-results-actions { display: flex; gap: 8px; }
.aiq-copy-all-btn { background: #4f46e5; color: #fff; border: none; border-radius: 9px; padding: 8px 16px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
.aiq-copy-all-btn:hover { background: #3730a3; }
.aiq-regen-btn { background: #fff; border: 2px solid #c7d2fe; border-radius: 9px; padding: 8px 16px; font-size: 12px; font-weight: 700; color: #4f46e5; cursor: pointer; transition: all .2s; }
.aiq-regen-btn:hover { border-color: #4f46e5; background: #eef2ff; }

/* Q&A Cards */
.aiq-cards { display: flex; flex-direction: column; gap: 12px; }
.aiq-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 16px; overflow: hidden; transition: box-shadow .2s; }
.aiq-card:hover { box-shadow: 0 4px 20px rgba(79,70,229,.1); border-color: #c7d2fe; }
.aiq-card-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-bottom: 2px solid #e0e7ff; gap: 12px; }
.aiq-q-num { background: #4f46e5; color: #fff; font-weight: 900; font-size: 13px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aiq-q-text { font-size: 14px; font-weight: 700; color: #1e40af; line-height: 1.5; flex: 1; }
.aiq-copy-q-btn { background: #fff; border: 1.5px solid #c7d2fe; border-radius: 8px; padding: 5px 10px; font-size: 11px; font-weight: 700; color: #4f46e5; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all .2s; }
.aiq-copy-q-btn:hover { background: #4f46e5; color: #fff; }
.aiq-card-answer { padding: 14px 16px; }
.aiq-answer-label { font-size: 11px; font-weight: 800; color: #10b981; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.aiq-answer-text { font-size: 13px; color: #374151; line-height: 1.7; }
.aiq-card-footer { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 2px solid #f3f4f6; background: #fafafa; }
.aiq-copy-ans-btn { background: #10b981; color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
.aiq-copy-ans-btn:hover { background: #059669; }

/* Tips Section */
.aiq-tips-section { background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-radius: 20px; padding: 28px; border: 2px solid #c7d2fe; margin-bottom: 28px; }
.aiq-tips-section h3 { font-size: 18px; font-weight: 800; color: #1e40af; margin: 0 0 18px; }
.aiq-tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.aiq-tip-card { background: #fff; border-radius: 12px; padding: 16px; border: 2px solid #c7d2fe; text-align: center; }
.aiq-tip-icon { font-size: 28px; margin-bottom: 8px; }
.aiq-tip-card h4 { font-size: 13px; font-weight: 800; color: #1e40af; margin: 0 0 6px; }
.aiq-tip-card p { font-size: 12px; color: #6366f1; margin: 0; line-height: 1.5; }

/* Responsive */
@media (max-width: 1000px) {
    .aiq-layout { grid-template-columns: 1fr; }
    .aiq-controls { position: static; max-height: none; }
    .aiq-tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .aiq-exp-grid { grid-template-columns: repeat(3, 1fr); }
    .aiq-type-grid { grid-template-columns: 1fr 1fr; }
    .aiq-ph-tips { grid-template-columns: 1fr; }
    .aiq-tips-grid { grid-template-columns: 1fr 1fr; }
    .aiq-results-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
    .aiq-exp-grid { grid-template-columns: repeat(2, 1fr); }
    .aiq-tips-grid { grid-template-columns: 1fr; }
    .aiq-lang-btns { flex-direction: column; }
}
