/* /var/www/family-site/css/themes.css */

/* ===== СТАНДАРТНАЯ ТЕМА (по умолчанию) ===== */
body.theme-default {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --navbar-bg: #007bff;
    --navbar-text: #ffffff;
    --footer-bg: #f8f9fa;
    --link-color: #007bff;
    --link-hover: #0056b3;
}

/* ===== ТЕМНАЯ ТЕМА ===== */
body.theme-dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --primary-color: #375a7f;
    --primary-hover: #4b7a9f;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --navbar-bg: #000000;
    --navbar-text: #ffffff;
    --footer-bg: #2d2d2d;
    --link-color: #5faee3;
    --link-hover: #8fc9ff;
}

/* ===== ТЕМА ДЛЯ СЛАБОВИДЯЩИХ (ВЫСОКИЙ КОНТРАСТ, Ч/Б) ===== */
body.theme-blind {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --primary-color: #ffffff;
    --primary-hover: #cccccc;
    --card-bg: #1a1a1a;
    --border-color: #ffffff;
    --navbar-bg: #000000;
    --navbar-text: #ffffff;
    --footer-bg: #1a1a1a;
    --link-color: #ffffff;
    --link-hover: #cccccc;
    font-size: 18px;
    line-height: 1.6;
}

.theme-blind .btn,
.theme-blind .nav-link,
.theme-blind .card {
    border: 2px solid #ffffff !important;
}

.theme-blind h1, 
.theme-blind h2, 
.theme-blind h3 {
    text-decoration: underline;
}

.theme-blind img {
    filter: grayscale(100%) contrast(120%);
}

/* ===== ВЕСЕННЯЯ ТЕМА (БЛЕДНО-ЗЕЛЕНАЯ) ===== */
body.theme-spring {
    --bg-primary: #f8fff0;
    --bg-secondary: #e8f5e0;
    --text-primary: #2c5e2e;
    --text-secondary: #4a7b4a;
    --primary-color: #a8d5a2;
    --primary-hover: #8ab87a;
    --card-bg: #ffffff;
    --border-color: #c5e0b4;
    --navbar-bg: #a8d5a2;
    --navbar-text: #2c5e2e;
    --footer-bg: #e8f5e0;
    --link-color: #6b8e4c;
    --link-hover: #4a6b2f;
}

.theme-spring .btn-primary {
    background: #a8d5a2;
    border: none;
    color: #2c5e2e;
}

.theme-spring .btn-primary:hover {
    background: #8ab87a;
}

.theme-spring .card {
    border: 1px solid #c5e0b4;
    box-shadow: 0 4px 15px rgba(168, 213, 162, 0.3);
}

/* ===== ЛЕТНЯЯ ТЕМА (ЗЕЛЕНАЯ) ===== */
body.theme-summer {
    --bg-primary: #f0f9f0;
    --bg-secondary: #e0f0e0;
    --text-primary: #1e4a1e;
    --text-secondary: #2e6b2e;
    --primary-color: #97c93d;
    --primary-hover: #7aa82e;
    --card-bg: #ffffff;
    --border-color: #b8e0a8;
    --navbar-bg: #97c93d;
    --navbar-text: #1e4a1e;
    --footer-bg: #e0f0e0;
    --link-color: #97c93d;
    --link-hover: #7aa82e;
}

.theme-summer .btn-primary {
    background: linear-gradient(135deg, #97c93d, #7aa82e);
    border: none;
}

.theme-summer .card {
    border: 1px solid #b8e0a8;
    box-shadow: 0 4px 15px rgba(151, 201, 61, 0.2);
}

/* ===== ОСЕННЯЯ ТЕМА (ОРАНЖЕВО-КОРИЧНЕВАЯ) ===== */
body.theme-autumn {
    --bg-primary: #fff4e6;
    --bg-secondary: #ffe4cc;
    --text-primary: #8b4513;
    --text-secondary: #a0522d;
    --primary-color: #cd853f;
    --primary-hover: #b96f2d;
    --card-bg: #ffffff;
    --border-color: #deb887;
    --navbar-bg: #cd853f;
    --navbar-text: #ffffff;
    --footer-bg: #ffe4cc;
    --link-color: #cd853f;
    --link-hover: #b96f2d;
}

.theme-autumn .btn-primary {
    background: linear-gradient(135deg, #cd853f, #b96f2d);
    border: none;
}

.theme-autumn .card {
    border: 1px solid #deb887;
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.2);
}

/* ===== ЗИМНЯЯ ТЕМА (ГОЛУБАЯ) ===== */
body.theme-winter {
    --bg-primary: #e6f3ff;
    --bg-secondary: #cce7ff;
    --text-primary: #1e4a6b;
    --text-secondary: #2c6b9e;
    --primary-color: #6cb2eb;
    --primary-hover: #4a90e2;
    --card-bg: #ffffff;
    --border-color: #b8d9ff;
    --navbar-bg: #6cb2eb;
    --navbar-text: #ffffff;
    --footer-bg: #cce7ff;
    --link-color: #6cb2eb;
    --link-hover: #4a90e2;
}

.theme-winter .btn-primary {
    background: linear-gradient(135deg, #6cb2eb, #4a90e2);
    border: none;
}

.theme-winter .card {
    border: 1px solid #b8d9ff;
    box-shadow: 0 4px 15px rgba(108, 178, 235, 0.2);
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ ТЕМ ===== */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background-color: var(--navbar-bg) !important;
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: var(--navbar-text) !important;
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

a {
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover);
}

footer {
    background-color: var(--footer-bg) !important;
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-secondary) !important;
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Анимация для сезонных тем */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.theme-spring .card:hover,
.theme-summer .card:hover,
.theme-autumn .card:hover,
.theme-winter .card:hover {
    animation: float 3s ease-in-out infinite;
}