/* 
=== HERO BLOCK FULL WIDTH STYLES ===
Отдельные стили для блока "Современный интернет-магазин NEUROSTUFF" 
без боковых отступов - на всю ширину экрана
*/

/* Убираем отступ главного контента для страниц с hero блоком */
.site-main:has(.hero-full-width) {
    padding-top: 0 !important;
}

/* Для старых браузеров без поддержки :has() */
.site-main.no-top-padding {
    padding-top: 0 !important;
}

/* Контейнер на полную ширину для hero-секции */
.hero-full-width {
    padding: 0 !important;
    margin: 0 !important;
    margin-top: -2rem !important; /* Компенсируем возможный отступ */
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* Hero Section - полная ширина без отступов */
.hero-full-width .hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

/* Background patterns для современного дизайна */
.hero-full-width .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="modernGrid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%236366f1" stroke-width="1" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23modernGrid)"/></svg>');
    z-index: 1;
}

/* Декоративный floating элемент */
.hero-full-width .hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    animation: modernFloat 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes modernFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Контент hero-секции с внутренними отступами */
.hero-full-width .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Текстовая часть hero */
.hero-full-width .hero-text {
    max-width: 500px;
    padding-left: 40px;
}

/* Badge для инновационного подхода */
.hero-full-width .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366f1;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: modernBadgeGlow 3s ease-in-out infinite;
}

@keyframes modernBadgeGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    }
}

/* Заголовок hero */
.hero-full-width .hero-title {
    position: relative;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.1);
}

.hero-full-width .hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    animation: modernUnderline 2s ease-in-out infinite alternate;
}

@keyframes modernUnderline {
    0% { 
        width: 60px;
        opacity: 0.7;
    }
    100% { 
        width: 120px;
        opacity: 1;
    }
}

/* Подсветка для NEUROSTUFF */
.hero-full-width .hero-highlight {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 900;
    letter-spacing: -0.01em;
    animation: modernGlow 3s ease-in-out infinite;
}

@keyframes modernGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.5));
    }
}

.hero-full-width .hero-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    z-index: -1;
    transform: scale(1.05);
    opacity: 0;
    animation: modernHighlightBg 4s ease-in-out infinite;
}

@keyframes modernHighlightBg {
    0%, 100% { 
        opacity: 0;
        transform: scale(1.05);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Подзаголовок hero */
.hero-full-width .hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Визуальная часть hero */
.hero-full-width .hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Dashboard со статистикой */
.hero-full-width .stats-dashboard {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-full-width .dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.hero-full-width .dashboard-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.hero-full-width .dashboard-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    animation: livePulse 2s ease-in-out infinite;
}

.hero-full-width .dashboard-indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.hero-full-width .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-full-width .stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-full-width .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-full-width .stat-card:hover::before {
    opacity: 1;
}

.hero-full-width .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.hero-full-width .stat-icon {
    color: #6366f1;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

.hero-full-width .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.hero-full-width .stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .hero-full-width .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .hero-full-width .hero-text {
        padding-left: 0;
        text-align: center;
    }
    
    .hero-full-width .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-full-width .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-full-width .stats-dashboard {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-full-width .hero-title {
        font-size: 2rem;
    }
    
    .hero-full-width .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-full-width .stats-dashboard {
        padding: 1.5rem;
    }
    
    .hero-full-width .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}