/*
Theme Name: HNO3 Theme
Theme URI: https://hno3.ru
Author: Ваше имя
Author URI: https://hno3.ru
Description: Тема для образовательного сайта по химии, посвящённого азотной кислоте
Version: 1.0.0
License: GPL v2 or later
Text Domain: hno3-theme
*/

/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
.site-header {
    background: #1a1a2e;
    color: white;
    padding: 20px 0;
    border-bottom: 4px solid #e67e22;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-branding {
    font-size: 28px;
    font-weight: bold;
}
.site-branding a {
    color: white;
    text-decoration: none;
}
.site-branding span {
    color: #e67e22;
}
.site-branding small {
    font-size: 14px;
    font-weight: normal;
    color: #aaa;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.main-navigation ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: 0.3s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: #e67e22;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.site-main {
    flex: 1;
    padding: 40px 0;
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 5px solid #e67e22;
}

/* ===== ЗАГОЛОВКИ ===== */
h1, .entry-title {
    color: #1a1a2e;
    font-size: 30px;
    margin-bottom: 20px;
    border-bottom: 3px solid #e67e22;
    padding-bottom: 10px;
}
h2 {
    color: #1a1a2e;
    font-size: 24px;
    margin: 25px 0 15px 0;
}
h3 {
    color: #1a1a2e;
    font-size: 20px;
    margin: 20px 0 10px 0;
}

/* ===== ПРЕДУПРЕЖДЕНИЯ ===== */
.warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
}
.warning strong {
    color: #856404;
}

.danger {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
}
.danger strong {
    color: #721c24;
}

/* ===== ФОРМУЛЫ ===== */
.formula {
    background: #e8f0fe;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 30px 0 20px;
    margin-top: 40px;
    border-top: 4px solid #e67e22;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 5px;
}
.footer-col a {
    color: #aaa;
    text-decoration: none;
}
.footer-col a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    width: 100%;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}