/* 25 LeetCode interview problems — picker + Java/Python tabs */

.dsa25-page .cs-container {
    max-width: 1120px;
}

.dsa25-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
}

.dsa25-filter {
    border: 1px solid #c5ddd0;
    background: #fff;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: Inter, sans-serif;
}

.dsa25-filter.active {
    background: #166534;
    color: #fff;
    border-color: #166534;
}

.dsa25-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.dsa25-pick {
    text-align: left;
    background: #fffef8;
    border: 1px solid #e7e0d0;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    font-family: Inter, sans-serif;
    min-height: 76px;
}

.dsa25-pick:hover,
.dsa25-pick.active {
    border-color: #15803d;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.12);
}

.dsa25-pick.active {
    background: #f0fdf4;
}

.dsa25-pick-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.dsa25-pick-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.dsa25-diff.easy { color: #15803d; }
.dsa25-diff.medium { color: #c2410c; }
.dsa25-diff.hard { color: #be123c; }

.dsa25-detail {
    background: #fffef8;
    border: 1px solid #e7e0d0;
    border-radius: 10px;
    padding: 1.4rem 1.35rem 1.6rem;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.06);
}

.dsa25-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.dsa25-detail-head h2 {
    font-size: 1.45rem;
    margin: 0;
    color: #0f172a;
}

.dsa25-lc {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.dsa25-lc:hover { text-decoration: underline; }

.dsa25-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.35rem 0 1rem;
}

.dsa25-tag {
    background: #dcfce7;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.dsa25-block {
    margin: 1.1rem 0;
}

.dsa25-block h3 {
    font-family: Caveat, cursive;
    font-size: 1.45rem;
    color: #1e40af;
    margin: 0 0 0.45rem;
}

.dsa25-block p,
.dsa25-block .dsa25-text {
    white-space: pre-wrap;
    line-height: 1.55;
    color: #334155;
    font-size: 0.95rem;
    margin: 0;
}

.dsa25-think {
    background: #eff6ff;
    border: 1px dashed #60a5fa;
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.dsa25-think h3 { color: #1d4ed8; }

.dsa25-diagram {
    background: #0f172a;
    color: #bbf7d0;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}

.dsa25-note {
    background: #fef3c7;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.dsa25-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0.6rem 0 0.5rem;
}

.dsa25-tab {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-family: Inter, sans-serif;
}

.dsa25-tab.active {
    background: #1e293b;
    color: #f8fafc;
    border-color: #1e293b;
}

.dsa25-code-wrap {
    position: relative;
}

.dsa25-copy {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 1;
    background: #334155;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    cursor: pointer;
}

.dsa25-copy:hover { background: #0f172a; }

.dsa25-textarea {
    width: 100%;
    min-height: 220px;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 8px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 2rem 0.9rem 0.9rem;
    resize: vertical;
    box-sizing: border-box;
}

.dsa25-textarea.snippet {
    min-height: 120px;
}

.dsa25-nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.dsa25-nav-btns button {
    background: #166534;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: Inter, sans-serif;
}

.dsa25-nav-btns button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.dsa-home-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--arch-border, #e2e8f0);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.12), rgba(37, 99, 235, 0.1));
    text-decoration: none;
    color: inherit;
}

body.home-page .dsa-home-banner {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.16), rgba(56, 189, 248, 0.1));
    border-color: rgba(74, 222, 128, 0.25);
    color: #e2e8f0;
}

.dsa-home-banner strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.dsa-home-banner span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.dsa-home-banner em {
    font-style: normal;
    font-weight: 700;
    color: #4ade80;
}

@media (max-width: 640px) {
    .dsa25-picker { grid-template-columns: 1fr 1fr; }
    .dsa25-textarea { font-size: 0.75rem; }
}
