/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f0f0;
    color: #333;
}

html, body {
    height: 100%;
}

/* Стили для header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #34495e;
}

.auth-buttons {
    display: flex;
    margin-left: auto;
    flex-wrap: nowrap;
}

.auth-buttons a {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.login {
    color: white;
    border: 1px solid white;
}

.login:hover {
    background-color: rgba(255,255,255,0.1);
}

.register {
    background-color: #e74c3c;
    color: white;
}

.register:hover {
    background-color: #c0392b;
}

.logout-btn {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap;
    background-color: #e74c3c;
    color: white;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.burger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    margin-left: 1rem;
}

.auth-icon {
    display: none;
    font-size: 1.2rem;
    padding: 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.auth-icon.login {
    color: white;
    border: 1px solid white;
}

.auth-icon.register {
    background-color: #e74c3c;
    color: white;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 0.5rem;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
}

.mobile-menu ul li a:hover {
    background-color: #34495e;
}

/* Стили для footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

/* Адаптивность */
@media (max-width: 1150px) {
    nav {
        display: none;
    }

    .auth-buttons a.text {
        display: none;
    }

    .auth-icon {
        display: inline-block;
    }

    .burger-menu {
        display: block;
    }
}

@media (min-width: 1151px) {
    .mobile-menu {
        display: none !important;
    }
    
    nav {
        display: flex !important;
    }
    
    .burger-menu {
        display: none !important;
    }
}