/* ============================================
   SEO OPPORTUNITY GAP FINDER CSS
   ============================================ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
    text-align: left;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

/* 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;
}

/* Gap Highlights */
.gap-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.gap-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.gap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.gap-card.critical::before { background: #ef4444; }
.gap-card.high::before { background: #f59e0b; }
.gap-card.moderate::before { background: var(--accent); }
.gap-card.success::before { background: #10b981; }

.gap-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.gap-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: #fff;
}

.gap-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Main Grid */
.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.dash-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
}

.chart-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
    margin-top: 24px;
}

.card-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.card-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

/* Recommendations */
.rec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.rec-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.rec-number {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.rec-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #fff;
}

.rec-content p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.rec-impact {
    margin-left: auto;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Revenue Financials */
.fin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.fin-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.fin-val {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
    margin: 8px 0;
}

.fin-lbl {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 1024px) {
    .gap-highlights { grid-template-columns: 1fr 1fr; }
    .dash-main-grid { grid-template-columns: 1fr; }
}
@media(max-width: 600px) {
    .gap-highlights { grid-template-columns: 1fr; }
    .export-actions { display: none; /* Hide export buttons on mobile for simplicity */ }
}
