/* MASTERING LOGIC - HIGH-FIDELITY DESIGN SYSTEM
    COMPATIBILITY: UNIVERSAL (MOBILE/PC HEURISTICS)
    THEME: DEEP ONYX / COBALT CORE
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-black: #050505;
    --bg-card: #0d0d12;
    --bg-input: #000000;
    --accent-blue: #5865F2;
    --accent-blue-hover: #4752c4;
    --accent-yellow: #f1c40f;
    --accent-red: #ff4757;
    --text-white: #ffffff;
    --text-dim: #a0a0a0;
    --border-dim: rgba(255, 255, 255, 0.05);
    --radius-main: 24px;
    --radius-inner: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Master Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Navigation Architecture */
nav {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-dim);
    margin-bottom: 40px;
}

.logo { font-size: 1.8rem; font-weight: 800; }
.logo span { color: var(--accent-blue); }

/* Card System */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-main);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-dim);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Form Elements */
.input-group { margin-bottom: 20px; }

.input-field {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid #1a1a1a;
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-inner);
    font-size: 1rem;
    transition: 0.3s ease;
}

.input-field:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.2);
}

.primary-btn {
    width: 100%;
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--radius-inner);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.primary-btn:hover { background: var(--accent-blue-hover); transform: translateY(-2px); }

/* Registry Grid Logic */
.registry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.registry-column h3 {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.registry-item {
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-inner);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid var(--border-dim);
}

.item-name { font-weight: 600; font-size: 0.95rem; }

.action-stack { display: flex; gap: 8px; }

.mini-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
}

.btn-edit { background: var(--accent-yellow); color: #000; }
.btn-del { background: var(--accent-red); color: #fff; }

/* Bot Display Cards (Public) */
.bot-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.bot-card {
    background: var(--bg-card);
    border-radius: var(--radius-main);
    overflow: hidden;
    border: 1px solid var(--border-dim);
}

.bot-img { width: 100%; height: 180px; object-fit: cover; }

.bot-info { padding: 25px; }

.bot-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }

.bot-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    height: 60px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Mobile Heuristics */
@media (max-width: 768px) {
    .container { padding: 30px 15px; }
    .registry-grid { grid-template-columns: 1fr; }
    .card { padding: 20px; }
    h1 { font-size: 2rem; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }
