/* Cardtime Casino Styles */
/* All classes use prefix: pgc4- */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #FFEBCD;
    background-color: #2D2D2D;
    overflow-x: hidden;
}

body.pgc4-no-scroll {
    overflow: hidden;
}

/* Container */
.pgc4-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.pgc4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
    border-bottom: 1px solid #BF360C;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pgc4-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.pgc4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #FFEBCD;
}

.pgc4-logo-icon {
    width: 2.8rem;
    height: 2.8rem;
    background: #BF360C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
}

.pgc4-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pgc4-header-buttons {
    display: flex;
    gap: 1rem;
}

.pgc4-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 8rem;
    text-align: center;
    touch-action: manipulation;
}

.pgc4-btn-primary {
    background: #BF360C;
    color: #FFEBCD;
}

.pgc4-btn-primary:hover {
    background: #D84315;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 54, 12, 0.4);
}

.pgc4-btn-secondary {
    background: transparent;
    color: #FFEBCD;
    border: 2px solid #BF360C;
}

.pgc4-btn-secondary:hover {
    background: #BF360C;
    color: #FFEBCD;
}

.pgc4-menu-toggle {
    background: none;
    border: none;
    color: #FFEBCD;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
}

/* Mobile Menu */
.pgc4-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #1A1A1A;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.pgc4-mobile-menu.pgc4-active {
    right: 0;
}

.pgc4-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pgc4-menu-overlay.pgc4-active {
    opacity: 1;
    visibility: visible;
}

.pgc4-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #FFEBCD;
    font-size: 2.4rem;
    cursor: pointer;
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgc4-menu-list {
    list-style: none;
    margin-top: 4rem;
}

.pgc4-menu-item {
    margin-bottom: 1.5rem;
}

.pgc4-menu-link {
    display: block;
    padding: 1rem 0;
    color: #FFEBCD;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255, 235, 205, 0.1);
}

.pgc4-menu-link:hover {
    color: #BF360C;
}

/* Main Content */
.pgc4-main {
    padding-top: 7rem;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .pgc4-main {
        padding-bottom: 8rem;
    }
}

/* Carousel */
.pgc4-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pgc4-carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.pgc4-carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.pgc4-carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.pgc4-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgc4-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.pgc4-carousel-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFEBCD;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.pgc4-carousel-text {
    font-size: 1.4rem;
    color: #FFEBCD;
    opacity: 0.9;
}

.pgc4-carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pgc4-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 235, 205, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgc4-carousel-indicator.pgc4-active {
    background: #BF360C;
    transform: scale(1.2);
}

/* Sections */
.pgc4-section {
    margin-bottom: 4rem;
}

.pgc4-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.pgc4-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFEBCD;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgc4-section-icon {
    color: #BF360C;
    font-size: 2.4rem;
}

.pgc4-section-more {
    color: #BF360C;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.pgc4-section-more:hover {
    color: #D84315;
    gap: 0.8rem;
}

/* Game Grid */
.pgc4-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pgc4-game-card {
    background: #1A1A1A;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pgc4-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(191, 54, 12, 0.3);
}

.pgc4-game-card:active {
    transform: scale(0.98);
}

.pgc4-game-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pgc4-game-card:hover .pgc4-game-image {
    transform: scale(1.05);
}

.pgc4-game-info {
    padding: 1.2rem;
}

.pgc4-game-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #FFEBCD;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Modules */
.pgc4-content-module {
    background: #1A1A1A;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 235, 205, 0.1);
}

.pgc4-module-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFEBCD;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgc4-module-content {
    color: rgba(255, 235, 205, 0.9);
    font-size: 1.4rem;
    line-height: 1.8;
}

.pgc4-module-content p {
    margin-bottom: 1.5rem;
}

.pgc4-module-content strong {
    color: #FFEBCD;
    font-weight: 600;
}

.pgc4-module-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Partner Icons */
.pgc4-partners {
    background: #1A1A1A;
    border-radius: 1rem;
    padding: 2rem;
    margin: 3rem 0;
}

.pgc4-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.pgc4-partner-icon {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pgc4-partner-icon:hover {
    opacity: 1;
}

/* Footer */
.pgc4-footer {
    background: #1A1A1A;
    border-top: 1px solid rgba(255, 235, 205, 0.1);
    padding: 3rem 0 8rem;
    margin-top: 4rem;
}

.pgc4-footer-content {
    text-align: center;
}

.pgc4-footer-intro {
    font-size: 1.4rem;
    color: rgba(255, 235, 205, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.pgc4-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pgc4-footer-link {
    color: #BF360C;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pgc4-footer-link:hover {
    color: #D84315;
}

.pgc4-copyright {
    font-size: 1.2rem;
    color: rgba(255, 235, 205, 0.6);
    margin-top: 2rem;
}

/* Bottom Navigation */
.pgc4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1A1A1A;
    border-top: 1px solid #BF360C;
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.pgc4-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.pgc4-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.6rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    color: rgba(255, 235, 205, 0.6);
    text-decoration: none;
    border-radius: 0.8rem;
}

.pgc4-bottom-nav-item:hover {
    color: #FFEBCD;
    background: rgba(191, 54, 12, 0.1);
}

.pgc4-bottom-nav-item.pgc4-active {
    color: #BF360C;
    background: rgba(191, 54, 12, 0.2);
}

.pgc4-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.pgc4-bottom-nav-item:hover .pgc4-bottom-nav-icon {
    transform: translateY(-2px);
}

.pgc4-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pgc4-bottom-nav {
        display: none;
    }
}

/* Animations */
.pgc4-animate {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease;
}

.pgc4-animate.pgc4-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.pgc4-text-center {
    text-align: center;
}

.pgc4-mt-2 {
    margin-top: 2rem;
}

.pgc4-mb-2 {
    margin-bottom: 2rem;
}

.pgc4-hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pgc4-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pgc4-partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pgc4-footer-links {
        gap: 1rem;
    }

    .pgc4-carousel-title {
        font-size: 2rem;
    }

    .pgc4-section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .pgc4-game-grid {
        gap: 0.8rem;
    }

    .pgc4-game-info {
        padding: 1rem;
    }

    .pgc4-game-name {
        font-size: 1.2rem;
    }

    .pgc4-partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgc4-btn {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
        min-width: 7rem;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #2D2D2D;
        color: #FFEBCD;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pgc4-btn-primary {
        border: 2px solid #FFEBCD;
    }

    .pgc4-game-card {
        border: 1px solid #FFEBCD;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.pgc4-btn:focus,
.pgc4-menu-toggle:focus,
.pgc4-menu-link:focus,
.pgc4-game-card:focus,
.pgc4-bottom-nav-item:focus {
    outline: 2px solid #BF360C;
    outline-offset: 2px;
}

/* Loading states */
.pgc4-loading {
    position: relative;
    pointer-events: none;
}

.pgc4-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem;
    border: 2px solid transparent;
    border-top-color: #BF360C;
    border-radius: 50%;
    animation: pgc4-spin 0.8s linear infinite;
}

@keyframes pgc4-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Copied state for copy buttons */
.pgc4-copied {
    background: #4CAF50 !important;
    color: white !important;
}

/* Image lazy loading */
.pgc4-lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.pgc4-lazy.pgc4-loaded {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #BF360C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D84315;
}