/* assets/css/home.css - стили для главной страницы */
:root {
    /* Цветовая схема */
    --primary: #ff3e80;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --bg-dark: #071024;
    --card-bg: rgba(15, 23, 42, 0.8);
    --muted: #9fb9e6;
    --accent-start: #7c3aed;
    --accent-end: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --modern-blue: #56b8ff;
    
    /* Градиенты */
    --gradient: linear-gradient(135deg, #ff3e80, #8b5cf6, #0ea5e9);
    --gradient-horizontal: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

/* Базовые стили */
body {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #eaf2ff;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
}

/* Контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    border-top-color: var(--secondary);
    animation-delay: -0.5s;
}

.loader-ring:nth-child(3) {
    border-top-color: var(--accent);
    animation-delay: -1s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Particles */
.particle {
    position: fixed;
    border-radius: 50%;
    background: var(--gradient);
    pointer-events: none;
    z-index: -1;
    opacity: 0.2;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 62, 128, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 62, 128, 0.6); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotateIn {
    from { transform: perspective(1000px) rotateY(30deg) rotateX(10deg); opacity: 0; }
    to { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); opacity: 1; }
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.pulse-online {
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-online 2s infinite;
}

.pulse-offline {
    background: var(--danger);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-offline 2s infinite;
}

@keyframes pulse-online {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-offline {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-enter {
    animation: modalFadeIn 0.3s ease;
}

.modal-exit {
    animation: modalFadeOut 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}

/* Hero секция */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 62, 128, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-wrapper {
    flex: 1;
}

.hero-image-wrapper {
    flex: 0 0 400px;
    position: relative;
    animation: rotateIn 1s ease-out, float 6s ease-in-out infinite;
}

.hero-side-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(255, 62, 128, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.hero-side-image:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                0 0 50px rgba(255, 62, 128, 0.5);
    border-color: rgba(255, 62, 128, 0.5);
}

.hero-image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient);
    border-radius: 30px;
    filter: blur(30px);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    animation: slideInRight 1s ease-out 0.3s both;
}

/* Кнопки */
.glow-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite, glow 2s infinite;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.glow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 62, 128, 0.4);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.glow-btn:hover::before {
    left: 100%;
}

/* Banner slider */
.banner-slider { 
    display: flex; 
    gap: 16px; 
    align-items: center; 
    overflow: hidden; 
    margin: 40px 0;
}

.banner-slide { 
    flex: 0 0 auto;
    width: 100%;
}

.banner-slide img { 
    width: 100%; 
    height: 420px; 
    object-fit: cover; 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Заголовки секций */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin: 80px 0 40px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient);
    margin: 15px auto;
    border-radius: 2px;
}

/* Modern News Grid */
.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-card-modern {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(86, 184, 255, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5),
                0 0 30px -5px rgba(86, 184, 255, 0.2);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-modern:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
    pointer-events: none;
}

.news-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    background: rgba(86, 184, 255, 0.1);
    color: #56b8ff;
    border: 1px solid rgba(86, 184, 255, 0.2);
    text-transform: uppercase;
    align-self: flex-start;
}

.news-title-modern {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}

.news-card-modern:hover .news-title-modern {
    color: #56b8ff;
}

.news-excerpt-modern {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-meta-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-author-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.news-date-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.news-date-modern i {
    font-size: 12px;
}

.news-stats {
    display: flex;
    gap: 12px;
}

.news-views-modern,
.news-comments-modern {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.news-views-modern i,
.news-comments-modern i {
    font-size: 12px;
}

.read-more-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #56b8ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.read-more-modern svg {
    transition: transform 0.3s ease;
}

.read-more-modern:hover {
    color: #ff3e80;
}

.read-more-modern:hover svg {
    transform: translateX(5px);
}

.news-footer-actions {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(86, 184, 255, 0.1);
    border: 1px solid rgba(86, 184, 255, 0.2);
    border-radius: 50px;
    color: #56b8ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-all-btn-modern:hover {
    background: rgba(86, 184, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(86, 184, 255, 0.3);
    border-color: rgba(86, 184, 255, 0.4);
}

.empty-news-modern {
    text-align: center;
    padding: 80px 20px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-news-icon {
    font-size: 4rem;
    color: rgba(86, 184, 255, 0.3);
    margin-bottom: 20px;
}

.empty-news-modern h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.empty-news-modern p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
    margin: 0 auto;
}

/* Статистика */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 60px 0;
    gap: 30px;
}

.stat-item {
    text-align: center;
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: #9ca3af;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Swiper стили */
.swiper {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin: 40px 0;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.swiper-button-next, .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgba(255, 62, 128, 0.3);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Trail animation */
@keyframes trailFade {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Ripple animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image-wrapper {
        flex: 0 0 auto;
        margin-top: 40px;
    }
    
    .hero-side-image {
        max-width: 300px;
    }
    
    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .banner-slide img { 
        height: 300px; 
    }
    
    .news-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .modal-content {
        width: 95%;
        margin: 30px auto;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .news-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .news-title-modern {
        font-size: 1.2rem;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .news-stats {
        width: 100%;
        justify-content: flex-start;
    }
    
    .swiper {
        height: 300px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .section-title {
        font-size: 2rem;
        margin: 60px 0 30px;
    }
    
    .banner-slide img { 
        height: 220px; 
    }
    
    .custom-cursor {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-side-image {
        max-width: 250px;
    }
    
    .glow-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin: 40px 0 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .news-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .view-all-btn-modern {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}