/* Legion Page Styles */

.legion-page {
    width: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    background-image: url('../images/2600_Masthead.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: 'Blizzard', 'Arial', sans-serif;
    position: relative;
}

/* Masthead Section */
.legion-masthead {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.legion-masthead-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.legion-masthead-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

.legion-masthead-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    display: none;
}

/* Show fallback only if video is not available */
.legion-masthead-background:has(.legion-masthead-video:not([src])) .legion-masthead-fallback,
.legion-masthead-background:has(.legion-masthead-video[style*="display: none"]) .legion-masthead-fallback {
    display: block;
    z-index: 0;
}

.legion-masthead-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.3) 75%, 
        rgba(0, 0, 0, 0.2) 80%, 
        rgba(0, 0, 0, 0.1) 85%, 
        rgba(0, 0, 0, 0.05) 90%, 
        rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}


.legion-masthead-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.legion-masthead-logo {
    margin-bottom: 40px;
}

.legion-masthead-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.legion-masthead-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.legion-masthead-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legion-masthead-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.legion-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.legion-button-primary {
    background: linear-gradient(135deg, #f7b10a, #d4941f);
    color: #000000;
    border: 2px solid #f7b10a;
}

.legion-button-primary:hover {
    background: linear-gradient(135deg, #d4941f, #b8821a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 177, 10, 0.4);
}

.legion-button-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.legion-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.legion-masthead-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #999;
}

.legion-platform-link {
    display: inline-block;
}

.legion-platform-link img {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.legion-platform-link:hover img {
    opacity: 1;
}

/* Container */
.legion-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Overview Section */
.legion-overview {
    position: relative;
    padding: 100px 0;
    background: transparent; /* Полностью прозрачный фон */
    overflow: visible;
    z-index: 1; /* Ниже masthead */
}

.legion-overview-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.legion-overview-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f7b10a;
    text-transform: uppercase;
}

.legion-overview-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
}

.legion-overview-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
}

.legion-overview-media {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.legion-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.legion-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Divider */
.legion-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(247, 177, 10, 0.3), transparent);
    margin: 60px 0;
}

/* Features Section */
.legion-features {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.legion-features-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
}

.legion-features-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.legion-features-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f7b10a;
    text-transform: uppercase;
}

.legion-features-header p {
    font-size: 20px;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 900px;
    margin: 0 auto;
}

.legion-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.legion-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
    transition: transform 0.3s ease;
    background: transparent;
    border: none;
}

.legion-feature-item:hover {
    transform: translateX(5px);
}

.legion-feature-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(247, 177, 10, 0.3);
}

.legion-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.legion-feature-content {
    flex: 1;
}

.legion-feature-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.3;
}

.legion-feature-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

/* Improvements Section */
.legion-improvements {
    padding: 100px 0;
    background: transparent;
}

.legion-improvements-header {
    text-align: center;
    margin-bottom: 60px;
}

.legion-improvements-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f7b10a;
    text-transform: uppercase;
}

.legion-improvements-header h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.legion-improvements-header p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    max-width: 900px;
    margin: 0 auto;
}

.legion-improvements-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.legion-improvement-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(247, 177, 10, 0.2);
}

.legion-improvement-item h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f7b10a;
}

.legion-improvement-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* FAQ Section */
.legion-faq {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legion-faq-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 70%;
    opacity: 0.1;
    z-index: 0;
}

.legion-faq-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.legion-faq-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #f7b10a;
    text-transform: uppercase;
}

.legion-faq-list {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legion-faq-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(247, 177, 10, 0.2);
}

.legion-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.legion-faq-question:hover {
    background-color: rgba(247, 177, 10, 0.1);
}

.legion-faq-question h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.legion-faq-toggle {
    font-size: 32px;
    font-weight: 300;
    color: #f7b10a;
    line-height: 1;
    transition: transform 0.3s ease;
}

.legion-faq-item.active .legion-faq-toggle {
    transform: rotate(180deg);
}

.legion-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.legion-faq-item.active .legion-faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.legion-faq-answer p {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .legion-overview-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .legion-features-list {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .legion-masthead-title {
        font-size: 32px;
    }
    
    .legion-masthead-description {
        font-size: 16px;
    }
    
    .legion-masthead-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .legion-button {
        width: 100%;
        text-align: center;
    }
    
    .legion-overview-text h2,
    .legion-features-header h2,
    .legion-improvements-header h2,
    .legion-faq-header h2 {
        font-size: 32px;
    }
    
    .legion-features-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .legion-feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .legion-feature-content h3 {
        font-size: 18px;
    }
    
    .legion-feature-content p {
        font-size: 14px;
    }
    
    .legion-improvements-content {
        grid-template-columns: 1fr;
    }
    
    .legion-faq-question h3 {
        font-size: 16px;
    }
}

/* Legion Custom Footer */
.legion-footer {
    position: relative;
    background: linear-gradient(to bottom, 
        rgba(20, 40, 30, 0) 0%,
        rgba(20, 40, 30, 0.2) 5%,
        rgba(20, 40, 30, 0.5) 15%,
        rgba(20, 40, 30, 0.8) 30%,
        rgba(20, 40, 30, 1) 50%,
        rgba(15, 30, 20, 1) 100%);
    padding: 100px 0 40px;
    margin-top: 0;
    z-index: 10;
}

.legion-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.legion-footer-column {
    display: flex;
    flex-direction: column;
}

.legion-footer-column-left {
    gap: 20px;
}

.legion-footer-copyright {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.legion-footer-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: #888;
    margin-bottom: 20px;
}

.legion-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.legion-footer-link {
    font-size: 13px;
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legion-footer-link:hover {
    color: #f7b10a;
}

.legion-footer-developer {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-top: auto;
}

.legion-footer-developer-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.legion-footer-developer-text {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.legion-footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #f7b10a;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.legion-footer-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legion-footer-column-center .legion-footer-link,
.legion-footer-column-right .legion-footer-link {
    font-size: 13px;
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legion-footer-column-center .legion-footer-link:hover,
.legion-footer-column-right .legion-footer-link:hover {
    color: #f7b10a;
}

/* Hide default footer on legion page */
.legion-page ~ footer#footer,
body:has(.legion-page) footer#footer {
    display: none;
}

/* Responsive Footer */
@media (max-width: 968px) {
    .legion-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .legion-footer {
        padding: 60px 0 30px;
    }
}
