﻿

.lore-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.lore-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.lore-content h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.lore-text {
    font-size: 20px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.8;
}

.lore-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.lore-image {
    max-width: 900px;
    margin: 0 auto;
}

.lore-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    height: 500px;
}

.mechanics-section {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.section-title {
    font-family: 'Baloo 2', cursive;
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.accordion-group {
    max-width: 900px;
    margin: 0 auto;
}

.accordion {
    background: var(--bg-primary);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.accordion:hover {
    box-shadow: var(--shadow-hover);
}

.accordion-header {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(43, 124, 255, 0.05);
}

.accordion-header h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.accordion-icon {
    font-size: 24px;
    color: var(--accent-primary);
    transition: var(--transition);
    font-weight: 300;
}

.accordion.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 24px;
}

.accordion.active .accordion-content {
    max-height: 500px;
    padding: 0 24px 24px;
}

.accordion-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.ecology-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.ecology-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ecology-text h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.ecology-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.ecology-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    height: 400px;
}

.interactive-cards-section {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.interactive-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    perspective: 1000px;
}

.interactive-card {
    position: relative;
    height: 350px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.interactive-card:hover {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-front {
    background: var(--bg-primary);
}

.card-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.card-front h3 {
    padding: 20px;
    font-size: 22px;
    color: var(--text-primary);
    text-align: center;
}

.card-back {
    background: linear-gradient(135deg, var(--accent-primary), #5A9BFF);
    color: white;
    transform: rotateY(180deg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back h3 {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: center;
}

.card-back p {
    margin-bottom: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

.card-back ul {
    list-style: none;
    padding: 0;
}

.card-back ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.card-back ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
}

.news-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.news-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 24px;
}

.news-date {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(95, 211, 168, 0.15);
    color: var(--accent-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.news-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #5A9BFF 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}


@media (max-width: 968px) {
    .ecology-content {
        grid-template-columns: 1fr;
    }
    
    .ecology-image img {
        height: 300px;
    }
    
    .interactive-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .news-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lore-section,
    .mechanics-section,
    .ecology-section,
    .interactive-cards-section,
    .news-section,
    .cta-section {
        padding: 60px 20px;
    }
    
    .lore-content h1,
    .section-title {
        font-size: 28px;
    }
    
    .lore-text {
        font-size: 18px;
    }
    
    .lore-image img {
        height: 300px;
    }
    
    .interactive-card {
        height: 300px;
    }
}


