/* PH365 Casino Universal Styles */
/* Mobile-first responsive design with casino theme */

/* Root variables and base setup */
:root {
    --primary-gold: #FFD700;
    --dark-bg: #1A1A2E;
    --light-text: #BBBBBB;
    --white: #FFFFFF;
    --accent-red: #DC2626;
    --accent-green: #059669;
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-dark: linear-gradient(135deg, #1A1A2E, #16213E);
    --shadow-gold: 0 4px 15px rgba(255, 215, 0, 0.3);
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Base styles */
html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.5;
    font-size: 1.4rem;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-dark);
    padding: 1rem;
    z-index: 1000;
    box-shadow: var(--shadow-dark);
    border-bottom: 2px solid var(--primary-gold);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 120rem;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 0.8rem;
}

.site-name {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.header-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--dark-bg);
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 4.4rem;
    min-width: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -30rem;
    width: 30rem;
    height: 100vh;
    background: var(--gradient-dark);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-gold);
}

.nav-close {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 1rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1rem;
    display: block;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
}

/* Main content */
.main-content {
    margin-top: 7rem;
    min-height: calc(100vh - 7rem);
}

/* Carousel styles */
.carousel-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 20rem;
}

.carousel-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 26, 46, 0.7), rgba(255, 215, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

/* Game grid styles */
.games-section {
    margin: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.game-category {
    margin-bottom: 3rem;
}

.category-title {
    color: var(--primary-gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
    background: rgba(255, 215, 0, 0.1);
}

.game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 500;
    line-height: 1.2;
}

/* Content sections */
.content-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.content-section h2 {
    margin-bottom: 1.5rem;
}

.promo-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.promo-link:hover {
    color: var(--white);
    text-shadow: 0 0 5px var(--primary-gold);
}

.promo-btn {
    background: var(--gradient-gold);
    color: var(--dark-bg);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
    min-height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Footer styles */
.footer {
    background: var(--gradient-dark);
    padding: 3rem 1rem 8rem;
    margin-top: 4rem;
    border-top: 2px solid var(--primary-gold);
}

.footer-content {
    max-width: 120rem;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.footer-links a:hover {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

.partners-section {
    margin: 2rem 0;
}

.partners-title {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: var(--light-text);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-dark);
    padding: 1rem;
    z-index: 999;
    border-top: 2px solid var(--primary-gold);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
}

.bottom-nav-item:hover {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive design */
@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .game-icon {
        width: 5rem;
        height: 5rem;
    }
    
    .game-name {
        font-size: 1.1rem;
    }
    
    .carousel-wrapper {
        height: 25rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .mobile-bottom-nav {
        display: none;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .carousel-wrapper {
        height: 30rem;
    }
    
    .content-section {
        padding: 3rem 2rem;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--primary-gold);
}

.bg-dark {
    background: var(--dark-bg);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

/* Loading and animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Scroll to top button */
#scroll-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
    cursor: pointer;
    display: none;
    z-index: 998;
    transition: all 0.3s ease;
}

#scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

@media (min-width: 768px) {
    #scroll-top {
        bottom: 2rem;
    }
} 