/* MAGNUS - Основные стили */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-bg: #1a1a2e;
    --light-bg: #16213e;
    --text-light: #ffffff;
    --text-dark: #333333;
    --accent: #ffd700;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f4f4f4;
}

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

/* Навигация */
.navbar {
    background: var(--dark-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.nav-brand h1 {
    color: var(--accent);
    font-size: 1.5rem;
}

.logo {
    max-height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Главный баннер */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.7);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn img {
    width: 24px;
    height: 24px;
}

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

.btn-primary:hover {
    background: #ff8555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

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

.btn-secondary:hover {
    background: #006bb3;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 2rem;
}

.btn-google-play {
    background: transparent;
    padding: 0;
    border: none;
    transition: transform 0.3s;
}

.btn-google-play:hover {
    transform: scale(1.05);
    box-shadow: none;
}

.btn-google-play img {
    height: 60px;
    width: auto;
    display: block;
}

.btn-discord {
    background: #5865F2;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 8px;
}

.btn-discord:hover {
    background: #4752C4;
}

.discord-icon {
    width: 32px;
    height: 32px;
}

.btn-discord span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Галерея героев */
.featured-heroes {
    padding: 4rem 0;
    background: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.featured-heroes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.featured-heroes .container {
    position: relative;
    z-index: 2;
}

.featured-heroes h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

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

.hero-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-card h3 {
    padding: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-card p {
    padding: 0 1rem 1rem;
    color: var(--text-dark);
}

/* Страница контента */
.page-content {
    padding: 3rem 0;
    background: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    position: relative;
}

.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.page-content .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 2rem;
    text-align: center;
}

/* Детальная карточка героя */
.heroes-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-detail-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-placeholder-large {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.hero-info h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-info h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-meta {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.hero-meta p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta .country-flag {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.hero-meta .country-flag-img {
    height: 24px;
    width: auto;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hero-quote {
    font-style: italic;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #ff6b35;
    border-radius: 8px;
    color: #333333; /* темный цвет текста */
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-description,
.hero-skill {
    margin: 1.5rem 0;
}

.hero-description h4,
.hero-skill h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Контент лора */
.lore-content {
    max-width: 900px;
    margin: 0 auto;
}

.lore-section {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lore-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lore-text {
    line-height: 1.8;
    color: var(--text-dark);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* Футер */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .hero-detail-card {
        grid-template-columns: 1fr;
    }
    
    .hero-image img,
    .hero-placeholder-large {
        width: 100%;
        height: auto;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .heroes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}