/* Company-wise DSA — dedicated section + algorithm visualizer */

.cdsa-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    padding: 3rem 0 2.5rem;
}

.cdsa-hero-lead {
    max-width: 42rem;
}

.cdsa-group-title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #818cf8;
    margin-bottom: 1rem;
}

.cdsa-company-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.cdsa-company-card:hover {
    border-color: rgba(129, 140, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: inherit;
}

.cdsa-company-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cdsa-company-meta {
    flex: 1;
    min-width: 0;
}

.cdsa-company-meta h2 {
    font-size: 1rem;
    margin: 0 0 0.15rem;
}

.cdsa-lc-badge {
    font-size: 0.7rem;
    color: #94a3b8;
}

.cdsa-problem-count {
    font-size: 0.8rem;
    color: #22c55e;
    font-weight: 600;
}

.cdsa-company-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.cdsa-company-header .cdsa-company-logo {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
}

.cdsa-problem-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: inherit;
    background: rgba(15, 23, 42, 0.4);
    transition: border-color 0.15s;
}

.cdsa-problem-row:hover {
    border-color: rgba(129, 140, 248, 0.45);
    color: inherit;
}

.cdsa-problem-row.solved {
    border-left: 3px solid #22c55e;
}

.cdsa-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

/* DSA visualizer widget */
.dsa-viz-host {
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dsa-viz-canvas-wrap {
    overflow-x: auto;
    border-radius: 8px;
    background: #020617;
}

.dsa-viz-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.dsa-viz-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.dsa-viz-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #1e293b;
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dsa-viz-btn:hover {
    background: #334155;
    border-color: #818cf8;
}

.dsa-viz-btn-play {
    width: 44px;
    background: #4f46e5;
    border-color: #6366f1;
}

.dsa-viz-step-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: 0.5rem;
}

.dsa-explain-block {
    line-height: 1.65;
}

.cdsa-viz-panel .cp-panel-title {
    color: #a5b4fc;
}

.cdsa-back-link {
    font-size: 0.875rem;
}
