/*
 * Theme Name: MEMBERLUX CONNECTOR 2
 * Description: Тема для улучшенной совместимости MEMBERLUX с другими плагинами. Внимание! Подходит только для сайтов использующих MEMBERLUX как Главную страницу!
 * Theme URI:   https://memberlux.com
 * Author:      Виктор Левчук
 * Author URI:  https://memberlux.com
 * Version:     2.0.0
 * Text Domain: memberlux-connector
*/

/* Базовые стили */
body {
    font-family: "PT Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px 0;
    font-weight: 600;
}

.entry-title {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.site-branding {
    text-align: center;
    margin-bottom: 20px;
}

.site-title {
    margin: 0;
    font-size: 2em;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover {
    color: #0073aa;
}

.main-navigation {
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: #0073aa;
    color: #fff;
}

.menu-toggle {
    display: none;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Контент */
.entry-content {
    margin: 20px 0;
}

.entry-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.entry-meta span {
    margin-right: 20px;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.entry-footer-meta {
    margin-bottom: 15px;
}

.entry-footer-meta span {
    margin-right: 15px;
    font-size: 0.9em;
}

.entry-footer-meta a {
    color: #0073aa;
    text-decoration: none;
}

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

.edit-link {
    font-size: 0.9em;
}

.edit-link a {
    color: #0073aa;
    text-decoration: none;
}

.edit-link a:hover {
    text-decoration: underline;
}

/* Посты */
.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.read-more {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005a87;
    color: #fff;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

.site-info a {
    color: #fff;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

.sep {
    margin: 0 10px;
    opacity: 0.7;
}

/* Форма поиска */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 20px auto;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none;
}

.search-field:focus {
    border-color: #0073aa;
}

.search-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #005a87;
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

/* Страница 404 */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 .page-title {
    font-size: 3em;
    color: #0073aa;
    margin-bottom: 30px;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.widget {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.widget h2 {
    color: #0073aa;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #333;
    text-decoration: none;
}

.widget a:hover {
    color: #0073aa;
}

/* Комментарии */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.comment-list .children {
    list-style: none;
    margin: 20px 0 0 30px;
    padding: 0;
}

.comment-author {
    font-weight: 600;
    color: #0073aa;
}

.comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    margin: 15px 0;
    line-height: 1.6;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 15px;
}

.reply a {
    background: #0073aa;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.reply a:hover {
    background: #005a87;
    color: #fff;
}

/* Форма комментариев */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
}

.comment-reply-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #0073aa;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    justify-self: start;
}

.comment-form .submit:hover {
    background: #005a87;
}

/* Навигация по страницам */
.page-links {
    margin: 30px 0;
    text-align: center;
}

.page-links a,
.page-links .current {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 2px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-links a:hover {
    border-color: #0073aa;
    color: #0073aa;
}

.page-links .current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* Навигация по постам */
.navigation {
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #005a87;
    color: #fff;
}

/* Боковая панель */
.site-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.content-area {
    min-width: 0;
}

@media (max-width: 768px) {
    .site-main {
        grid-template-columns: 1fr;
    }
}

.widget-area {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    position: sticky;
    top: 20px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    color: #0073aa;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Архивные страницы и поиск */
.page-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 40px 0;
    background: #f9f9f9;
    border-radius: 5px;
}

.page-title {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    color: #333;
}

.archive-description {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.entry-summary {
    margin: 20px 0;
    line-height: 1.6;
}

/* WooCommerce стили */
.woocommerce-account  {
    background-color: #FAFAFA!important;
    background-repeat: no-repeat!important;
    background-position: center top!important;
    background-size: cover!important;
    background-attachment: fixed;
    
    font-family: "PT Sans", sans-serif!important;
    font-size: 17px!important;
}

.woocommerce-account {
    font-family: "PT Sans", sans-serif!important;
    font-size: 17px!important;
}

.woocommerce-Input--text  { padding: 10px!important; }
.woocommerce-Input--password { padding: 10px!important; }
.input-text { padding: 10px!important; }

/* Утилиты */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2em;
    }
    
    body {
        font-size: 16px;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin: 5px 0;
    }
    
    .menu-toggle {
        display: block;
        margin: 0 auto 20px;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .main-navigation.toggled ul {
        display: block;
    }
    
    .container {
        padding: 0 15px;
    }
}
