/* style/fishing-games.css */

/* Custom Colors from prompt */
:root {
    --page-bg-color: #08160F; /* Background */
    --card-bg-color: #11271B; /* Card BG */
    --text-main-color: #F2FFF6; /* Text Main */
    --text-secondary-color: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */

    /* Button Gradient */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content, ensuring contrast with body background (assumed dark from custom colors) */
.page-fishing-games {
    background-color: var(--page-bg-color);
    color: var(--text-main-color); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-fishing-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-fishing-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Use clamp for H2 */
    color: var(--gold-color); /* Use gold for section titles for emphasis */
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-fishing-games__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-fishing-games__text-small {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-top: 20px;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
}

.page-fishing-games__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 600px; /* Limit height to prevent excessive image size on large screens */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability without changing colors */
}

.page-fishing-games__hero-content {
    position: relative; /* Ensure content is above any potential background layers */
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-fishing-games__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 clamp, avoid fixed large values */
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 255, 246, 0.6);
}

.page-fishing-games__hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-fishing-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on dark gradient button */
    border: none;
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-fishing-games__btn-secondary {
    background: transparent;
    color: var(--gold-color); /* Gold text on transparent button */
    border: 2px solid var(--gold-color);
}

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(242, 193, 78, 0.1); /* Slight gold background on hover */
}

.page-fishing-games__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

.page-fishing-games__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Featured Games Section */
.page-fishing-games__featured-games-section {
    background-color: var(--deep-green-color);
}

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

.page-fishing-games__game-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit handles aspect ratio */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--divider-color);
}

.page-fishing-games__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    padding: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-fishing-games__card-description {
    font-size: 1rem;
    color: var(--text-secondary-color);
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-fishing-games__game-card .page-fishing-games__btn-primary {
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

/* Video Section */
.page-fishing-games__video-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--page-bg-color);
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%; /* Ensure width is 100% on desktop too */
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Make the whole area clickable */
    cursor: pointer;
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Guide Section */
.page-fishing-games__guide-section {
    background-color: var(--deep-green-color);
}

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

.page-fishing-games__guide-step-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-fishing-games__guide-step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__guide-step-card p {
    color: var(--text-secondary-color);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__guide-step-card .page-fishing-games__btn-primary {
    align-self: flex-start;
    width: auto; /* Allow button to size based on content */
    padding: 10px 20px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    background-color: var(--page-bg-color);
}

.page-fishing-games__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}

.page-fishing-games__promo-card .page-fishing-games__card-image {
    width: 100%;
    height: auto;
    max-height: 450px; /* Limit image height */
    object-fit: cover;
    border-bottom: 1px solid var(--divider-color);
}

.page-fishing-games__promo-content {
    padding: 30px;
    text-align: center;
}

.page-fishing-games__promo-content .page-fishing-games__card-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 15px;
    padding: 0; /* Override card-title padding */
}

.page-fishing-games__promo-content .page-fishing-games__card-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding: 0; /* Override card-description padding */
}

/* Benefits Section */
.page-fishing-games__benefits-section {
    background-color: var(--deep-green-color);
}

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

.page-fishing-games__benefit-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}