/* ═══════════════════════════════════════════════════════
   AWESOME LISTS // Unredacted Resource Database
   ═══════════════════════════════════════════════════════ */

.al-container {
    max-width: clamp(1000px, 88vw, 2200px);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ─── Stats Bar ────────────────────────────────────────── */
.al-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(10, 10, 12, 0.7);
    border: 1px solid rgba(255, 60, 60, 0.1);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.al-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
}
.al-stat-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}
.al-stat-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: #d8d8d8;
    font-weight: 700;
}
.al-stat-value.amber { color: rgba(255, 170, 0, 0.8); }
.al-stat-value.green { color: #00ff88; }

/* ─── Search ───────────────────────────────────────────── */
.al-search-container {
    position: relative;
    margin-bottom: 1.5rem;
}
.al-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 170, 0, 0.5);
    font-size: 1.1rem;
}
.al-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(255, 60, 60, 0.15);
    border-radius: 4px;
    color: #d8d8d8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    outline: none;
    box-sizing: border-box;
}
.al-search-input:focus {
    border-color: rgba(255, 170, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.1);
}
.al-search-input::placeholder {
    color: #555;
    letter-spacing: 2px;
}
.al-search-count {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 170, 0, 0.6);
}

/* ─── Search Results ───────────────────────────────────── */
.al-search-results {
    margin-bottom: 1.5rem;
}
.al-search-result {
    padding: 1rem 1.2rem;
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 60, 60, 0.08);
    border-left: 3px solid rgba(255, 170, 0, 0.3);
    margin-bottom: 0.5rem;
    border-radius: 3px;
    transition: border-color 0.2s;
}
.al-search-result:hover {
    border-left-color: #ff3c3c;
}
.al-result-breadcrumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}
.al-result-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #d8d8d8;
    margin-bottom: 0.3rem;
}
.al-result-name a {
    color: rgba(255, 170, 0, 0.8);
    text-decoration: none;
}
.al-result-name a:hover {
    color: #ff3c3c;
    text-decoration: underline;
}
.al-result-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #999;
    line-height: 1.5;
}
.al-result-stars {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 170, 0, 0.5);
    margin-left: 0.5rem;
}

/* ─── Sector Grid ──────────────────────────────────────── */
.al-sector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.al-sector-card {
    background: rgba(10, 10, 12, 0.85);
    border: 1px solid rgba(255, 60, 60, 0.12);
    border-left: 3px solid rgba(255, 170, 0, 0.5);
    border-radius: 4px;
    padding: 1.3rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.al-sector-card:hover {
    border-color: rgba(255, 60, 60, 0.4);
    border-left-color: #ff3c3c;
    background: rgba(15, 15, 20, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 60, 60, 0.08);
}
.al-sector-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}
.al-sector-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 170, 0, 0.5);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}
.al-sector-name {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #d8d8d8;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.al-sector-meta {
    display: flex;
    gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #666;
}
.al-sector-meta .amber { color: rgba(255, 170, 0, 0.7); }

/* ─── Back Button ──────────────────────────────────────── */
.al-back {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 170, 0, 0.7);
    cursor: pointer;
    margin-bottom: 1.5rem;
    display: inline-block;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.al-back:hover {
    color: #ff3c3c;
}

/* ─── Sector Detail Header ─────────────────────────────── */
.al-detail-header {
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(10, 10, 12, 0.7);
    border: 1px solid rgba(255, 60, 60, 0.1);
    border-radius: 4px;
}
.al-detail-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 170, 0, 0.5);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}
.al-detail-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #d8d8d8;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.al-detail-meta {
    display: flex;
    gap: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #666;
}
.al-detail-meta .amber { color: rgba(255, 170, 0, 0.7); }

/* ─── List Cards (inside sector) ───────────────────────── */
.al-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}
.al-list-card {
    background: rgba(10, 10, 12, 0.7);
    border: 1px solid rgba(255, 60, 60, 0.1);
    border-left: 3px solid rgba(255, 170, 0, 0.3);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.al-list-card:hover {
    border-color: rgba(255, 60, 60, 0.35);
    border-left-color: #ff3c3c;
    background: rgba(15, 15, 20, 0.9);
}
.al-list-card.active {
    border-color: rgba(255, 170, 0, 0.5);
    border-left-color: rgba(255, 170, 0, 0.8);
    background: rgba(20, 18, 10, 0.8);
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.05);
}
.al-list-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #d8d8d8;
    margin-bottom: 0.3rem;
}
.al-list-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #999;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    max-height: 2.8em;
    overflow: hidden;
}
.al-list-stats {
    display: flex;
    gap: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #666;
}
.al-list-stats .amber { color: rgba(255, 170, 0, 0.6); }

/* ─── List Detail Panel ────────────────────────────────── */
.al-list-detail {
    background: rgba(8, 8, 10, 0.8);
    border: 1px solid rgba(255, 60, 60, 0.12);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.al-list-detail-header {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #d8d8d8;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.al-list-detail-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.al-list-detail-github {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 170, 0, 0.7);
    text-decoration: none;
    margin-bottom: 1.2rem;
}
.al-list-detail-github:hover { color: #ff3c3c; }

/* ─── Subcategory Cards (inside list detail) ───────────── */
.al-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.al-sub-card {
    background: rgba(12, 12, 15, 0.7);
    border: 1px solid rgba(255, 60, 60, 0.08);
    border-left: 2px solid rgba(255, 170, 0, 0.25);
    border-radius: 3px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.al-sub-card:hover {
    border-left-color: rgba(255, 170, 0, 0.6);
    background: rgba(15, 15, 18, 0.8);
}
.al-sub-card.active {
    border-color: rgba(255, 170, 0, 0.4);
    border-left-color: rgba(255, 170, 0, 0.7);
    background: rgba(20, 18, 10, 0.7);
}
.al-sub-card-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #d8d8d8;
    margin-bottom: 0.2rem;
}
.al-sub-card-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #666;
}

/* ─── Entries Panel ────────────────────────────────────── */
.al-entries-panel {
    background: rgba(6, 6, 8, 0.6);
    border: 1px solid rgba(255, 60, 60, 0.08);
    border-radius: 3px;
    padding: 1.2rem;
    margin-top: 1rem;
}
.al-entries-header {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: rgba(255, 170, 0, 0.8);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 60, 60, 0.08);
}
.al-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.al-entry:last-child { border-bottom: none; }
.al-entry-bullet {
    color: rgba(255, 170, 0, 0.5);
    font-size: 0.7rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.al-entry-content { flex: 1; }
.al-entry-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #d8d8d8;
    margin-bottom: 0.2rem;
}
.al-entry-name a {
    color: rgba(255, 170, 0, 0.8);
    text-decoration: none;
}
.al-entry-name a:hover {
    color: #ff3c3c;
    text-decoration: underline;
}
.al-entry-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #999;
    line-height: 1.5;
}
.al-entry-stars {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 170, 0, 0.4);
    margin-left: 0.5rem;
}

/* ─── Loading / Empty ──────────────────────────────────── */
.al-loading {
    text-align: center;
    padding: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 2px;
}
.al-empty {
    text-align: center;
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #555;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
    .al-sector-grid,
    .al-list-grid,
    .al-sub-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 601px) and (max-width: 900px) {
    .al-sector-grid,
    .al-list-grid,
    .al-sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 901px) and (max-width: 1200px) {
    .al-sector-grid,
    .al-list-grid,
    .al-sub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
