/* style/casino.css */

/* Custom Colors */
:root {
    --fc888-primary-color: #11A84E;
    --fc888-secondary-color: #22C768;
    --fc888-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --fc888-card-bg: #11271B;
    --fc888-background: #08160F;
    --fc888-text-main: #F2FFF6;
    --fc888-text-secondary: #A7D9B8;
    --fc888-border: #2E7A4E;
    --fc888-glow: #57E38D;
    --fc888-gold: #F2C14E;
    --fc888-divider: #1E3A2A;
    --fc888-deep-green: #0A4B2C;
}

.page-casino {
    background-color: var(--fc888-background);
    color: var(--fc888-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: var(--fc888-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.page-casino__intro-text {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 60px auto;
    font-size: 1.1em;
    color: var(--fc888-text-secondary);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    background-color: var(--fc888-deep-green);
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-casino__main-title {
    color: var(--fc888-gold);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-size: clamp(2em, 5vw, 3.5em); /* Using clamp for H1 font size */
}

.page-casino__description {
    color: var(--fc888-text-main);
    font-size: 1.15em;
    margin-bottom: 40px;
    line-height: 1.7;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-casino__btn-primary {
    background: var(--fc888-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(19, 153, 74, 0.4);
}

.page-casino__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(19, 153, 74, 0.6);
    opacity: 0.9;
}

.page-casino__btn-secondary {
    background: var(--fc888-card-bg);
    color: var(--fc888-gold);
    border: 2px solid var(--fc888-gold);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-casino__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--fc888-gold);
    color: var(--fc888-card-bg);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-link {
    background-color: transparent;
    color: var(--fc888-gold);
    border: 1px solid var(--fc888-gold);
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-casino__btn-link:hover {
    background-color: var(--fc888-gold);
    color: var(--fc888-card-bg);
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: var(--fc888-background);
}

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

.page-casino__text-block {
    flex: 1;
    color: var(--fc888-text-main);
}

.page-casino__text-block p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-casino__image-block {
    flex: 1;
    text-align: center;
}

.page-casino__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: var(--fc888-deep-green);
}

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

.page-casino__game-card {
    background-color: var(--fc888-card-bg);
    border: 1px solid var(--fc888-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-casino__game-title {
    color: var(--fc888-gold);
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__game-description {
    color: var(--fc888-text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-casino__view-all-games {
    text-align: center;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: var(--fc888-background);
}

.page-casino__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-casino__promo-card {
    background-color: var(--fc888-card-bg);
    border: 1px solid var(--fc888-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-casino__promo-title {
    color: var(--fc888-gold);
    font-size: 1.6em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__promo-description {
    color: var(--fc888-text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-casino__view-all-promos {
    text-align: center;
}

/* Guide Section */
.page-casino__guide-section {
    padding: 80px 0;
    background-color: var(--fc888-deep-green);
}

.page-casino__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.page-casino__step-item {
    background-color: var(--fc888-card-bg);
    border: 1px solid var(--fc888-border);
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-casino__step-item:hover {
    transform: translateY(-5px);
}

.page-casino__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--fc888-button-gradient);
    color: #ffffff;
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

.page-casino__step-title {
    color: var(--fc888-gold);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-casino__step-description {
    color: var(--fc888-text-secondary);
    font-size: 0.95em;
}

.page-casino__cta-center {
    text-align: center;
    margin-top: 60px;
}

/* Security & Support Section */
.page-casino__security-support-section {
    padding: 80px 0;
    background-color: var(--fc888-background);
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: var(--fc888-deep-green);
}

.page-casino__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-casino__faq-item {
    background-color: var(--fc888-card-bg);
    border: 1px solid var(--fc888-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-casino__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--fc888-card-bg);
    color: var(--fc888-text-main);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-casino__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-casino__faq-item summary:hover {
    background-color: var(--fc888-deep-green);
}

.page-casino__faq-qtext {
    color: var(--fc888-text-main);
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    color: var(--fc888-gold);
    line-height: 1;
    margin-left: 15px;
}

.page-casino__faq-answer {
    padding: 0 25px 20px;
    color: var(--fc888-text-secondary);
    font-size: 1em;
    line-height: 1.6;
    border-top: 1px solid var(--fc888-divider);
    margin-top: -1px; /* Overlap border */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__image-block {
        margin-top: 30px;
    }
    .page-casino__game-image, .page-casino__promo-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-casino__section-title {
        font-size: 2em;
        padding-top: 20px;
        margin-bottom: 30px;
    }
    .page-casino__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }
    .page-casino__description {
        font-size: 1em;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary, .page-casino__btn-secondary, .page-casino__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }
    .page-casino__hero-image-wrapper, .page-casino__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-casino__image, .page-casino__game-image, .page-casino__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__container,
    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__guide-steps,
    .page-casino__faq-list,
    .page-casino__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-casino__game-card, .page-casino__promo-card, .page-casino__step-item {
        margin-left: auto;
        margin-right: auto;
    }
    .page-casino p, .page-casino li {
      font-size: 16px;
      line-height: 1.6;
    }
    .page-casino__card {
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-casino__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-casino__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__game-grid, .page-casino__promo-grid, .page-casino__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__main-title {
        font-size: clamp(1.5em, 10vw, 2em);
    }
    .page-casino__hero-content {
        padding: 0 10px;
    }
}