/* ============================================ */
/* HOT ELEMENTAL - ОСНОВНЫЕ СТИЛИ              */
/* Версия: 2.0                                 */
/* ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    color: #fff;
    background-image: url('/assets/images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background: rgba(15, 15, 23, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #ff6b6b;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    cursor: pointer;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* ==================== КНОПКИ ==================== */
.btn {
    background: transparent;
    border: 1px solid #ff6b6b;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    color: white;
    transition: 0.2s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-primary {
    background: #ff6b6b;
    color: #0a0a0f;
    border-color: #ff6b6b;
}

.btn-secondary {
    background: #4ecdc4;
    color: #0a0a0f;
    border-color: #4ecdc4;
}

.btn:hover, .btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(0);
}

.user-name-btn {
    background: transparent;
    border: 1px solid #4ecdc4;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    color: white;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-name-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: scale(1.02);
}

/* ==================== УВЕДОМЛЕНИЯ ==================== */
.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    background: rgba(255, 107, 107, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.notification-icon:hover {
    background: rgba(255, 107, 107, 0.4);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: bold;
}

/* ==================== МОДАЛЬНЫЕ ОКНА ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2a;
    padding: 32px;
    border-radius: 32px;
    max-width: 450px;
    width: 90%;
    border-top: 4px solid #ff6b6b;
    text-align: left;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #0F0F17;
    border: 1px solid #ff6b6b;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.notifications-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.notifications-modal-content {
    background: #1a1a2a;
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 4px solid #ff6b6b;
}

/* ==================== FOOTER ==================== */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 107, 107, 0.3);
    margin-top: 50px;
    background: rgba(15, 15, 23, 0.5);
}

.footer a {
    color: #4ecdc4;
    text-decoration: none;
    margin: 0 10px;
}

.footer .btn {
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

/* ==================== ТОСТ-УВЕДОМЛЕНИЯ ==================== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a2a;
    border-left: 4px solid #4ecdc4;
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 2001;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== КАРТОЧКИ ==================== */
.card {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* ==================== ССЫЛКИ ==================== */
a {
    color: #4ecdc4;
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: #ff6b6b;
}

/* ==================== ТЕКСТ ==================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

p {
    line-height: 1.6;
    color: #e0e0e0;
}

small {
    color: #888;
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-buttons {
        justify-content: center;
    }
    
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 25px;
    }
    
    .footer {
        padding: 20px;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .modal-content {
        padding: 20px;
        border-radius: 24px;
    }
}