/**
 * jilliph Online Casino Theme CSS
 * Class prefix: t6ca4-
 * Version: 1.0.0
 */

/* 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: #E0E0E0;
    background-color: #2D2D2D;
    overflow-x: hidden;
}

body.loaded {
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

body.touch-device .t6ca4-btn:hover {
    background-color: initial;
}

/* Root variables */
:root {
    --primary-color: #FFB6C1;
    --secondary-color: #EEE8AA;
    --accent-color: #FAFAD2;
    --highlight-color: #F08080;
    --bg-dark: #2D2D2D;
    --bg-light: #E0E0E0;
    --text-light: #E0E0E0;
    --text-dark: #2D2D2D;
    --container-padding: 1.5rem;
    --border-radius: 0.8rem;
    --transition: all 0.3s ease;
}

/* Utility classes */
.t6ca4-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.t6ca4-wrapper {
    width: 100%;
    height: 100%;
}

.t6ca4-grid {
    display: grid;
    gap: 1.5rem;
}

.t6ca4-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.t6ca4-text-center {
    text-align: center;
}

.t6ca4-hidden {
    display: none;
}

/* Typography */
.t6ca4-h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.t6ca4-h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
}

.t6ca4-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.t6ca4-text {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.t6ca4-text-small {
    font-size: 1.4rem;
    color: var(--text-light);
}

/* Buttons */
.t6ca4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.t6ca4-btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.t6ca4-btn-primary:hover {
    background-color: #ff9eb0;
}

.t6ca4-btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.t6ca4-btn-secondary:hover {
    background-color: #e6e08f;
}

.t6ca4-btn-accent {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.t6ca4-btn-accent:hover {
    background-color: #f8f5a8;
}

.t6ca4-btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.t6ca4-btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* Header */
.t6ca4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.t6ca4-header-content {
    padding: 1rem var(--container-padding);
}

.t6ca4-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.t6ca4-logo img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.t6ca4-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.t6ca4-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.t6ca4-menu-toggle span {
    width: 100%;
    height: 0.2rem;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.t6ca4-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.t6ca4-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.t6ca4-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

/* Mobile menu */
.t6ca4-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.t6ca4-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.t6ca4-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 8rem 2rem 2rem;
}

.t6ca4-mobile-menu.active {
    right: 0;
}

.t6ca4-menu-nav {
    list-style: none;
}

.t6ca4-menu-nav li {
    margin-bottom: 1.5rem;
}

.t6ca4-menu-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.8rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.t6ca4-menu-nav a:hover {
    color: var(--primary-color);
}

/* Main content */
.t6ca4-main {
    padding-top: 7rem;
    padding-bottom: 8rem;
}

/* Carousel */
.t6ca4-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.t6ca4-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.t6ca4-slide {
    min-width: 100%;
    position: relative;
}

.t6ca4-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.t6ca4-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.t6ca4-carousel-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(45, 45, 45, 0.8);
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.t6ca4-carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.t6ca4-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.t6ca4-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(255, 182, 193, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.t6ca4-indicator.active {
    background-color: var(--primary-color);
}

/* Cards */
.t6ca4-card {
    background-color: rgba(255, 182, 193, 0.1);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.t6ca4-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0.5rem 2rem rgba(255, 182, 193, 0.2);
}

/* Game grid */
.t6ca4-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.t6ca4-game-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.t6ca4-game-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(255, 182, 193, 0.3);
}

.t6ca4-game-item img {
    width: 100%;
    height: auto;
    display: block;
}

.t6ca4-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    font-size: 1.2rem;
    text-align: center;
    background: linear-gradient(to top, rgba(45, 45, 45, 0.9), transparent);
    color: var(--text-light);
}

/* Bottom navigation */
.t6ca4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 182, 193, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    padding: 0.5rem 0;
}

.t6ca4-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    border: none;
    background: none;
}

.t6ca4-nav-item:hover,
.t6ca4-nav-item.active {
    color: var(--primary-color);
}

.t6ca4-nav-item i,
.t6ca4-nav-item svg {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

/* Footer */
.t6ca4-footer {
    background-color: #1a1a1a;
    padding: 3rem var(--container-padding);
    margin-top: 4rem;
}

.t6ca4-footer-content {
    margin-bottom: 2rem;
}

.t6ca4-footer-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.t6ca4-footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.t6ca4-footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--transition);
}

.t6ca4-footer-links a:hover {
    color: var(--primary-color);
}

.t6ca4-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.t6ca4-partner-logo {
    height: 3rem;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.t6ca4-partner-logo:hover {
    opacity: 1;
}

.t6ca4-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 182, 193, 0.2);
    font-size: 1.2rem;
    color: rgba(224, 224, 224, 0.6);
}

/* Responsive design */
@media (min-width: 769px) {
    .t6ca4-bottom-nav {
        display: none;
    }

    .t6ca4-main {
        padding-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .t6ca4-main {
        padding-bottom: 8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.t6ca4-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.t6ca4-slide-up {
    animation: slideInUp 0.8s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.t6ca4-btn:focus,
.t6ca4-nav-item:focus,
.t6ca4-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff69b4;
        --secondary-color: #ffff00;
        --text-light: #ffffff;
        --bg-dark: #000000;
    }
}