/*
Theme Name: Church Needs
Theme URI: https://ваш-сайт.ru/
Author: Ваше Имя
Description: Тема для страницы молитвенных нужд в стиле основного сайта.
Version: 1.0
*/

body {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #222;
    margin: 0;
    padding: 0;
}

header {
    background: #ff6600;
    color: #fff;
    padding: 16px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4em;
    font-weight: bold;
}

.main-menu {
    margin-top: 10px;
}

.main-menu li {
    display: inline-block;
    margin-right: 20px;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

footer {
    background: #ff6600;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1em;
}

.prayer-main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

.calendar-container {
    flex: 0 0 40%;
    position: sticky;
    top: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
}

.calendar-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.prayer-content {
    flex: 1;
}

.prayer-chat {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.prayer-chat h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.prayer-chat-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.prayer-chat-message {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.prayer-chat-author {
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 5px;
}

.prayer-chat-text {
    line-height: 1.5;
    color: #333;
}

.prayer-chat-date {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.prayer-chat-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.prayer-chat-form h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.prayer-chat-form input,
.prayer-chat-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.prayer-chat-form textarea {
    height: 120px;
    resize: vertical;
}

.prayer-chat-form button {
    width: 100%;
    padding: 12px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.prayer-chat-form button:hover {
    background: #ff8533;
}

#prayer-form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .prayer-main {
        flex-direction: column;
    }
    
    .calendar-container {
        position: static;
        width: 100%;
    }
}