/**
 * kkkphlegit.com - Main Stylesheet
 * All classes use sf54- prefix for namespace isolation
 * Mobile-first design with 430px max-width
 */

/* CSS Variables */
:root {
    --sf54-primary: #FF8C00;
    --sf54-secondary: #1B263B;
    --sf54-accent: #008000;
    --sf54-highlight: #F08080;
    --sf54-bg-dark: #1B263B;
    --sf54-bg-light: #2d3a52;
    --sf54-text-light: #ffffff;
    --sf54-text-muted: #a0aec0;
    --sf54-border: #3d4a62;
    --sf54-gradient: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    --sf54-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --sf54-radius: 8px;
    --sf54-radius-lg: 12px;
}

/* Reset and Base */
* {
    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;
    background-color: var(--sf54-bg-dark);
    color: var(--sf54-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Container */
.sf54-container {
    width: 100%;
    padding: 0 1.5rem;
}

.sf54-wrapper {
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.sf54-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: var(--sf54-bg-dark);
    border-bottom: 1px solid var(--sf54-border);
    z-index: 1000;
    padding: 1rem 1.5rem;
    transition: box-shadow 0.3s ease;
}

.sf54-header.sf54-scrolled {
    box-shadow: var(--sf54-shadow);
}

.sf54-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sf54-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--sf54-text-light);
}

.sf54-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sf54-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--sf54-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sf54-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sf54-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--sf54-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sf54-btn-primary {
    background: var(--sf54-gradient);
    color: var(--sf54-text-light);
}

.sf54-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.sf54-btn-outline {
    background: transparent;
    border: 2px solid var(--sf54-primary);
    color: var(--sf54-primary);
}

.sf54-btn-outline:hover {
    background: var(--sf54-primary);
    color: var(--sf54-text-light);
}

.sf54-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.sf54-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sf54-text-light);
    transition: all 0.3s ease;
}

/* Mobile Menu */
#pro8e3-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sf54-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

#pro8e3-mobile-menu.pro8e3-active {
    right: 0;
}

#pro8e3-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;
}

#pro8e3-menu-overlay.pro8e3-active {
    opacity: 1;
    visibility: visible;
}

.sf54-mobile-nav {
    list-style: none;
}

.sf54-mobile-nav li {
    margin-bottom: 1rem;
}

.sf54-mobile-nav a {
    display: block;
    padding: 1rem;
    color: var(--sf54-text-light);
    text-decoration: none;
    border-radius: var(--sf54-radius);
    transition: background 0.3s ease;
}

.sf54-mobile-nav a:hover {
    background: var(--sf54-primary);
}

.sf54-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--sf54-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.sf54-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--sf54-radius-lg);
}

.sf54-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.pro8e3-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pro8e3-slide.pro8e3-active {
    opacity: 1;
}

.pro8e3-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf54-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.sf54-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.sf54-carousel-dot.sf54-active {
    background: var(--sf54-primary);
}

/* Section Styles */
.sf54-section {
    padding: 2rem 1.5rem;
}

.sf54-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--sf54-primary);
    text-align: center;
}

.sf54-section-subtitle {
    font-size: 1.4rem;
    color: var(--sf54-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.sf54-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sf54-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sf54-game-item:hover {
    transform: translateY(-4px);
}

.sf54-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--sf54-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.sf54-game-item span {
    display: block;
    font-size: 1.1rem;
    color: var(--sf54-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Header */
.sf54-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sf54-primary);
}

.sf54-category-header i {
    font-size: 2rem;
    color: var(--sf54-primary);
}

.sf54-category-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Cards */
.sf54-card {
    background: var(--sf54-bg-light);
    border-radius: var(--sf54-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--sf54-border);
}

.sf54-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--sf54-primary);
}

.sf54-card-text {
    font-size: 1.4rem;
    color: var(--sf54-text-muted);
    line-height: 1.6;
}

/* Promo Link */
.sf54-promo-link {
    color: var(--sf54-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.sf54-promo-link:hover {
    text-decoration: underline;
}

/* Features List */
.sf54-features-list {
    list-style: none;
}

.sf54-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--sf54-bg-light);
    border-radius: var(--sf54-radius);
}

.sf54-features-list li i {
    font-size: 2rem;
    color: var(--sf54-primary);
    flex-shrink: 0;
}

.sf54-features-list li span {
    font-size: 1.4rem;
    color: var(--sf54-text-light);
}

/* Footer */
.sf54-footer {
    background: var(--sf54-bg-light);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--sf54-border);
}

.sf54-footer-section {
    margin-bottom: 2rem;
}

.sf54-footer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sf54-primary);
    margin-bottom: 1rem;
}

.sf54-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.sf54-footer-links a {
    color: var(--sf54-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.sf54-footer-links a:hover {
    color: var(--sf54-primary);
}

.sf54-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.sf54-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sf54-partners img:hover {
    opacity: 1;
}

.sf54-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--sf54-text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--sf54-border);
}

/* Bottom Navigation */
.sf54-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2d3a52 0%, #1B263B 100%);
    border-top: 1px solid var(--sf54-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .sf54-bottom-nav {
        display: none;
    }
}

.sf54-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--sf54-text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
}

.sf54-nav-item:hover,
.sf54-nav-item.sf54-active {
    color: var(--sf54-primary);
    background: rgba(255, 140, 0, 0.1);
}

.sf54-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.sf54-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* H1 Title */
.sf54-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--sf54-text-light);
    line-height: 1.3;
}

/* Text Content */
.sf54-text-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--sf54-text-muted);
    margin-bottom: 1rem;
}

.sf54-text-content p {
    margin-bottom: 1rem;
}

/* RTP Stats */
.sf54-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sf54-rtp-item {
    background: var(--sf54-bg-light);
    border-radius: var(--sf54-radius);
    padding: 1rem;
    text-align: center;
}

.sf54-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sf54-primary);
}

.sf54-rtp-label {
    font-size: 1.2rem;
    color: var(--sf54-text-muted);
}

/* FAQ Section */
.sf54-faq-item {
    background: var(--sf54-bg-light);
    border-radius: var(--sf54-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.sf54-faq-question {
    padding: 1rem;
    font-weight: 600;
    color: var(--sf54-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sf54-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.3rem;
    color: var(--sf54-text-muted);
}

/* Utility Classes */
.sf54-text-center { text-align: center; }
.sf54-text-primary { color: var(--sf54-primary); }
.sf54-mb-1 { margin-bottom: 1rem; }
.sf54-mb-2 { margin-bottom: 2rem; }
.sf54-mt-2 { margin-top: 2rem; }
.sf54-py-2 { padding: 2rem 0; }

/* Responsive */
@media (max-width: 380px) {
    .sf54-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
