/**
 * Sbet Stock - Layout Stylesheet
 * All classes use 'sc62-' prefix for namespace isolation
 * Color palette: #808080 | #48D1CC | #AFEEEE | #2D2D2D | #A9A9A9
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --sc62-primary: #48D1CC;
    --sc62-secondary: #AFEEEE;
    --sc62-bg-dark: #2D2D2D;
    --sc62-bg-medium: #3a3a3a;
    --sc62-text-light: #AFEEEE;
    --sc62-text-gray: #A9A9A9;
    --sc62-text-white: #ffffff;
    --sc62-border: #808080;
    --sc62-accent: #48D1CC;
    --sc62-gradient: linear-gradient(135deg, #48D1CC 0%, #AFEEEE 100%);
    --sc62-shadow: 0 4px 15px rgba(72, 209, 204, 0.3);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sc62-bg-dark);
    color: var(--sc62-text-white);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container Styles */
.sc62-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sc62-wrapper {
    width: 100%;
    padding: 1rem 0;
}

/* Header Styles */
.sc62-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--sc62-bg-dark) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sc62-border);
}

.sc62-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.sc62-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.sc62-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.sc62-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sc62-primary);
}

.sc62-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sc62-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sc62-btn-primary {
    background: var(--sc62-gradient);
    color: var(--sc62-bg-dark);
}

.sc62-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--sc62-shadow);
}

.sc62-btn-outline {
    background: transparent;
    color: var(--sc62-primary);
    border: 2px solid var(--sc62-primary);
}

.sc62-btn-outline:hover {
    background: var(--sc62-primary);
    color: var(--sc62-bg-dark);
}

.sc62-menu-toggle {
    background: transparent;
    border: none;
    color: var(--sc62-text-light);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.sc62-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sc62-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--sc62-border);
}

.sc62-menu-active {
    right: 0;
}

.sc62-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sc62-overlay-active {
    opacity: 1;
    visibility: visible;
}

.sc62-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sc62-border);
}

.sc62-menu-close {
    background: transparent;
    border: none;
    color: var(--sc62-text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

.sc62-menu-nav {
    padding: 1rem 0;
}

.sc62-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--sc62-text-white);
    text-decoration: none;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    transition: all 0.2s ease;
}

.sc62-menu-link:hover {
    background: rgba(72, 209, 204, 0.1);
    color: var(--sc62-primary);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel Styles */
.sc62-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem 0;
}

.sc62-slides {
    position: relative;
    width: 100%;
    height: 180px;
}

.sc62-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.sc62-slide-active {
    opacity: 1;
}

.sc62-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.sc62-section {
    padding: 1.5rem 1rem;
}

.sc62-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sc62-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.sc62-section-subtitle {
    font-size: 1.2rem;
    color: var(--sc62-text-gray);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Game Grid */
.sc62-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.5rem;
}

.sc62-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sc62-game-card:hover {
    transform: scale(1.05);
}

.sc62-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid var(--sc62-border);
}

.sc62-game-name {
    font-size: 1rem;
    color: var(--sc62-text-white);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

/* Category Section */
.sc62-category-section {
    margin-bottom: 2rem;
}

.sc62-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 2px solid var(--sc62-primary);
    margin-bottom: 1rem;
}

.sc62-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sc62-primary);
}

/* Content Box */
.sc62-content-box {
    background: var(--sc62-bg-medium);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--sc62-border);
}

.sc62-content-box h2 {
    font-size: 1.5rem;
    color: var(--sc62-primary);
    margin-bottom: 1rem;
}

.sc62-content-box h3 {
    font-size: 1.3rem;
    color: var(--sc62-secondary);
    margin: 1rem 0 0.5rem;
}

.sc62-content-box p {
    font-size: 1.2rem;
    color: var(--sc62-text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.sc62-content-box ul {
    list-style: none;
    padding: 0;
}

.sc62-content-box li {
    font-size: 1.2rem;
    color: var(--sc62-text-gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.sc62-content-box li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--sc62-primary);
}

/* Text Link */
.sc62-text-link {
    color: var(--sc62-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sc62-text-link:hover {
    color: var(--sc62-secondary);
    text-decoration: underline;
}

/* Bottom Navigation */
.sc62-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, var(--sc62-bg-dark) 100%);
    border-top: 1px solid var(--sc62-border);
    display: none;
}

@media (max-width: 768px) {
    .sc62-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        padding: 0 0.5rem;
    }
}

.sc62-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(--sc62-text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sc62-nav-btn:hover,
.sc62-nav-btn.active {
    color: var(--sc62-primary);
    transform: scale(1.1);
}

.sc62-nav-btn i,
.sc62-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.sc62-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.sc62-footer {
    background: var(--sc62-bg-dark);
    border-top: 1px solid var(--sc62-border);
    padding: 2rem 1rem;
}

.sc62-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sc62-footer-link {
    color: var(--sc62-text-gray);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.sc62-footer-link:hover {
    color: var(--sc62-primary);
}

.sc62-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sc62-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.sc62-partner-logo:hover {
    opacity: 1;
}

.sc62-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--sc62-text-gray);
}

/* Promotional Banner */
.sc62-promo-banner {
    background: var(--sc62-gradient);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.sc62-promo-banner h3 {
    font-size: 1.4rem;
    color: var(--sc62-bg-dark);
    margin-bottom: 0.5rem;
}

.sc62-promo-banner p {
    font-size: 1.2rem;
    color: var(--sc62-bg-dark);
    opacity: 0.9;
}

/* RTP Table */
.sc62-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.sc62-rtp-table th,
.sc62-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--sc62-border);
    font-size: 1.1rem;
}

.sc62-rtp-table th {
    color: var(--sc62-primary);
    font-weight: 600;
}

.sc62-rtp-table td {
    color: var(--sc62-text-gray);
}

/* Feature List */
.sc62-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sc62-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--sc62-bg-medium);
    border-radius: 8px;
    border: 1px solid var(--sc62-border);
}

.sc62-feature-icon {
    font-size: 2rem;
    color: var(--sc62-primary);
}

.sc62-feature-text {
    font-size: 1.1rem;
    color: var(--sc62-text-white);
}

/* FAQ Section */
.sc62-faq-item {
    background: var(--sc62-bg-medium);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.sc62-faq-question {
    padding: 1rem;
    font-size: 1.2rem;
    color: var(--sc62-primary);
    font-weight: 600;
    cursor: pointer;
}

.sc62-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.1rem;
    color: var(--sc62-text-gray);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .sc62-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .sc62-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sc62-game-icon {
        width: 50px;
        height: 50px;
    }
}
