/* Основные стили для сайта Welvura */

/* Сброс и общие стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #7B68EE; /* Основной цвет (фиолетовый) */
    --secondary-color: #50C878; /* Дополнительный цвет (зеленый) */
    --accent-color: #FF6B6B; /* Акцентный цвет */
    --dark-color: #2A2A2A; /* Темный цвет */
    --light-color: #F5F5F5; /* Светлый цвет */
    --text-color: #333333; /* Цвет текста */
    --gray-color: #9E9E9E; /* Серый цвет */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Кнопки */
.play-btn, .login-btn, .register-btn, .vk-btn, .telegram-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn {
    background-color: var(--secondary-color);
    color: white;
}

.play-btn:hover {
    background-color: #45B36B;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.login-btn, .register-btn {
    border: 2px solid var(--primary-color);
    margin-left: 10px;
}

.login-btn {
    background-color: transparent;
    color: var(--primary-color);
}

.register-btn {
    background-color: var(--primary-color);
    color: white;
}

.login-btn:hover, .register-btn:hover {
    transform: translateY(-2px);
}

.social-buttons {
    display: flex;
    margin-top: 20px;
}

.vk-btn, .telegram-btn {
    margin-right: 15px;
    background-color: #4C75A3; /* ВК цвет */
    color: white;
}

.telegram-btn {
    background-color: #0088cc; /* Telegram цвет */
}

.vk-btn:hover, .telegram-btn:hover {
    opacity: 0.9;
    color: white;
}

/* Шапка */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Секция Hero */
.hero {
    background: linear-gradient(135deg, #724ae8 0%, #9271e2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Секция игр */
.games {
    padding: 80px 0;
    background-color: white;
}

.games h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card h3 {
    padding: 20px 20px 10px;
    font-size: 22px;
    color: var(--dark-color);
}

.game-card p {
    padding: 0 20px 20px;
    color: var(--gray-color);
}

.game-card .play-btn {
    margin: 0 20px 20px;
    display: block;
    text-align: center;
}

/* Секция преимуществ */
.features {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--gray-color);
}

/* Секция последних игр */
.live-games {
    padding: 80px 0;
    background-color: white;
}

.live-games h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.live-games-table {
    overflow-x: auto;
}

.live-games-table table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.live-games-table th, .live-games-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.live-games-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.live-games-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.live-games-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Секция отзывов */
.testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
}

.testimonial-avatar {
    margin-right: 20px;
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* Подвал */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--gray-color);
    font-size: 14px;
}

.footer-nav h3, .footer-social h3, .footer-links h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-nav ul, .footer-links ul {
    list-style: none;
}

.footer-nav ul li, .footer-links ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a, .footer-links ul li a {
    color: var(--gray-color);
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover, .footer-links ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-links a {
    color: var(--gray-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav {
        margin: 15px 0;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .auth-buttons {
        margin-top: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .vk-btn, .telegram-btn {
        margin: 10px 0;
        width: 200px;
    }
    
    .games-list, .features-list, .testimonials-list {
        grid-template-columns: 1fr;
    }
}

/* SEO-оптимизация: скрытые тексты с ключевыми словами */
.seo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Анимации и эффекты */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
} 