/*
Theme Name: Кррост Строй Проект
Theme URI: https://krost.acw-s.ru
Author: КрростСтройПроект
Author URI: https://krost.acw-s.ru
Description: Современная тема для строительной компании КрростСтройПроект. Полностью адаптивный дизайн с использованием Tailwind CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krost-stroy
Tags: construction, business, responsive, modern
*/

/* Современные стили для лендинга */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Плавная анимация появления элементов */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideDown {
    animation: slideDown 0.3s ease-out;
}

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

/* Задержка анимации */
.delay-1000 {
    animation-delay: 1s;
}

/* Стили для формы */
input:invalid:not(:placeholder-shown), 
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown), 
textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Улучшение читаемости */
section {
    scroll-margin-top: 80px;
}

/* Кастомные стили для кнопок */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Оптимизация изображений */
img {
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Адаптивные изображения */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Grid pattern для фона */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Плавные переходы для всех интерактивных элементов */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Улучшение фокуса для доступности */
*:focus-visible {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #003366, #FF6B35);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FF6B35, #003366);
}

/* Эффект стекла (glassmorphism) */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Градиентный текст */
.gradient-text {
    background: linear-gradient(135deg, #003366, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Пульсирующая анимация */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Эффект свечения */
.glow {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

/* Плавное появление при скролле */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Улучшение производительности */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Стили для выделения текста */
::selection {
    background-color: #FF6B35;
    color: white;
}

::-moz-selection {
    background-color: #FF6B35;
    color: white;
}

/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-weight: 600;
    color: #003366;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s;
    text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #FF6B35;
    color: white;
    border-color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

/* Стили для комментариев */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid #FF6B35;
}

.comment-meta {
    flex: 1;
}

.comment-author .fn {
    font-weight: 700;
    color: #003366;
    text-decoration: none;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #6b7280;
}

.comment-content {
    color: #374151;
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: #FF6B35;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.comment-reply-link:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* Форма комментариев */
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.comment-form .form-submit input[type="submit"] {
    background: linear-gradient(to right, #FF6B35, #ff8533);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form .form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Стили для контента поста */
.prose {
    color: #374151;
    line-height: 1.8;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #003366;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose a {
    color: #FF6B35;
    text-decoration: underline;
    transition: color 0.3s;
}

.prose a:hover {
    color: #003366;
}

.prose ul,
.prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.prose blockquote {
    border-left: 4px solid #FF6B35;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

