/* style/index.css */

/* General page styling */
.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark body background */
    background-color: transparent; /* body background is handled by shared.css */
}

.page-index__dark-section {
    background-color: #333333; /* Dark background to contrast with light sections, or use primary brand color */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-index__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 20px;
    text-align: center;
}

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

/* Video Section */
.page-index__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #1a1a1a; /* Dark background for video section */
}

.page-index__video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-index__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-index__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
    opacity: 1;
}

.page-index__video-click-hint {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    background: rgba(38, 169, 224, 0.8); /* Using primary color with opacity */
    border-radius: 5px;
    white-space: nowrap;
}

.page-index__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.page-index__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color, #26A9E0); /* Primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-index__play-now-button:hover {
    background: #1e87b6; /* Slightly darker primary color */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* H1 Title + CTA Buttons Section */
.page-index__title-section {
    padding: 60px 20px;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-align: center;
}

.page-index__title-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-index__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

.page-index__title-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping for single button */
}

.page-index__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
}

.page-index__btn-primary:hover {
    background-color: #c96a06;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary color for secondary CTA text */
    border: 2px solid #26A9E0;
}

.page-index__btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Featured Games/Services Section */
.page-index__featured-section {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333333;
}

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

.page-index__featured-title {
    font-size: 38px;
    margin-bottom: 20px;
    color: #26A9E0; /* Primary color for section title */
    font-weight: bold;
}

.page-index__featured-description {
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-index__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index__game-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-index__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index__game-card-title {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: #26A9E0;
}

.page-index__game-card-title .page-index__card-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-index__game-card-title .page-index__card-link:hover {
    color: #1e87b6;
}

.page-index__game-card-text {
    font-size: 16px;
    color: #666666;
    margin: 0 20px 20px;
    flex-grow: 1; /* Allows text to take up available space */
}

.page-index__game-card-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 20px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

.page-index__game-card-button:hover {
    background-color: #1e87b6;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 20px;
    background-color: #333333; /* Dark background */
    color: #ffffff;
}

.page-index__faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index__faq-main-title {
    font-size: 38px;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: bold;
}

.page-index__faq-list {
    margin-top: 30px;
}

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #444444; /* Slightly lighter dark for item */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #444444;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

.page-index__faq-question:hover {
    background: #555555;
}

.page-index__faq-question:active {
    background: #666666;
}