/* 365JL Casino - Core Stylesheet
   All classes use prefix 'sdd8-' to avoid naming conflicts
   Mobile-first responsive design with max-width 430px
   Color palette: #FF4500 #26A69A #273746 #FF6347 #DEE2E6 #FF9800
*/

/* CSS Variables */
:root {
    --sdd8-primary: #FF4500;
    --sdd8-secondary: #26A69A;
    --sdd8-dark: #273746;
    --sdd8-accent: #FF6347;
    --sdd8-light: #DEE2E6;
    --sdd8-orange: #FF9800;
    --sdd8-bg: #1a1a1a;
    --sdd8-text: #ffffff;
    --sdd8-text-muted: #b0b0b0;
    --sdd8-shadow: rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
    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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--sdd8-text);
    background-color: var(--sdd8-bg);
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 { font-size: 2.4rem; color: var(--sdd8-primary); }
h2 { font-size: 2.0rem; color: var(--sdd8-accent); }
h3 { font-size: 1.8rem; color: var(--sdd8-secondary); }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

a {
    color: var(--sdd8-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sdd8-primary);
}

/* Container */
.sdd8-container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.sdd8-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Header Navigation */
.sdd8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--sdd8-dark) 0%, #1f2937 100%);
    box-shadow: 0 2px 10px var(--sdd8-shadow);
    z-index: 1000;
    padding: 1rem 1.5rem;
}

.sdd8-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sdd8-logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sdd8-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sdd8-site-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sdd8-primary);
    white-space: nowrap;
}

.sdd8-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sdd8-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sdd8-btn-primary {
    background: linear-gradient(135deg, var(--sdd8-primary), var(--sdd8-accent));
    color: white;
}

.sdd8-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.sdd8-btn-secondary {
    background: linear-gradient(135deg, var(--sdd8-secondary), #1e8e7e);
    color: white;
}

.sdd8-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.4);
}

.sdd8-menu-toggle {
    background: none;
    border: none;
    color: var(--sdd8-light);
    font-size: 2.4rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation */
.sdd8-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.sdd8-overlay-active {
    opacity: 1;
    visibility: visible;
}

.sdd8-mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sdd8-dark);
    box-shadow: -2px 0 10px var(--sdd8-shadow);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    padding: 2rem 0;
}

.sdd8-nav-open {
    right: 0;
}

.sdd8-mobile-nav ul {
    list-style: none;
}

.sdd8-mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sdd8-mobile-nav a {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--sdd8-light);
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sdd8-mobile-nav a:hover,
.sdd8-nav-active {
    background: rgba(255, 69, 0, 0.1);
    color: var(--sdd8-primary);
    padding-left: 2.5rem;
}

/* Main Content */
.sdd8-main {
    margin-top: 60px;
    margin-bottom: 70px;
    min-height: calc(100vh - 130px);
}

/* Carousel */
.sdd8-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.sdd8-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sdd8-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.sdd8-carousel-slide {
    min-width: 100%;
    cursor: pointer;
}

.sdd8-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.sdd8-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.sdd8-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--sdd8-light);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sdd8-dot-active {
    background: var(--sdd8-primary);
    border-color: var(--sdd8-primary);
    width: 12px;
    height: 12px;
}

/* Section */
.sdd8-section {
    padding: 2rem 0;
    margin-bottom: 1.5rem;
}

.sdd8-section-title {
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--sdd8-primary);
    color: var(--sdd8-primary);
}

/* Game Grid */
.sdd8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.sdd8-game-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
}

.sdd8-game-item:hover {
    transform: translateY(-4px);
}

.sdd8-game-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.sdd8-game-name {
    font-size: 1.1rem;
    color: var(--sdd8-light);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Card */
.sdd8-card {
    background: linear-gradient(135deg, #2d3748 0%, var(--sdd8-dark) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--sdd8-shadow);
}

.sdd8-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--sdd8-secondary);
}

.sdd8-card-text {
    line-height: 1.6;
    color: var(--sdd8-light);
    margin-bottom: 1rem;
}

/* Link Button */
.sdd8-link-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--sdd8-orange), #f57c00);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.4;
}

.sdd8-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    color: white;
}

/* List Styles */
.sdd8-list {
    list-style: none;
    padding-left: 0;
}

.sdd8-list li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sdd8-list li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--sdd8-primary);
    font-weight: 700;
    font-size: 1.6rem;
}

/* FAQ */
.sdd8-faq-item {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
}

.sdd8-faq-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sdd8-accent);
    margin-bottom: 0.8rem;
}

.sdd8-faq-answer {
    color: var(--sdd8-light);
    line-height: 1.6;
}

/* Footer */
.sdd8-footer {
    background: var(--sdd8-dark);
    padding: 3rem 1.5rem 8rem;
    margin-top: 3rem;
}

.sdd8-footer-section {
    margin-bottom: 2rem;
}

.sdd8-footer-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sdd8-primary);
    margin-bottom: 1.5rem;
}

.sdd8-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sdd8-footer-link {
    color: var(--sdd8-light);
    font-size: 1.3rem;
    padding: 0.5rem 0;
}

.sdd8-partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.sdd8-partner-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sdd8-partner-logo:hover {
    opacity: 1;
}

.sdd8-copyright {
    text-align: center;
    color: var(--sdd8-text-muted);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.sdd8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--sdd8-dark) 0%, #1f2937 100%);
    box-shadow: 0 -2px 10px var(--sdd8-shadow);
    z-index: 1000;
    height: 60px;
}

.sdd8-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
}

.sdd8-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 44px;
    color: var(--sdd8-text-muted);
    font-size: 1.0rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.sdd8-bottom-nav-item:hover,
.sdd8-bottom-nav-item.sdd8-nav-active {
    color: var(--sdd8-primary);
    transform: scale(1.05);
}

.sdd8-bottom-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.sdd8-bottom-nav-label {
    font-size: 1.0rem;
    font-weight: 500;
}

/* Utility Classes */
.sdd8-text-center { text-align: center; }
.sdd8-text-primary { color: var(--sdd8-primary); }
.sdd8-text-secondary { color: var(--sdd8-secondary); }
.sdd8-text-accent { color: var(--sdd8-accent); }
.sdd8-text-muted { color: var(--sdd8-text-muted); }

.sdd8-mt-1 { margin-top: 1rem; }
.sdd8-mt-2 { margin-top: 2rem; }
.sdd8-mt-3 { margin-top: 3rem; }
.sdd8-mb-1 { margin-bottom: 1rem; }
.sdd8-mb-2 { margin-bottom: 2rem; }
.sdd8-mb-3 { margin-bottom: 3rem; }

.sdd8-pt-1 { padding-top: 1rem; }
.sdd8-pt-2 { padding-top: 2rem; }
.sdd8-pb-1 { padding-bottom: 1rem; }
.sdd8-pb-2 { padding-bottom: 2rem; }

/* Responsive */
@media (max-width: 375px) {
    html { font-size: 58%; }
    .sdd8-game-grid { grid-template-columns: repeat(3, 1fr); }
    .sdd8-partners { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 431px) {
    body { border-left: 1px solid rgba(255, 255, 255, 0.1); border-right: 1px solid rgba(255, 255, 255, 0.1); }
}
