/**
 * Scater Plot - Core Stylesheet
 * Class prefix: s85f-
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --s85f-primary: #D8BFD8;
    --s85f-secondary: #FAFAD2;
    --s85f-accent: #FF8C00;
    --s85f-peru: #CD853F;
    --s85f-gray: #A9A9A9;
    --s85f-dark: #0D1117;
    --s85f-bg: #0D1117;
    --s85f-text: #FAFAD2;
    --s85f-text-light: #D8BFD8;
    --s85f-border: rgba(216, 191, 216, 0.2);
    --s85f-shadow: rgba(0, 0, 0, 0.3);
    --s85f-gradient: linear-gradient(135deg, #0D1117 0%, #1a1f2e 100%);
    --s85f-header-height: 60px;
    --s85f-bottom-nav-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--s85f-bg);
    color: var(--s85f-text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.s85f-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.s85f-wrapper {
    padding-top: var(--s85f-header-height);
    padding-bottom: calc(var(--s85f-bottom-nav-height) + 2rem);
}

/* Header */
.s85f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--s85f-header-height);
    background: var(--s85f-dark);
    border-bottom: 1px solid var(--s85f-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.s85f-header-scrolled {
    background: rgba(13, 17, 23, 0.95);
    box-shadow: 0 2px 10px var(--s85f-shadow);
}

.s85f-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.s85f-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s85f-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.s85f-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s85f-primary);
    white-space: nowrap;
}

.s85f-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s85f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.s85f-btn-primary {
    background: var(--s85f-accent);
    color: #fff;
}

.s85f-btn-primary:hover {
    background: #ff9f2e;
    transform: translateY(-2px);
}

.s85f-btn-secondary {
    background: transparent;
    color: var(--s85f-text);
    border: 1px solid var(--s85f-border);
}

.s85f-btn-secondary:hover {
    background: var(--s85f-border);
}

/* Hamburger Menu */
.s85f-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.s85f-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--s85f-text);
    transition: all 0.3s ease;
}

.s85f-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.s85f-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.s85f-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.s85f-mobile-menu {
    position: fixed;
    top: var(--s85f-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--s85f-dark);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem;
}

.s85f-menu-active {
    transform: translateX(0);
}

.s85f-menu-overlay {
    position: fixed;
    top: var(--s85f-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.s85f-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s85f-menu-list {
    list-style: none;
}

.s85f-menu-item {
    border-bottom: 1px solid var(--s85f-border);
}

.s85f-menu-link {
    display: block;
    padding: 1.6rem 0;
    font-size: 1.6rem;
    color: var(--s85f-text);
    transition: color 0.3s ease;
}

.s85f-menu-link:hover {
    color: var(--s85f-accent);
}

/* Carousel */
.s85f-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.s85f-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.s85f-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s85f-slide-active {
    opacity: 1;
}

.s85f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s85f-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.s85f-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s85f-dot-active {
    background: var(--s85f-accent);
    transform: scale(1.2);
}

/* Section Titles */
.s85f-section {
    margin-bottom: 3rem;
}

.s85f-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s85f-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--s85f-accent);
}

/* Game Grid */
.s85f-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.s85f-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: rgba(216, 191, 216, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s85f-game-card:hover {
    background: rgba(216, 191, 216, 0.15);
    transform: translateY(-3px);
}

.s85f-game-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.6rem;
}

.s85f-game-name {
    font-size: 1.1rem;
    color: var(--s85f-text);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Blocks */
.s85f-content-block {
    background: rgba(216, 191, 216, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.s85f-content-block h2 {
    font-size: 1.8rem;
    color: var(--s85f-primary);
    margin-bottom: 1.2rem;
}

.s85f-content-block p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--s85f-text);
    margin-bottom: 1rem;
}

.s85f-content-block ul {
    list-style: none;
    padding-left: 0;
}

.s85f-content-block li {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--s85f-text);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.s85f-content-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    background: var(--s85f-accent);
    border-radius: 50%;
}

/* Promo Link Styles */
.s85f-promo-link {
    color: var(--s85f-accent);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.s85f-promo-link:hover {
    color: var(--s85f-peru);
    text-decoration: underline;
}

.s85f-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--s85f-accent), var(--s85f-peru));
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.s85f-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
}

/* Footer */
.s85f-footer {
    background: rgba(13, 17, 23, 0.95);
    border-top: 1px solid var(--s85f-border);
    padding: 3rem 1.6rem calc(var(--s85f-bottom-nav-height) + 2rem);
    margin-top: 3rem;
}

.s85f-footer-inner {
    max-width: 430px;
    margin: 0 auto;
}

.s85f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s85f-footer-link {
    font-size: 1.3rem;
    color: var(--s85f-text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.s85f-footer-link:hover {
    color: var(--s85f-accent);
}

.s85f-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s85f-partner-logo {
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.s85f-partner-logo:hover {
    opacity: 1;
}

.s85f-copyright {
    font-size: 1.2rem;
    color: var(--s85f-gray);
    text-align: center;
}

/* Bottom Navigation */
.s85f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--s85f-bottom-nav-height);
    background: var(--s85f-dark);
    border-top: 1px solid var(--s85f-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

.s85f-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    color: var(--s85f-text);
}

.s85f-nav-btn:hover {
    transform: scale(1.1);
}

.s85f-nav-btn.active {
    color: var(--s85f-accent);
}

.s85f-nav-icon {
    font-size: 24px;
    margin-bottom: 0.3rem;
}

.s85f-nav-text {
    font-size: 1rem;
    color: inherit;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s85f-bottom-nav {
        display: none;
    }

    .s85f-wrapper {
        padding-bottom: 3rem;
    }

    .s85f-footer {
        padding-bottom: 3rem;
    }

    .s85f-hamburger {
        display: none;
    }
}

/* Mobile padding for bottom nav */
@media (max-width: 768px) {
    main, .s85f-main {
        padding-bottom: calc(var(--s85f-bottom-nav-height) + 2rem);
    }
}

/* Utilities */
.s85f-text-center {
    text-align: center;
}

.s85f-mb-1 { margin-bottom: 1rem; }
.s85f-mb-2 { margin-bottom: 2rem; }
.s85f-mb-3 { margin-bottom: 3rem; }

.s85f-hidden { display: none; }
.s85f-visible { display: block; }

/* RTP Analysis Grid */
.s85f-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.s85f-rtp-item {
    background: rgba(216, 191, 216, 0.08);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
}

.s85f-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s85f-accent);
}

.s85f-rtp-label {
    font-size: 1.2rem;
    color: var(--s85f-gray);
    margin-top: 0.4rem;
}

/* FAQ Accordion */
.s85f-faq-item {
    border-bottom: 1px solid var(--s85f-border);
    padding: 1.5rem 0;
}

.s85f-faq-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s85f-primary);
    margin-bottom: 0.8rem;
}

.s85f-faq-answer {
    font-size: 1.4rem;
    color: var(--s85f-text);
    line-height: 1.7;
}

/* Feature Cards */
.s85f-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: rgba(216, 191, 216, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.s85f-feature-icon {
    font-size: 2.4rem;
    color: var(--s85f-accent);
    flex-shrink: 0;
}

.s85f-feature-content h3 {
    font-size: 1.5rem;
    color: var(--s85f-primary);
    margin-bottom: 0.5rem;
}

.s85f-feature-content p {
    font-size: 1.3rem;
    color: var(--s85f-text);
    line-height: 1.6;
}

/* Achievements */
.s85f-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(205, 133, 63, 0.1));
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.s85f-achievement-icon {
    font-size: 2rem;
}

.s85f-achievement-text {
    font-size: 1.3rem;
    color: var(--s85f-text);
}

/* Security Badge */
.s85f-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(216, 191, 216, 0.1);
    border-radius: 20px;
    font-size: 1.2rem;
    color: var(--s85f-text-light);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.s85f-security-badge i {
    color: var(--s85f-accent);
}
