/* 
 * PH356 Casino Website Styles
 * A modern, responsive design for online casino website
 */

/* ---------- VARIABLES & FONTS ---------- */
:root {
    /* Primary color palette - dark elegant theme for casino */
    --color-primary: #4D2DB7;      /* Deep purple */
    --color-secondary: #EC994B;    /* Golden orange */
    --color-accent: #D7263D;       /* Vibrant red */
    --color-dark: #19191D;         /* Nearly black */
    --color-light: #F8F8F8;        /* Off white */
    --color-success: #00AF54;      /* Green */
    --color-warning: #FFD60A;      /* Yellow */
    --color-danger: #E63946;       /* Red */
    --color-gray: #848494;         /* Medium gray */
    --color-dark-gray: #2A2A32;    /* Dark gray */
    
    /* Typography */
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --box-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- RESET & BASE STYLES ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ---------- LAYOUT & CONTAINERS ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-gray);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-secondary);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #3F219A;
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #D88A3F;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.btn-play, .btn-demo {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0 0.25rem;
}

/* ---------- HEADER STYLES ---------- */
.site-header {
    background-color: var(--color-dark);
    padding: 0.5rem 0;
    position: relative;
    z-index: 100;
}

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

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

.header-actions {
    display: flex;
    align-items: center;
}

.language-selector {
    position: relative;
    margin-right: 1.5rem;
    color: white;
    cursor: pointer;
}

.language-selector span {
    display: flex;
    align-items: center;
}

.language-selector span::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 0.3rem;
}

.language-selector ul {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-dark-gray);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    min-width: 120px;
    display: none;
}

.language-selector.active ul {
    display: block;
}

.language-selector ul li a {
    color: white;
    display: block;
    padding: 0.5rem;
}

.language-selector ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-selector ul li a.active {
    color: var(--color-secondary);
}

.auth-buttons .btn {
    margin-left: 0.5rem;
}

.main-nav {
    background-color: var(--color-dark-gray);
    border-radius: var(--border-radius-sm);
    margin-top: 0.5rem;
}

.nav-list {
    display: flex;
    justify-content: space-around;
}

.nav-list li a {
    color: white;
    display: block;
    padding: 1rem;
    text-align: center;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--color-secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: all 0.3s ease;
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    color: white;
    overflow: hidden;
    padding: 0;
}

.hero-slider .slide {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), #2A167A);
    z-index: -1;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.slide-content {
    max-width: 650px;
    padding: 2rem 0;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-features {
    background-color: var(--color-dark-gray);
    padding: 1.5rem 0;
    margin-top: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.feature-icon {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.feature-content h3 {
    color: var(--color-secondary);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.feature-content p {
    color: white;
    opacity: 0.8;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ---------- GAME CATEGORIES ---------- */
.game-categories {
    background-color: var(--color-light);
    padding-top: var(--spacing-xl);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--box-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.category-icon {
    margin-bottom: 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    color: var(--color-dark);
    margin-bottom: 0;
}

/* ---------- FEATURED GAMES ---------- */
.featured-games {
    background-color: var(--color-light);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.game-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.game-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-card h4 {
    padding: 1rem;
    margin: 0;
}

.game-provider {
    display: block;
    padding: 0 1rem 1rem;
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* ---------- CASINO RESOURCES ---------- */
.casino-resources {
    background-color: var(--color-dark);
    color: white;
    padding: var(--spacing-xl) 0;
}

.casino-resources h2 {
    color: white;
    margin-bottom: 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}

.resource-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.resource-item a {
    color: var(--color-secondary);
    font-weight: 600;
}

.resource-item a:hover {
    color: var(--color-warning);
}

/* ---------- WHY CHOOSE US ---------- */
.why-choose-us {
    background-color: var(--color-light);
    padding: var(--spacing-xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow-sm);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.benefit-icon {
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    background-color: var(--color-dark);
    color: white;
    padding: var(--spacing-xl) 0;
}

.testimonials h2 {
    color: white;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    background-color: var(--color-dark-gray);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    position: relative;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.star {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/icon-star.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
}

.star.half {
    background-image: url('../images/icon-star-half.svg');
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-author h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
    background-color: var(--color-primary);
    padding: var(--spacing-lg) 0;
    color: white;
}

.newsletter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    margin-bottom: 0;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    width: 100%;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    font-family: var(--font-primary);
    outline: none;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    background-color: var(--color-secondary);
}

.newsletter-form .btn:hover {
    background-color: #D88A3F;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: var(--color-dark);
    color: white;
    padding-top: var(--spacing-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about p {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo-small {
    margin-right: 1rem;
}

.footer-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.footer-payment-methods {
    flex-shrink: 0;
}

/* ---------- ICONS (Font Icons Replacement) ---------- */
[class^="icon-"] {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.icon-facebook {
    background-image: url('../images/icon-facebook.svg');
}

.icon-twitter {
    background-image: url('../images/icon-twitter.svg');
}

.icon-instagram {
    background-image: url('../images/icon-instagram.svg');
}

.icon-youtube {
    background-image: url('../images/icon-youtube.svg');
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid,
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-dark);
        padding: 1rem 0;
        z-index: 100;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .hero-slider .slide {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .categories-grid,
    .games-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        margin-bottom: 1.5rem;
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo-small {
        margin-bottom: 1rem;
    }
    
    .footer-info {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .features-grid,
    .categories-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .header-wrapper {
        flex-direction: column;
    }
    
    .header-actions {
        margin-top: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
