/* Дополнительные стили для форм и элементов */

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2c75ff;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #1e1e1e;
}

.button {
    display: inline-block;
    background-color: #2c75ff;
    border-radius: 3px;
    line-height: 46px;
    white-space: nowrap;
    padding: 0 35px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #1e5fd9;
}

/* Логин форма */
.login-form,
.registration-form,
.lostpassword-form,
.feedback-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-links a {
    color: #2c75ff;
    text-decoration: underline;
}

.login-links a:hover {
    color: #1e5fd9;
}

/* Информация о пользователе */
.user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: bold;
    color: #1e1e1e;
    margin-bottom: 5px;
}

.user-group {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.user-stats span {
    display: inline-block;
    margin-right: 15px;
    font-size: 13px;
    color: #666;
}

/* Опрос */
.poll {
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 20px;
}

.poll h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1e1e1e;
    margin-bottom: 15px;
}

.poll-item {
    margin-bottom: 10px;
}

.poll-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.poll-item input[type="radio"] {
    margin-right: 10px;
}

.poll-buttons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.results-link {
    display: inline-block;
    line-height: 46px;
    color: #2c75ff;
    text-decoration: underline;
}

.results-link:hover {
    color: #1e5fd9;
}

/* Поиск */
.search-form {
    max-width: 600px;
    margin: 40px auto;
}

.search-result {
    padding: 20px 0;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    margin-bottom: 20px;
}

.no-results p {
    font-size: 16px;
    color: #666;
}

/* Короткие новости */
.short-story {
    display: inline-block;
    width: 21.75%;
    margin: 15px;
    vertical-align: top;
}

.story-link {
    display: block;
    text-decoration: none;
}

.story-poster {
    width: 100%;
    padding-bottom: 150%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 3px;
}

.story-title {
    font-size: 16px;
    font-weight: bold;
    color: #1e1e1e;
    margin-top: 10px;
}

.story-year {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .short-story {
        width: 30%;
        margin: 1.5%;
    }
}

/* Адаптация для средних экранов */
@media (max-width: 768px) {
    .short-story {
        width: 30.9%;
        margin: 1%;
    }

    .story-title {
        font-size: 15px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .short-story {
        width: 30%;
        margin: 1%;
    }

    .story-title {
        font-size: 14px;
    }

    .story-year {
        font-size: 12px;
    }
}

/* Адаптация для маленьких экранов */
@media (max-width: 480px) {
    .short-story {
        width: 47.5%;
        margin: 1%;
    }

    .story-title {
        font-size: 13px;
    }

    .story-year {
        font-size: 11px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .short-story {
        width: 48.5%;
        margin: 0.75%;
    }

    .story-title {
        font-size: 12px;
    }

    .story-year {
        font-size: 10px;
    }
}

/* Навигация */
.navigation {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

.navigation a,
.navigation span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    color: #2c75ff;
    text-decoration: none;
    border-radius: 3px;
}

.navigation a:hover {
    background-color: #f0f0f0;
}

.navigation .current {
    background-color: #2c75ff;
    color: #fff;
}

/* Хлебные крошки */
.speedbar {
    padding: 15px 0;
    font-size: 13px;
    color: #888;
}

.speedbar a {
    color: #2c75ff;
    text-decoration: none;
}

.speedbar a:hover {
    text-decoration: underline;
}

/* Статические страницы */
.static-page {
    padding: 30px 20px;
}

.static-page h1 {
    font-size: 32px;
    font-weight: bold;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.static-content {
    font-size: 15px;
    line-height: 1.6em;
    color: #333;
}

.static-content p {
    margin-bottom: 15px;
}

.static-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 25px 0 15px 0;
}

.static-content ul,
.static-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.static-content li {
    margin-bottom: 8px;
}

/* Информационные сообщения */
.info-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 15px;
}

.info-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.info-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.info-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Страница оффлайн */
.offline-message {
    text-align: center;
    padding: 100px 20px;
}

.offline-message h1 {
    font-size: 36px;
    font-weight: bold;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.offline-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

/* Footer Styles */
.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    line-height: 1.6;
    color: #888;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2c75ff;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    gap: 10px;
}

.pagination__pages {
    display: flex;
    gap: 5px;
}

.pagination__pages a,
.pagination__pages span {
    display: inline-block;
    padding: 8px 12px;
    min-width: 35px;
    text-align: center;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination__pages span {
    background-color: #2c75ff;
    color: #fff;
}

.pagination__pages a:hover {
    background-color: #2c75ff;
    color: #fff;
}

.pagination__pages .current,
.pagination__pages span.current {
    background-color: #2c75ff;
    color: #fff;
    font-weight: bold;
}

.pagination__btns {
    display: flex;
    gap: 5px;
}

.pagination__btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.pagination__btn:hover {
    background-color: #2c75ff;
    color: #fff;
}

.pagination-bottom {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .pagination {
        padding: 20px 0;
    }

    .pagination__pages a,
    .pagination__pages span {
        padding: 6px 10px;
        min-width: 30px;
        font-size: 12px;
    }

    .pagination__btn {
        padding: 6px 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
    }

    .pagination__pages {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Похожие новости */
.related-news {
    padding: 30px 0;
}

.related-items {
    display: flex;
    flex-wrap: wrap;
    gap: 3%;
}

/* Облако тегов */
.tags-cloud {
    padding: 30px 0;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.tags-list a:hover {
    background-color: #2c75ff;
    color: #fff;
}

/* Быстрый поиск */
.fast-search-result {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.fast-search-result:last-child {
    border-bottom: none;
}

.search-item {
    display: block;
    text-decoration: none;
    padding: 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.search-item:hover {
    background-color: #f5f5f5;
}

.search-title {
    font-size: 16px;
    font-weight: bold;
    color: #1e1e1e;
    margin-bottom: 5px;
}

.search-year {
    font-size: 13px;
    color: #888;
}

/* Вложения */
.attachment-file {
    padding: 10px 0;
}

.attach-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.attach-link:hover {
    background-color: #e0e0e0;
}

.attach-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: #2c75ff;
    border-radius: 3px;
}

.attach-name {
    font-weight: bold;
    margin-right: 5px;
}

.attach-size {
    color: #888;
    font-size: 13px;
}