/* ============================================
   89BD Casino - Main Stylesheet
   Mobile First Approach
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-bg: #161616;
    --primary-btn-bg: #2D2D2D;
    --primary-btn-color: #fff;
    --secondary-btn-border: #2D2D2D;
    --secondary-btn-color: #2D2D2D;
    --bg-color: #ECD1DD;
    --accent-color: #FE8DBA;
    --text-dark: #161616;
    --text-light: #fff;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo:hover {
    opacity: 0.8;
}

/* Navigation */
nav {
    display: none;
}

nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

nav ul li a {
    color: var(--text-light);
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 4px;
    transition: var(--transition);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

nav ul li a.active {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 600;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Burger Menu */
.burger-menu {
    display: block;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.burger-menu:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    min-height: 44px;
    line-height: 1.5;
}

.primary-btn {
    background-color: var(--primary-btn-bg);
    color: var(--primary-btn-color);
    border: 2px solid var(--primary-btn-bg);
}

.primary-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 141, 186, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-btn-color);
    border: 1px solid var(--secondary-btn-border);
}

.secondary-btn:hover {
    background-color: var(--secondary-btn-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 45, 45, 0.3);
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
}

.banner-swiper {
    width: 100%;
    height: 125px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slider-image {
    width: 100%;
    height: 100%;
    display: block;
}

.banner-swiper .swiper-pagination {
    bottom: 20px;
}

.banner-swiper .swiper-pagination-bullet {
    background-color: var(--text-light);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.banner-swiper .swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    opacity: 1;
}

.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    color: var(--text-light);
    background-color: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
    background-color: var(--accent-color);
}

.banner-swiper .swiper-button-next::after,
.banner-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

ul, ol {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

header .secondary-btn {
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-color) !important;
}

header .secondary-btn:hover {
    background-color: var(--accent-color) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--accent-color) !important;
}

header .primary-btn {
    background-color: var(--accent-color) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--accent-color) !important;
}

/* Images */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

table th {
    background-color: var(--primary-btn-bg);
    color: var(--text-light);
    font-weight: 600;
}

table tr:hover {
    background-color: rgba(254, 141, 186, 0.1);
}

/* Lists */
ul.features-list {
    list-style: none;
    padding-left: 0;
}

ul.features-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

ul.features-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* CTA Buttons in Content */
.cta-button {
    display: inline-block;
    margin: 1rem 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Reviews Section */
.reviews {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.review-item {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.review-item .stars {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-item {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-btn-bg);
}

/* Footer */
footer {
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.payment-systems {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: center;
}

.payment-systems span {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (min-width: 1480px) {
    .header-container {
        padding: 0 2rem;
    }

    nav {
        display: block;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    nav ul {
        flex-direction: row;
        gap: 10px;
    }

    nav ul li a {
        padding: 0.5rem 1rem;
    }

    .burger-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-wrap: wrap;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        order: 3;
    }

    .header-buttons .btn {
        width: 100%;
    }
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .banner-swiper {
        height: 300px;
    }
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    main {
        padding: 3rem 2rem;
    }

    .section-content {
        padding: 2rem;
    }

    .reviews {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .banner-swiper {
        height: 400px;
    }
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .header-container {
        padding: 0 3rem;
    }

    nav ul li a {
        padding: 0.75rem 1.5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    main {
        padding: 4rem 3rem;
    }

    .section-content {
        padding: 2.5rem;
    }
    
    .section-content.text-center {
        text-align: center;
    }

    .reviews {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

