/**
 * Earn Php - Main Stylesheet
 * All classes use prefix 'sb1d-' for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --sb1d-primary: #FF69B4;
    --sb1d-secondary: #FFB3FF;
    --sb1d-bg: #0E1621;
    --sb1d-bg-light: #1a2533;
    --sb1d-text: #FFCCCB;
    --sb1d-text-light: #ffffff;
    --sb1d-accent: #FF69B4;
    --sb1d-gray: #5D5D5D;
    --sb1d-border-radius: 8px;
    --sb1d-transition: all 0.3s ease;
}

/* 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;
    background-color: var(--sb1d-bg);
    color: var(--sb1d-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.sb1d-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.sb1d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--sb1d-bg) 0%, rgba(14, 22, 33, 0.95) 100%);
    padding: 0.8rem 1rem;
    transition: var(--sb1d-transition);
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

.sb1d-header-scrolled {
    background: rgba(14, 22, 33, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.sb1d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.sb1d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sb1d-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.sb1d-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sb1d-primary);
    white-space: nowrap;
}

.sb1d-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sb1d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--sb1d-border-radius);
    cursor: pointer;
    transition: var(--sb1d-transition);
    border: none;
    min-height: 36px;
}

.sb1d-btn-primary {
    background: linear-gradient(135deg, var(--sb1d-primary) 0%, #ff8dc7 100%);
    color: var(--sb1d-bg);
}

.sb1d-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.sb1d-btn-outline {
    background: transparent;
    border: 2px solid var(--sb1d-primary);
    color: var(--sb1d-primary);
}

.sb1d-btn-outline:hover {
    background: var(--sb1d-primary);
    color: var(--sb1d-bg);
}

.sb1d-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--sb1d-text-light);
    cursor: pointer;
    font-size: 2rem;
}

/* Mobile Menu */
.sb1d-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sb1d-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 6rem 1.5rem 2rem;
}

.sb1d-menu-active {
    right: 0;
}

.sb1d-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: var(--sb1d-transition);
}

.sb1d-overlay-active {
    opacity: 1;
    visibility: visible;
}

.sb1d-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sb1d-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--sb1d-text);
    font-size: 1.4rem;
    border-radius: var(--sb1d-border-radius);
    transition: var(--sb1d-transition);
}

.sb1d-nav-link:hover {
    background: var(--sb1d-bg-light);
    color: var(--sb1d-primary);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Carousel */
.sb1d-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0 0 1.2rem 1.2rem;
}

.sb1d-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.sb1d-slide-active {
    opacity: 1;
}

.sb1d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Titles */
.sb1d-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sb1d-text-light);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--sb1d-primary);
    display: inline-block;
}

/* Game Grid */
.sb1d-game-section {
    padding: 1.5rem 0;
}

.sb1d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.sb1d-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    background: var(--sb1d-bg-light);
    border-radius: var(--sb1d-border-radius);
    cursor: pointer;
    transition: var(--sb1d-transition);
}

.sb1d-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.sb1d-game-card img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.sb1d-game-name {
    font-size: 1rem;
    color: var(--sb1d-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Category Label */
.sb1d-category-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sb1d-primary);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--sb1d-primary);
}

/* Content Sections */
.sb1d-content-section {
    background: var(--sb1d-bg-light);
    border-radius: var(--sb1d-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sb1d-content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.sb1d-content-section p:last-child {
    margin-bottom: 0;
}

.sb1d-promo-link {
    color: var(--sb1d-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--sb1d-transition);
}

.sb1d-promo-link:hover {
    text-decoration: underline;
}

/* Feature List */
.sb1d-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sb1d-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 105, 180, 0.1);
    border-radius: 6px;
}

.sb1d-feature-icon {
    color: var(--sb1d-primary);
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Footer */
.sb1d-footer {
    background: var(--sb1d-bg-light);
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
}

.sb1d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sb1d-footer-link {
    color: var(--sb1d-text);
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 105, 180, 0.1);
    border-radius: 4px;
    transition: var(--sb1d-transition);
}

.sb1d-footer-link:hover {
    background: var(--sb1d-primary);
    color: var(--sb1d-bg);
}

.sb1d-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sb1d-partner-logo {
    width: 50px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--sb1d-transition);
}

.sb1d-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.sb1d-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--sb1d-gray);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.sb1d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.98) 0%, var(--sb1d-bg) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 105, 180, 0.3);
}

@media (min-width: 769px) {
    .sb1d-bottom-nav {
        display: none;
    }
}

.sb1d-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(--sb1d-text);
    cursor: pointer;
    transition: var(--sb1d-transition);
    padding: 0.4rem;
}

.sb1d-nav-btn:hover,
.sb1d-nav-btn-active {
    color: var(--sb1d-primary);
    transform: scale(1.1);
}

.sb1d-nav-btn i,
.sb1d-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.sb1d-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Touch Active State */
.sb1d-touch-active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Promo Banner */
.sb1d-promo-banner {
    background: linear-gradient(135deg, var(--sb1d-primary) 0%, #ff8dc7 100%);
    padding: 1.2rem;
    border-radius: var(--sb1d-border-radius);
    text-align: center;
    margin: 1.5rem 0;
    cursor: pointer;
    transition: var(--sb1d-transition);
}

.sb1d-promo-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.4);
}

.sb1d-promo-banner h3 {
    color: var(--sb1d-bg);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.sb1d-promo-banner p {
    color: var(--sb1d-bg);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* RTP Section */
.sb1d-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.sb1d-rtp-item {
    background: rgba(255, 105, 180, 0.1);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.sb1d-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sb1d-primary);
}

.sb1d-rtp-label {
    font-size: 1.1rem;
    color: var(--sb1d-text);
}

/* FAQ Accordion */
.sb1d-faq-item {
    background: var(--sb1d-bg-light);
    border-radius: var(--sb1d-border-radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.sb1d-faq-question {
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: var(--sb1d-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sb1d-faq-answer {
    padding: 0 1.2rem 1rem;
    color: var(--sb1d-text);
    line-height: 1.6;
}

/* Steps List */
.sb1d-steps {
    counter-reset: step-counter;
}

.sb1d-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 105, 180, 0.05);
    border-radius: 6px;
}

.sb1d-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--sb1d-primary);
    color: var(--sb1d-bg);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .sb1d-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sb1d-game-card img {
        width: 50px;
        height: 50px;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .sb1d-container {
        max-width: 600px;
    }

    .sb1d-carousel {
        height: 250px;
    }

    .sb1d-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
