/**
 * Jl58 Website Theme Stylesheet
 * Class prefix: sd1a-
 * Color scheme: #BAFFC9 | #BBBBBB | #333333 | #FF0000 | #FF1493 | #191970
 */

/* CSS Variables */
:root {
    --sd1a-primary: #FF1493;
    --sd1a-secondary: #191970;
    --sd1a-accent: #BAFFC9;
    --sd1a-bg: #333333;
    --sd1a-bg-dark: #1a1a2e;
    --sd1a-text: #BBBBBB;
    --sd1a-text-light: #ffffff;
    --sd1a-danger: #FF0000;
    --sd1a-gradient: linear-gradient(135deg, #191970 0%, #FF1493 100%);
    --sd1a-card-bg: #2a2a3e;
    --sd1a-border: #444;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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;
    background-color: var(--sd1a-bg-dark);
    color: var(--sd1a-text);
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.sd1a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--sd1a-bg-dark) 0%, rgba(26, 26, 46, 0.95) 100%);
    padding: 1rem 1.5rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sd1a-border);
    transition: all 0.3s ease;
}

.sd1a-header-scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sd1a-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sd1a-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sd1a-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sd1a-text-light);
    background: var(--sd1a-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sd1a-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sd1a-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd1a-btn-primary {
    background: var(--sd1a-gradient);
    color: var(--sd1a-text-light);
}

.sd1a-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.sd1a-btn-outline {
    background: transparent;
    border: 2px solid var(--sd1a-primary);
    color: var(--sd1a-primary);
}

.sd1a-btn-outline:hover {
    background: var(--sd1a-primary);
    color: var(--sd1a-text-light);
}

.sd1a-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--sd1a-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.sd1a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sd1a-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.sd1a-menu-active {
    right: 0;
}

.sd1a-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sd1a-border);
}

.sd1a-menu-close {
    background: transparent;
    border: none;
    color: var(--sd1a-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.sd1a-nav-list {
    list-style: none;
}

.sd1a-nav-item {
    margin-bottom: 0.5rem;
}

.sd1a-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--sd1a-text);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.sd1a-nav-link:hover {
    background: var(--sd1a-card-bg);
    color: var(--sd1a-primary);
}

.sd1a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sd1a-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel Styles */
.sd1a-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.sd1a-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.sd1a-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.sd1a-slide-active {
    opacity: 1;
}

.sd1a-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.sd1a-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.sd1a-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sd1a-dot-active {
    background: var(--sd1a-primary);
    transform: scale(1.2);
}

/* Section Styles */
.sd1a-section {
    padding: 2rem 1.5rem;
}

.sd1a-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sd1a-text-light);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.sd1a-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--sd1a-gradient);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.sd1a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sd1a-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sd1a-game-item:hover {
    transform: translateY(-3px);
}

.sd1a-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sd1a-game-name {
    font-size: 1.1rem;
    color: var(--sd1a-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Styles */
.sd1a-card {
    background: var(--sd1a-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--sd1a-border);
}

.sd1a-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--sd1a-text-light);
    margin-bottom: 1rem;
}

.sd1a-card-text {
    color: var(--sd1a-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Feature List */
.sd1a-feature-list {
    list-style: none;
}

.sd1a-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sd1a-border);
}

.sd1a-feature-item:last-child {
    border-bottom: none;
}

.sd1a-feature-icon {
    color: var(--sd1a-primary);
    font-size: 2rem;
    min-width: 30px;
}

.sd1a-feature-content h4 {
    color: var(--sd1a-text-light);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.sd1a-feature-content p {
    color: var(--sd1a-text);
    font-size: 1.3rem;
}

/* Promo Link Styles */
.sd1a-promo-link {
    color: var(--sd1a-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sd1a-promo-link:hover {
    color: var(--sd1a-text-light);
    text-decoration: underline;
}

.sd1a-promo-btn {
    display: inline-block;
    background: var(--sd1a-gradient);
    color: var(--sd1a-text-light);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sd1a-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
}

/* Category Tabs */
.sd1a-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sd1a-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sd1a-primary);
}

/* Footer Styles */
.sd1a-footer {
    background: var(--sd1a-bg-dark);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--sd1a-border);
}

.sd1a-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sd1a-footer-link {
    color: var(--sd1a-text);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.sd1a-footer-link:hover {
    color: var(--sd1a-primary);
}

.sd1a-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sd1a-partner-logo {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sd1a-partner-logo:hover {
    opacity: 1;
}

.sd1a-copyright {
    text-align: center;
    color: var(--sd1a-text);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.sd1a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, var(--sd1a-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 1000;
    border-top: 1px solid var(--sd1a-border);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .sd1a-bottom-nav {
        display: none;
    }
}

.sd1a-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    color: var(--sd1a-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.sd1a-nav-btn:hover,
.sd1a-nav-btn.sd1a-active {
    color: var(--sd1a-primary);
    background: rgba(255, 20, 147, 0.1);
}

.sd1a-nav-btn i,
.sd1a-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.sd1a-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* H1 Title */
.sd1a-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sd1a-text-light);
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    line-height: 1.3;
}

/* RTP Table */
.sd1a-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.sd1a-rtp-table th,
.sd1a-rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--sd1a-border);
}

.sd1a-rtp-table th {
    color: var(--sd1a-text-light);
    font-weight: 600;
}

.sd1a-rtp-table td {
    color: var(--sd1a-text);
}

.sd1a-rtp-high {
    color: var(--sd1a-accent);
    font-weight: 600;
}

/* FAQ Styles */
.sd1a-faq-item {
    background: var(--sd1a-card-bg);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.sd1a-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--sd1a-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sd1a-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--sd1a-text);
    line-height: 1.6;
}

/* Achievement Badge */
.sd1a-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sd1a-gradient);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    color: var(--sd1a-text-light);
    margin: 0.3rem;
}

/* Utilities */
.sd1a-text-center {
    text-align: center;
}

.sd1a-mb-1 {
    margin-bottom: 1rem;
}

.sd1a-mb-2 {
    margin-bottom: 2rem;
}

.sd1a-mt-2 {
    margin-top: 2rem;
}

.sd1a-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 430px) {
    .sd1a-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .sd1a-game-name {
        font-size: 1rem;
    }
}
