/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body, which is #121212 from shared.css */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Light grey for descriptions on dark background */
}

.page-resources__text-block {
    margin-bottom: 20px;
    color: #f0f0f0; /* Light grey for general text on dark background */
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources__hero-video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.page-resources__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-resources__btn-primary:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand color */
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Section specific backgrounds and text colors for contrast */
.page-resources__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with #121212 body */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for contrast */
    padding: 80px 0;
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__sub-title {
    color: #26A9E0; /* Brand color for titles on light background */
}

.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__section-description {
    color: #333333; /* Dark text on light background */
}

/* Overview Section */
.page-resources__overview-section {
    padding-top: 0; /* Hero already has offset */
}

.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-resources__flex-row {
    flex-direction: row;
}

.page-resources__flex-row.page-resources__margin-top {
    margin-top: 60px;
}

.page-resources__text-content {
    flex: 1;
}

.page-resources__image-right {
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
}

.page-resources__image-left {
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
}


/* Login Guide Section */
.page-resources__login-guide-section {
    padding: 80px 0;
}

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

.page-resources__guide-step {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-resources__guide-step .page-resources__btn-primary,
.page-resources__guide-step .page-resources__btn-secondary {
    margin-top: 20px;
    align-self: flex-start;
}

.page-resources__guide-step .page-resources__step-title {
    color: #26A9E0;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-resources__guide-step .page-resources__step-description {
    color: #555555;
}

.page-resources__guide-image {
    grid-column: span 2; /* Spans two columns in a multi-column layout */
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Games Section */
.page-resources__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-resources__game-card:hover {
    transform: translateY(-5px);
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will cover */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__card-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-resources__game-card .page-resources__btn-secondary {
    margin-top: auto; /* Push button to the bottom */
}