/*
Theme Name: Світло Душі
Theme URI: https://svitlodushi.com
Author: Світло Душі
Author URI: https://svitlodushi.com
Description: Професійна тема для ритуальних послуг з повним супроводом, модальними вікнами та адаптивним дизайном.
Version: 2.0.0
License: GNU GPL v2 or later
Text Domain: svitlo-dushi
*/

/* ===========================
   Базовые стили
   =========================== */
body {
    font-family: 'Inter', system-ui, sans-serif;
    scroll-behavior: smooth;
}

/* ===========================
   WordPress Required
   =========================== */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ===========================
   Модальные окна
   =========================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    animation: fadeIn 0.25s ease;
}

.modal-content {
    animation: slideIn 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ===========================
   Навигация
   =========================== */
.nav-link {
    position: relative;
    transition: color .3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #7F8C8D;
    transition: width .3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===========================
   Карточки услуг
   =========================== */
.service-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===========================
   Анимации
   =========================== */
.flower-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

.candle-flicker {
    animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
    0%,100% { opacity: 1; }
    50%     { opacity: .8; }
}

/* ===========================
   Уведомления (toast)
   =========================== */
.rs-toast {
    animation: slideInRight .3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ===========================
   WP Content
   =========================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

/* ===========================
   Responsive Menu
   =========================== */
@media (max-width: 768px) {
    .main-navigation ul { display: none; }
    .main-navigation.toggled ul { display: block; }
}

/* ===========================
   Admin Bar Fix
   =========================== */
.admin-bar .sticky-header { top: 32px; }

@media (max-width: 782px) {
    .admin-bar .sticky-header { top: 46px; }
}

/* ===========================
   Блог — улучшенная типографика
   =========================== */
.prose-wide {
    max-width: 100% !important;
}

@media (min-width: 768px) {
    .prose-wide {
        max-width: 75ch !important;
    }
}

.prose-wide h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.9rem;
    font-weight: 600;
    color: #2C3E50;
}

.prose-wide h3 {
    margin-top: 2rem;
    margin-bottom: .8rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #34495E;
}

.prose-wide p {
    margin-bottom: 1.2rem;
    line-height: 1.75;
}

.prose-wide ul,
.prose-wide ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.prose-wide li {
    margin-bottom: .4rem;
}

.prose-wide blockquote {
    border-left: 4px solid #7F8C8D;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

.prose-wide img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 1.5rem 0;
}

.prose-wide hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2.5rem 0;
}

/* ===========================
   Language Switcher
   =========================== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-switcher ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switcher li a {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #2C3E50;
    border: 1px solid #ECF0F1;
    transition: all 0.2s;
    text-decoration: none;
}

.language-switcher li a:hover,
.language-switcher li.current-lang a {
    background: #2C3E50;
    color: #fff;
    border-color: #2C3E50;
}
