* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 2.5em;
    color: #58a6ff;
    margin-bottom: 10px;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.plugin-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s;
}

.plugin-card:hover {
    transform: translateY(-2px);
    border-color: #58a6ff;
}

.plugin-card h2 {
    color: #58a6ff;
    margin-bottom: 10px;
}

.plugin-info {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.version {
    background: #238636;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
}

.mc-version {
    background: #1f6feb;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
}

.plugin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 8px 16px;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.2s;
}

.btn:hover {
    background: #30363d;
}

.btn-primary {
    background: #238636;
    color: white;
    border-color: #238636;
}

.btn-primary:hover {
    background: #2ea043;
}

.empty {
    text-align: center;
    padding: 60px;
    color: #8b949e;
}

/* Базовые стили */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навбар */
.navbar {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #58a6ff;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
}

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: #c9d1d9; text-decoration: none; }
.nav-links a:hover { color: #58a6ff; }

/* Заголовок */
header {
    text-align: center;
    padding: 60px 0 40px;
}
header h1 { font-size: 2.5em; color: #58a6ff; margin-bottom: 10px; }
header p { color: #8b949e; font-size: 1.1em; }

/* Сетка плагинов */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.plugin-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.plugin-card:hover {
    transform: translateY(-3px);
    border-color: #58a6ff;
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.1);
}

.plugin-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.plugin-card h2 { margin-bottom: 10px; }
.plugin-card h2 a { color: #58a6ff; text-decoration: none; }
.plugin-card h2 a:hover { text-decoration: underline; }
.plugin-card p { color: #8b949e; margin-bottom: 15px; line-height: 1.5; }

.plugin-info {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.version, .mc-version, .category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}
.version { background: #238636; color: white; }
.mc-version { background: #1f6feb; color: white; }
.category { background: #6e7681; color: white; }

.plugin-stats { color: #8b949e; margin-bottom: 15px; }

.plugin-actions { display: flex; gap: 10px; }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}
.btn:hover { background: #30363d; }
.btn-primary { background: #238636; color: white; border-color: #238636; }
.btn-primary:hover { background: #2ea043; }
.btn-lg { padding: 14px 28px; font-size: 1em; }
.btn-sm { padding: 6px 12px; font-size: 0.8em; }

/* Пустое состояние */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}
.empty-state h2 { color: #8b949e; margin: 15px 0; }

/* Футер */
footer {
    background: #161b22;
    border-top: 1px solid #30363d;
    margin-top: 60px;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-content h3 { color: #58a6ff; margin-bottom: 10px; }
.footer-content h4 { color: #8b949e; margin-bottom: 10px; }
.footer-content a { display: block; color: #8b949e; text-decoration: none; margin-bottom: 5px; }
.footer-content a:hover { color: #58a6ff; }
.footer-content p { color: #8b949e; }

.footer-bottom {
    border-top: 1px solid #30363d;
    padding-top: 20px;
    text-align: center;
    color: #484f58;
}

/* Страница плагина */
.plugin-page { margin: 30px 0; }
.plugin-header { display: flex; gap: 20px; margin-bottom: 30px; }
.plugin-icon-large { width: 100px; height: 100px; border-radius: 16px; }
.plugin-header h1 { font-size: 2em; margin-bottom: 10px; }
.plugin-description { color: #8b949e; margin-bottom: 15px; }
.plugin-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.plugin-actions-bar { display: flex; gap: 10px; margin: 30px 0; }

.badge { padding: 5px 12px; border-radius: 15px; font-size: 0.85em; }
.badge-primary { background: #238636; color: white; }
.badge-secondary { background: #1f6feb; color: white; }
.badge-info { background: #6e7681; color: white; }
.badge-success { background: #1a7f37; color: white; }

/* Версии */
.versions { margin-top: 40px; }
.versions-list { margin-top: 20px; }
.version-item {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.version-header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.version-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.version-size { color: #8b949e; font-size: 0.85em; }

/* Адаптив */
@media (max-width: 768px) {
    .plugins-grid { grid-template-columns: 1fr; }
    .plugin-header { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; gap: 20px; }
    .nav-links { gap: 10px; font-size: 0.9em; }
}