/* style/casino.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #EA7C07; /* For login/action buttons */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-light: #ffffff;
    --background-dark: #002e40; /* Darker variant of primary for contrast */
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

/* Base styles for the page content */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background body */
    background: var(--background-light); /* Body background is white by default */
}

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

.page-casino__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-casino__description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Gradient background for the section */
    color: var(--text-color-light);
    overflow: hidden;
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-casino__main-title {
    font-size: clamp(32px, 4.5vw, 54px); /* H1 with clamp for responsiveness */
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-casino__hero-content .page-casino__description {
    color: var(--text-color-light);
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-casino__cta-center {
    justify-content: center;
    text-align: center;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    min-width: 180px; /* Minimum width for buttons */
    height: auto; /* Allow height to adjust for wrapped text */
}

.page-casino__btn-primary {
    background: var(--secondary-color); /* Use secondary for primary action */
    color: var(--text-color-light);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
    background: #c76500;
    border-color: #c76500;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-small {
    padding: 10px 25px;
    font-size: 16px;
    min-width: unset;
}

.page-casino__btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Section Styling */
.page-casino__intro-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__faq-section,
.page-casino__cta-final-section {
    padding: 80px 0;
}

.page-casino__dark-bg {
    background: var(--background-dark);
    color: var(--text-color-light);
}

.page-casino__dark-bg .page-casino__section-title {
    color: var(--primary-color); /* Primary color for titles on dark background */
}

.page-casino__dark-bg .page-casino__description {
    color: #cccccc;
}

.page-casino__light-bg {
    background: var(--background-light);
    color: var(--text-color-dark);
}

/* Feature List (Intro Section) */
.page-casino__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-casino__feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease;
}

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

.page-casino__feature-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Game Categories Section */
.page-casino__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino__game-card {
    background: #004058; /* Darker blue for cards on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--text-color-light);
    transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__game-card .page-casino__card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: var(--primary-color); /* Primary color for titles on dark card */
}

.page-casino__game-card .page-casino__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-casino__game-card .page-casino__card-title a:hover {
    text-decoration: underline;
}

.page-casino__game-card p {
    font-size: 15px;
    margin: 0 20px 20px;
    flex-grow: 1;
    color: #eeeeee;
}

.page-casino__game-card .page-casino__btn-primary {
    margin: 0 20px 20px;
    align-self: flex-start;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-light);
}
.page-casino__game-card .page-casino__btn-primary:hover {
    background: #c76500;
    border-color: #c76500;
}


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

.page-casino__promo-card {
    background: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__promo-card .page-casino__card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: var(--primary-color);
}

.page-casino__promo-card p {
    font-size: 15px;
    margin: 0 20px 20px;
    flex-grow: 1;
    color: #555555;
}

.page-casino__promo-card .page-casino__btn-primary {
    margin: 0 20px 20px;
    align-self: flex-start;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-casino__promo-card .page-casino__btn-primary:hover {
    background: #1e87b7;
    border-color: #1e87b7;
}

/* Security Section */
.page-casino__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino__security-item {
    background: #004058; /* Darker blue for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--text-color-light);
}

.page-casino__security-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__item-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__security-item p {
    color: #eeeeee;
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-light);
  box-shadow: 0 2px 8px var(--shadow-light);
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-color-dark);
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}
.page-casino__faq-answer p {
    margin-bottom: 0;
    font-size: 15px;
}


/* Final CTA Section */
.page-casino__cta-final-section {
    padding: 100px 0;
    text-align: center;
}

.page-casino__cta-final-section .page-casino__section-title {
    color: var(--text-color-light);
}

.page-casino__cta-final-section .page-casino__description {
    color: #cccccc;
    margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__description {
        font-size: 16px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-casino__hero-image img,
    .page-casino__feature-item img,
    .page-casino__game-card img,
    .page-casino__promo-card img,
    .page-casino__security-item img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    /* General mobile overrides */
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__container {
        padding: 0 15px;
    }

    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-casino__description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-casino__hero-section {
        padding-top: 10px !important; /* Body handles header offset; small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__main-title {
        font-size: clamp(28px, 8vw, 40px);
    }
    .page-casino__hero-content .page-casino__description {
        font-size: 16px;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Section Padding */
    .page-casino__intro-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__faq-section,
    .page-casino__cta-final-section {
        padding: 50px 0;
    }

    /* Images responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Feature List */
    .page-casino__feature-list,
    .page-casino__game-categories,
    .page-casino__promo-grid,
    .page-casino__security-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-casino__feature-item,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__security-item {
        padding: 25px;
    }

    .page-casino__feature-title,
    .page-casino__game-card .page-casino__card-title,
    .page-casino__promo-card .page-casino__card-title,
    .page-casino__item-title {
        font-size: 20px;
    }

    .page-casino__game-card img,
    .page-casino__promo-card img {
         /* Adjust height for mobile */
    }

    /* FAQ Section */
    details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
    .page-casino__faq-qtext { font-size: 15px; }
    details.page-casino__faq-item .page-casino__faq-answer { padding: 0 15px 15px; }

}

/* Ensure all content area images are at least 200px */
.page-casino__hero-image img,
.page-casino__feature-item img,
.page-casino__game-card img,
.page-casino__promo-card img,
.page-casino__security-item img {
    min-width: 200px;
    min-height: 200px;
}