/* DaggerRPG - Основной стиль */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --dark: #0a0a0f;
    --dark-light: #1a1a2e;
    --dark-lighter: #2d2d44;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Навигация */
.navbar {
    background: var(--dark-light);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.navbar-brand span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.nav-links .btn-login {
    background: var(--primary);
    color: white;
}

.nav-links .btn-register {
    background: var(--secondary);
    color: var(--dark);
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--primary-dark) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="%236c5ce7" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>');
    opacity: 0.1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 206, 201, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Карточки */
.card {
    background: var(--dark-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--dark-lighter);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
}

.card-header {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 1px solid var(--dark-lighter);
    padding-bottom: 0.5rem;
}

/* Сетка предметов */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dark-lighter);
    transition: all 0.3s;
}

.item-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.item-image {
    width: 100%;
    height: 180px;
    background: var(--dark-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.item-info {
    padding: 1rem;
}

.item-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: bold;
}

/* Формы */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--dark-lighter);
    border: 1px solid var(--dark-light);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th, .table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--dark-lighter);
}

.table th {
    background: var(--dark-lighter);
    color: var(--primary);
    font-weight: 600;
}

.table tr:hover {
    background: rgba(108, 92, 231, 0.1);
}

/* Статусы */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: var(--success); color: white; }
.badge-warning { background: var(--warning); color: var(--dark); }
.badge-danger { background: var(--danger); color: white; }
.badge-primary { background: var(--primary); color: white; }

/* Алерты */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success { background: rgba(0, 184, 148, 0.2); border: 1px solid var(--success); color: var(--success); }
.alert-danger { background: rgba(214, 48, 49, 0.2); border: 1px solid var(--danger); color: var(--danger); }
.alert-warning { background: rgba(253, 203, 110, 0.2); border: 1px solid var(--warning); color: var(--warning); }

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid var(--primary);
}

.news-source {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.news-source.vk { background: #4a76a8; color: white; }
.news-source.telegram { background: #0088cc; color: white; }

/* Админ панель */
.admin-sidebar {
    width: 250px;
    background: var(--dark-light);
    min-height: 100vh;
    padding: 1rem;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 2px solid var(--primary);
}

.admin-sidebar a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--primary);
    color: white;
}

.admin-content {
    margin-left: 270px;
    padding: 2rem;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--dark-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border-top: 3px solid var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Футер */
.footer {
    background: var(--dark-light);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--primary);
    margin-top: 3rem;
    color: var(--text-muted);
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .admin-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    .admin-content {
        margin-left: 0;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}