/* === СТИЛИ ДЛЯ СТРАНИЦЫ 'ПРОХОЖДЕНИЯ И СОВЕТЫ' === */

/* Фон для главного экрана */
.hero-guides {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('image/banner.jpg') no-repeat center center/cover;
}

/* Рекомендуемый гайд */
.featured-guide-section {
    background: #fff;
}
.featured-guide {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--background-color);
    border-radius: 15px;
    overflow: hidden;
}
.featured-guide-image {
    flex: 1 1 40%;
    min-height: 300px;
    background: url('image/stardewvalley2.jpg') no-repeat center center/cover;
}
.featured-guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-guide-content {
    flex: 1 1 60%;
    padding: 2rem;
}
.featured-guide-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Табы */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    margin-bottom: 2rem;
}
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: #777;
    position: relative;
    transition: color 0.3s;
}
.tab-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}
.tab-link.active {
    color: var(--primary-color);
}
.tab-link.active::after {
    width: 100%;
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}
.tab-content.active {
    display: block;
}
.guides-list-detailed {
    list-style: none;
}
.guides-list-detailed li {
    margin-bottom: 1rem;
}
.guides-list-detailed a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.guides-list-detailed a:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    color: var(--primary-color);
}

/* Секция со статистикой */
.stats-section {
    background-color: var(--secondary-color);
    color: #fff;
}
.stats-section h2 { color: #fff; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
}
.stat-item p {
    font-size: 1.1rem;
}

/* Аккордеон */
.accordion-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}
.accordion-header i {
    transition: transform 0.3s ease;
}
.accordion-header.active i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p {
    padding: 0 1.5rem 1.5rem;
}

/* Секция ошибок */
.mistakes-section {
    background: var(--background-color);
}
.mistakes-list {
    list-style: none;
    counter-reset: mistakes-counter;
    padding-left: 0;
}
.mistakes-list li {
    counter-increment: mistakes-counter;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}
.mistakes-list li::before {
    content: counter(mistakes-counter);
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 1.5rem;
    min-width: 30px;
    text-align: center;
}

/* Видео */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 15px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Адаптивность */
@media(max-width: 768px) {
    .featured-guide {
        flex-direction: column;
    }
    .featured-guide-content {
        padding: 1.5rem;
    }
    .mistakes-list li {
        flex-direction: column;
    }
    .mistakes-list li::before {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}