/* ==============================================
  ОПТИМІЗОВАНИЙ ФАЙЛ СТИЛІВ КОНТЕНТУ (style.css)
==============================================
*/

/* --- 1. Анімації при прокрутці --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 2. Hero Section --- */
.hero {
    background-color: var(--bg-color-white);
    text-align: center;
    padding: 5rem 1.25rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-color-light);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* --- 3. Загальний заголовок секції --- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}
.section-title p {
    font-size: 1rem;
    color: var(--text-color-light);
}

/* --- 4. Journey / Timeline Section --- */
.journey {
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Правило .timeline::after було видалено, як ви просили */

.timeline-item {
    padding-left: 70px;
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-color-white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--primary-color);
}

.timeline-content {
    padding: 1.25rem;
    background-color: var(--bg-color-white);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: var(--border-radius-sm);
}
.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.timeline-content p {
    font-size: 0.9375rem;
    color: var(--text-color-light);
    line-height: 1.5;
}

/* --- 5. Philosophy Section --- */
.philosophy-section {
    padding: 4rem 1.25rem;
    text-align: center;
}
.philosophy-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.philosophy-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto;
}

/* --- 6. Game List & Card Styles --- */
.game-list {
    padding: 5rem 1.25rem;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background-color: var(--bg-color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.game-card + .game-card {
    margin-top: 2.25rem;
}

.game-card-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background-color: #f0f0f0;
    border-radius: var(--border-radius-md);
    flex-shrink: 0;
}

.game-card-content {
    flex-grow: 1;
}

.game-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-card-content p {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 1.25rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-color-white) !important;
    padding: 0.75rem 1.375rem;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* --- 7. Factoid Separator --- */
.factoid-separator {
    text-align: center;
    margin: 3.75rem auto;
    max-width: 600px;
    color: var(--text-color-light);
    font-size: 0.9375rem;
}
.factoid-separator p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.factoid-separator i {
    color: var(--text-color-dark);
    font-size: 1.125rem;
}

/* --- 8. CTA & Future Sections --- */
.cta-section, .future-section {
    padding: 5rem 1.25rem;
    background-color: var(--bg-color-white);
    text-align: center;
}
.cta-section h2, .future-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.cta-section p, .future-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto;
}
.cta-features {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}
.cta-feature {
    max-width: 300px;
    flex-grow: 1;
}
.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.cta-feature h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}
.cta-feature p {
    color: var(--text-color-light);
    line-height: 1.6;
}
.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-sm);
}

/* --- 9. Стилі для сторінок Contact та Legal --- */
.contact-section, .legal-section {
    padding: 5rem 1.25rem;
    background-color: var(--bg-color-white);
}

.contact-section {
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}
.contact-info h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-color-light); margin-bottom: 1.5rem; }
.contact-email {
    display: inline-block;
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.contact-email:hover {
    background-color: var(--primary-color);
    color: var(--bg-color-white);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h1 { font-size: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.legal-content h2 { font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content p, .legal-content li, .legal-content ul { line-height: 1.8; color: var(--text-color-light); margin-bottom: 1rem; }
.legal-content a { color: var(--primary-color); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* ==============================================
  10. АДАПТИВНІ СТИЛІ (для мобільних)
==============================================
*/
@media (max-width: 768px) {
    /* Картки ігор */
    .game-card { flex-direction: column; gap: 1.5rem; padding: 1.5rem; text-align: center; }
    .game-card-image { width: 100%; max-width: 250px; height: auto; aspect-ratio: 1 / 1; }

    /* Таймлайн */
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; text-align: left; padding-left: 70px; }
    .timeline-item .timeline-icon { left: 5px; transform: translateY(-50%); }
    .timeline-item:nth-child(odd) .timeline-icon, .timeline-item:nth-child(even) .timeline-icon { left: 5px; transform: translateY(-50%); }
    .timeline-content::after { display: none; }
}