/* ============================================
   AI CITATION GAP FINDER CSS
   ============================================ */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
    text-align: left;
}

@media(max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
}

.help-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    display: block;
    text-align: center;
}

/* Loader */
#loaderView {
    display: none;
    text-align: center;
    padding: 60px 20px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-pulse {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(99,102,241,0.5) 0%, transparent 70%);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: pulseAI 2s ease-in-out infinite;
    position: relative;
    border: 1px solid rgba(99,102,241,0.3);
}

.ai-pulse::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 30px #6366f1;
}

@keyframes pulseAI {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 30px rgba(99,102,241,0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

.log-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    max-width: 550px;
    margin: 24px auto 0;
    text-align: left;
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    height: 160px;
    overflow-y: auto;
}

.log-entry { margin-bottom: 8px; animation: slideUp 0.3s; }
.log-entry span { color: #6366f1; }

/* Dashboard Views */
#dashboardView {
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    text-align: left;
}

.export-actions {
    display: flex;
    gap: 12px;
}

.dash-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.card-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

/* Probabilities Matrix */
.prob-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.prob-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.prob-box.comp { border-top: 4px solid #ef4444; }
.prob-box.you { border-top: 4px solid #6366f1; }
.prob-box.gap { border-top: 4px solid #f59e0b; background: rgba(245, 158, 11, 0.05); }

.prob-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}

.prob-val {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

.prob-box.gap .prob-val { color: #f59e0b; }

@media(max-width: 768px) {
    .prob-grid { grid-template-columns: 1fr; }
}

/* Missing Entities Grid */
.missing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.m-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.m-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%; width: 4px;
    background: #6366f1;
}

.m-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* Fixes List */
.fixes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fix-item {
    display: flex;
    gap: 16px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 20px;
    border-radius: 12px;
}

.fix-icon {
    width: 32px; height: 32px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #10b981;
    flex-shrink: 0;
}

.fix-content h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 6px;
}

.fix-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
