/*
Theme Name: webcam1
Theme URI: https://example.com
Author: Your Name
Description: webcam templates
Version: 1.0
Text Domain: webcam1-theme
*/

/* Базовые стили */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    color: #222222;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Структура: шапка, контейнер, контент, сайдбар, подвал */

.site-header {
    background: #111111;
    color: #ffffff;
    padding: 1rem 2rem;
}

.site-header .site-title a {
    color: #ffffff;
    font-size: 1.5rem;
}

.site-header .site-description {
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 0.3rem;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.site-header nav a {
    color: #ffffff;
}

.site-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: row-reverse; /* sidebar right */
    gap: 2rem;
}

/* Основной контент */
.site-main {
    flex: 1;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    position: relative;
}
.site-main::before {
    content: "MAIN CONTENT";
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 8px;
}

/* Сайдбар */
.site-sidebar {
    width: 280px;
    background: #f0f4ff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px dashed #3b82f6;
    position: relative;
}
.site-sidebar::before {
    content: "SIDEBAR";
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 8px;
}

/* Виджет под названием страницы/записи */
.entry-content-widget {
    margin-bottom: 1.5rem;
}

/* Подвал */
.site-footer {
    background: #222222;
    color: #ffffff;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
}

.footer-widgets-container {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}

.footer-widgets-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.footer-widget-column {
    min-width: 0;
}

.footer-widget-column .widget {
    margin-bottom: 0;
    width: 100%;
}

.footer-widget-column .widget:last-child {
    margin-bottom: 0;
}

.footer-navigation {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-navigation a {
    color: #ffffff;
}

.footer-navigation a:hover {
    text-decoration: underline;
}

.site-footer p {
    text-align: center;
    font-size: 0.9rem;
    color: #cccccc;
}

/* Посты и заголовки */

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 1rem;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Мобильная версия */
@media (max-width: 768px) {

    .site-container {
        display: flex;
        flex-direction: column;
    }

    .site-sidebar {
        width: 100%;
        order: 1;
    }

    .site-main {
        width: 100%;
        order: 2;
    }

    .footer-widgets-row {
        grid-template-columns: 1fr;
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}