/**
 * cardtimecasino Main Stylesheet
 * Mobile-first responsive design
 * All classes use s141- prefix for namespace isolation
 * Color palette: #008B8B | #333333 | #26A69A | #F5F5F5 | #48D1CC | #BDC3C7
 */

/* CSS Variables */
:root {
    --s141-primary: #008B8B;
    --s141-primary-dark: #006666;
    --s141-primary-light: #26A69A;
    --s141-accent: #48D1CC;
    --s141-text-dark: #333333;
    --s141-text-light: #F5F5F5;
    --s141-bg-dark: #333333;
    --s141-bg-light: #F5F5F5;
    --s141-border: #BDC3C7;
    --s141-shadow: rgba(0, 139, 139, 0.2);
    --s141-gradient: linear-gradient(135deg, #008B8B 0%, #26A69A 100%);
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--s141-text-dark);
    background-color: var(--s141-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.s141-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s141-wrapper {
    padding: 2rem 0;
}

/* Header */
.s141-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--s141-gradient);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--s141-shadow);
    transition: all 0.3s ease;
}

.s141-header-scrolled {
    padding: 0.8rem 1.5rem;
    background: var(--s141-primary-dark);
}

.s141-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s141-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s141-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s141-text-light);
}

.s141-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.s141-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
}

.s141-btn-primary {
    background: var(--s141-text-light);
    color: var(--s141-primary);
}

.s141-btn-primary:hover {
    background: var(--s141-accent);
    transform: translateY(-2px);
}

.s141-btn-secondary {
    background: transparent;
    color: var(--s141-text-light);
    border: 2px solid var(--s141-text-light);
}

.s141-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.s141-menu-toggle {
    background: transparent;
    border: none;
    color: var(--s141-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.s141-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--s141-bg-dark);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.s141-menu-active {
    right: 0;
}

.s141-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s141-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s141-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--s141-border);
}

.s141-menu-close {
    background: transparent;
    border: none;
    color: var(--s141-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s141-menu-nav {
    list-style: none;
}

.s141-menu-nav li {
    margin-bottom: 0.5rem;
}

.s141-menu-nav a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--s141-text-light);
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.s141-menu-nav a:hover {
    background: var(--s141-primary);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.s141-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.s141-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.s141-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.s141-slide-active {
    opacity: 1;
}

.s141-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.s141-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.s141-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s141-dot-active {
    background: var(--s141-text-light);
    transform: scale(1.2);
}

/* Sections */
.s141-section {
    padding: 2rem 1.5rem;
}

.s141-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s141-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.s141-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--s141-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.s141-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.s141-game-card {
    background: var(--s141-text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.s141-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px var(--s141-shadow);
}

.s141-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.s141-game-name {
    padding: 0.6rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--s141-text-dark);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.s141-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s141-primary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--s141-accent);
}

/* Info Cards */
.s141-info-card {
    background: var(--s141-text-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.s141-info-card h3 {
    font-size: 1.8rem;
    color: var(--s141-primary);
    margin-bottom: 1rem;
}

.s141-info-card p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--s141-text-dark);
    margin-bottom: 1rem;
}

.s141-info-card ul {
    list-style: none;
    padding-left: 0;
}

.s141-info-card li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.4rem;
}

.s141-info-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--s141-primary);
    font-weight: bold;
}

/* CTA Section */
.s141-cta {
    background: var(--s141-gradient);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin: 2rem 1.5rem;
}

.s141-cta h3 {
    font-size: 2rem;
    color: var(--s141-text-light);
    margin-bottom: 1rem;
}

.s141-cta p {
    font-size: 1.4rem;
    color: var(--s141-text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.s141-cta .s141-btn {
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
}

/* Footer */
.s141-footer {
    background: var(--s141-bg-dark);
    color: var(--s141-text-light);
    padding: 3rem 1.5rem 2rem;
}

.s141-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.s141-footer-links a {
    color: var(--s141-accent);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.s141-footer-links a:hover {
    color: var(--s141-text-light);
}

.s141-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s141-partners img {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s141-partners img:hover {
    opacity: 1;
}

.s141-copyright {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.7;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.s141-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--s141-bg-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 769px) {
    .s141-bottom-nav {
        display: none;
    }
}

.s141-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--s141-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.s141-nav-btn:hover,
.s141-nav-btn.s141-nav-active {
    opacity: 1;
    color: var(--s141-accent);
    transform: scale(1.1);
}

.s141-nav-btn i,
.s141-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.s141-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Touch feedback */
.s141-touch-active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Promo links */
.s141-promo-link {
    color: var(--s141-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.s141-promo-link:hover {
    color: var(--s141-primary-dark);
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .s141-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s141-logo-text {
        font-size: 1.5rem;
    }

    .s141-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .s141-container {
        max-width: 768px;
    }

    .s141-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Utilities */
.s141-text-center {
    text-align: center;
}

.s141-mb-1 {
    margin-bottom: 1rem;
}

.s141-mb-2 {
    margin-bottom: 2rem;
}

.s141-hidden {
    display: none !important;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s141-animate {
    animation: fadeIn 0.5s ease forwards;
}
