* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f1117; color: #e6e8ec; }

.layout { display: flex; min-height: 100vh; }

.sidebar { width: 260px; flex-shrink: 0; background: #13151d; border-right: 1px solid #232636; padding: 28px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: #5b7cff; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.brand-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.brand-sub { color: #6b7280; font-size: 0.75rem; }

.nav { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #aab0c0; text-decoration: none; font-size: 0.88rem; transition: background 0.15s, color 0.15s; }
.nav-link:hover { background: #1c2030; color: #fff; }

.sidebar-footer { color: #565c6e; font-size: 0.75rem; padding-top: 16px; border-top: 1px solid #232636; }

.content { flex-grow: 1; min-width: 0; }

header { padding: 48px 40px 28px; border-bottom: 1px solid #232636; }
header h1 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.subtitle { color: #8b92a6; margin-bottom: 22px; font-size: 0.95rem; }

.search-wrap { display: flex; align-items: center; gap: 12px; max-width: 480px; }
#search { width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid #2c3142; background: #181b25; color: #e6e8ec; font-size: 0.92rem; outline: none; transition: border-color 0.2s; }
#search:focus { border-color: #5b7cff; }
.result-count { color: #6b7280; font-size: 0.8rem; white-space: nowrap; }

main { padding: 32px 40px 60px; }

.category { margin-bottom: 38px; }
.category h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: #d3d7e0; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #232636; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-cicd { background: #fc6d26; }
.dot-cluster { background: #4a90d9; }
.dot-quality { background: #4e9bcd; }
.dot-apps { background: #5b7cff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

.card { display: flex; flex-direction: column; background: #181b25; border: 1px solid #262a38; border-radius: 12px; padding: 18px 20px; text-decoration: none; color: inherit; transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.card:hover { transform: translateY(-3px); border-color: #5b7cff; background: #1d2130; }

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.icon { width: 32px; height: 32px; border-radius: 8px; color: #fff; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: 0.02em; }

.badge { font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-prod { background: rgba(91,214,140,0.15); color: #5bd68c; }
.badge-preprod { background: rgba(255,184,76,0.15); color: #ffb84c; }

.card h3 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.card .url { font-size: 0.83rem; color: #5b7cff; margin-bottom: 8px; word-break: break-all; }
.card .desc { font-size: 0.83rem; color: #8b92a6; line-height: 1.4; }

footer { text-align: center; padding: 24px; color: #565c6e; font-size: 0.83rem; border-top: 1px solid #232636; }

@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  header, main { padding-left: 20px; padding-right: 20px; }
}
