/* new_style.css */
:root {
    --primary: #9146FF;
    --primary-light: #b18cff;
    --primary-dark: #7a3ad9;
    --secondary: #FF3366;
    --accent: #41C1BA;
    --background: #0f0f1d;
    --card-bg: #1a1a2e;
    --text: #e6e6ff;
    --text-light: #a1a1c7;
    --border: #2d2d4a;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(65, 193, 186, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(145, 70, 255, 0.1) 0%, transparent 20%);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-pub {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Шапка сайта */
.site-header {
    position: relative;
    padding: 15px 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo h1 a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo h1 a span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo h1 a span:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

/* Навигация */
.main-menu {
    display: flex;
}

.menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menu li a {
    position: relative;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 0;
    transition: var(--transition);
}

.menu li a:hover, 
.menu li a.active {
    color: var(--primary-light);
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

/* Кнопки */
.details-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--card-bg);
    color: var(--text-light);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.details-button:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

/* Карточки */
.user-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.2);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--primary);
}

.user-info {
    flex: 1;
}

/* Таблицы */
.user-table, .banned-users-table, .achievements-table, .ups-penalties-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.user-table th, .user-table td,
.banned-users-table th, .banned-users-table td,
.achievements-table th, .achievements-table td,
.ups-penalties-table th, .ups-penalties-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.user-table th, 
.banned-users-table th,
.achievements-table th,
.ups-penalties-table th {
    background: rgba(145, 70, 255, 0.1);
    font-weight: 600;
    color: var(--primary-light);
}

.user-table tr:last-child td,
.banned-users-table tr:last-child td,
.achievements-table tr:last-child td,
.ups-penalties-table tr:last-child td {
    border-bottom: none;
}

.user-table tr:hover,
.banned-users-table tr:hover,
.achievements-table tr:hover,
.ups-penalties-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Рейтинг-бар */
.rating-container {
    width: 100%;
    margin: 10px 0;
}

.rating-bar {
    height: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.rating-progress {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

.rating-inside {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Формы */
.search-form {
    display: flex;
    margin: 20px 0;
    max-width: 600px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    color: var(--text);
    font-size: 1rem;
}

.search-form button {
    padding: 12px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.sort-form {
    margin: 20px 0;
}

.sort-form select {
    padding: 10px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
}

/* Уведомления */
.public-notifications-container {
    margin-top: 30px;
}

.public-notification {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    position: relative;
}

.public-notification.technical {
    border-left-color: var(--accent);
}

.public-notification.news {
    border-left-color: var(--secondary);
}

.public-notification-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.public-notification-content {
    flex: 1;
}

.public-notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.public-type-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.public-author-name {
    font-weight: 600;
}

.public-message-text {
    color: var(--text-light);
}

.public-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.public-close-btn:hover {
    color: var(--secondary);
}

/* Модальные окна */
.ups-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.ups-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
    position: relative;
}

.ups-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.ups-close-modal:hover {
    color: var(--secondary);
}

.ups-appeal-form textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    margin: 15px 0;
    resize: vertical;
}

.ups-appeal-form button {
    padding: 12px 25px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.ups-appeal-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Футер */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .top-bottom-ratings {
        flex-direction: column;
    }
    
    .high-rating, .low-rating {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .user-table, .banned-users-table, .achievements-table, .ups-penalties-table {
        display: block;
        overflow-x: auto;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 100;
    }
    
    .menu.active {
        display: flex;
    }
}

@media (max-width: 480px) {
    .user-avatar {
        width: 80px;
        height: 80px;
    }
    
    .public-notification {
        flex-direction: column;
        text-align: center;
    }
    
    .public-notification-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
}