/* Полностью новый дизайн главной страницы */

#home {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

/* Сообщение об успешной регистрации */
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(51, 255, 51, 0.15) 0%, rgba(34, 204, 34, 0.1) 100%);
    border: 1px solid rgba(51, 255, 51, 0.3);
    border-radius: 12px;
    margin-bottom: 40px;
    color: #33ff33;
    font-size: 15px;
    animation: slideDown 0.5s ease-out;
}

.success-message i {
    font-size: 20px;
}

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

/* Основной макет: две колонки */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
}

/* Левая панель - Информация */
.info-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.info-content {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.98) 0%, rgba(15, 15, 20, 0.98) 100%);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.info-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #ff3333 20%,
        #ff6b6b 50%,
        #ff3333 80%,
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 20px;
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-badge i {
    font-size: 14px;
}

.main-title {
    font-family: 'EB Garamond', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.main-title .title-line {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-title .title-accent {
    display: block;
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 4px;
}

.description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 51, 51, 0.2) 100%);
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 20px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #ff3333 0%, #ff6b6b 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 51, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 51, 51, 0.4);
    background: linear-gradient(135deg, #ff4d4d 0%, #ff7a7a 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 107, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.btn-primary i,
.btn-secondary i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i,
.btn-secondary:hover i {
    transform: translateX(4px);
}

/* Особенности */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.feature-item i {
    color: #ff6b6b;
    font-size: 16px;
    width: 20px;
}

/* Правая панель - Афиша игр */
.events-main {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.98) 0%, rgba(15, 15, 20, 0.98) 100%);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.events-header {
    margin-bottom: 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.section-title i {
    color: #ff6b6b;
    font-size: 28px;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 20px;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    transform: translateX(4px);
}

.view-all-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(2px);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    color: #ff6b6b;
    font-size: 36px;
}

.empty-state h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 24px;
}

/* Сетка событий */
.events-grid {
    display: grid;
    gap: 20px;
}

.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff3333 0%, #ff6b6b 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 51, 51, 0.15);
}

.event-card:hover::before {
    transform: scaleY(1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.event-title {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.event-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.event-badge i {
    font-size: 12px;
}

.event-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.event-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.event-info-row i {
    color: #ff6b6b;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.event-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-link:hover {
    color: #ff3333;
    gap: 12px;
}

.event-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.event-link:hover i {
    transform: translateX(4px);
}

/* Популярные мастера */
.popular-masters-section {
    margin-top: 60px;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.98) 0%, rgba(15, 15, 20, 0.98) 100%);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.master-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.master-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 51, 51, 0.15);
}

.master-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.master-info {
    flex: 1;
}

.master-info h3 {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.master-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .info-sidebar {
        position: static;
    }
    
    .main-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    #home {
        padding: 20px 15px;
    }
    
    .info-content,
    .events-main,
    .popular-masters-section {
        padding: 24px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .masters-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .event-title {
        font-size: 18px;
    }
}

/* Анимации появления */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

.info-sidebar {
    animation-delay: 0.1s;
}

.events-main {
    animation-delay: 0.2s;
}

.popular-masters-section {
    animation-delay: 0.3s;
}
