/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #FFD700; /* Золотистый цвет (ассоциация с мёдом) */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Блок с информацией о пользователе */
#user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    top: 20px;
    right: 20px;
}

#user-info span {
    font-weight: bold;
    color: white;
    margin-right: 10px;
}

#user-info button {
    background-color: #FFD700;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#user-info button:hover {
    background-color: #FFA500;
}

.hidden {
    display: none;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Описание сайта */
.site-description {
    text-align: center;
    margin: 40px 0;
}

.description-wrapper {
    background: linear-gradient(135deg, #fff8dc, #fff);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.description-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    transform: rotate(45deg);
    z-index: -1;
}

.description-wrapper blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.description-wrapper blockquote::before {
    content: '“';
    font-size: 4rem;
    color: #FFD700;
    position: absolute;
    top: -10px;
    left: 0;
    opacity: 0.5;
}

.description-wrapper blockquote::after {
    content: '”';
    font-size: 4rem;
    color: #FFD700;
    position: absolute;
    bottom: -20px;
    right: 0;
    opacity: 0.5;
}

/* Список тем */
.topics ul, #comments-list {
    list-style-type: none;
    padding: 0;
}

.topics li {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.topics li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.article {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.operator-panel form {
    margin-bottom: 20px;
}

.operator-panel input, .operator-panel textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.operator-panel button {
    background-color: #FFD700; /* Золотистый цвет */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.operator-panel button:hover {
    background-color: #FFA500; /* Оранжевый цвет */
}

#comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#comments-list li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.content-with-images img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* Страница авторизации/регистрации */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.auth-tabs button {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    border-bottom: 2px solid transparent;
}

.auth-tabs button.active {
    border-bottom: 2px solid #FFD700;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.auth-form button {
    width: 100%;
    padding: 10px;
    background-color: #FFD700;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form button:hover {
    background-color: #FFA500;
}

.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* Футер */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #FFD700;
    color: white;
    margin-top: 20px;
}

footer p {
    font-size: 0.9rem;
}