/**
 * Spin PH Layout Stylesheet
 * Website: spinph.click
 * Prefix: g3f8-
 * Colors: #40E0D0 | #FFA500 | #4169E1 | #262626 | #FA8072
 */

/* CSS Variables */
:root {
    --g3f8-primary: #40E0D0;
    --g3f8-secondary: #FFA500;
    --g3f8-accent: #4169E1;
    --g3f8-bg: #262626;
    --g3f8-bg-light: #1a1a1a;
    --g3f8-danger: #FA8072;
    --g3f8-text: #ffffff;
    --g3f8-text-muted: #b0b0b0;
    --g3f8-border: #3a3a3a;
    --g3f8-gradient: linear-gradient(135deg, #40E0D0, #4169E1);
}

/* Reset & Base */
* {
    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(--g3f8-bg);
    color: var(--g3f8-text);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g3f8-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.g3f8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--g3f8-bg) 0%, rgba(38, 38, 38, 0.95) 100%);
    border-bottom: 1px solid var(--g3f8-border);
    z-index: 1000;
    padding: 1rem 0;
}

.g3f8-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g3f8-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g3f8-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g3f8-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--g3f8-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g3f8-header-btns {
    display: flex;
    gap: 0.8rem;
}

.g3f8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.g3f8-btn-primary {
    background: var(--g3f8-gradient);
    color: var(--g3f8-bg);
}

.g3f8-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.g3f8-btn-secondary {
    background: transparent;
    border: 2px solid var(--g3f8-primary);
    color: var(--g3f8-primary);
}

.g3f8-btn-secondary:hover {
    background: var(--g3f8-primary);
    color: var(--g3f8-bg);
}

.g3f8-menu-toggle {
    background: none;
    border: none;
    color: var(--g3f8-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g3f8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g3f8-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g3f8-menu-active {
    right: 0;
}

.g3f8-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;
}

.g3f8-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g3f8-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--g3f8-border);
}

.g3f8-menu-close {
    background: none;
    border: none;
    color: var(--g3f8-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.g3f8-menu-nav {
    padding: 1.5rem;
}

.g3f8-menu-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--g3f8-text);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--g3f8-border);
    transition: all 0.3s ease;
}

.g3f8-menu-link:hover {
    color: var(--g3f8-primary);
    padding-left: 1.5rem;
}

/* Main Content */
.g3f8-main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    .g3f8-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g3f8-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.g3f8-slide {
    display: none;
    width: 100%;
    border-radius: 12px;
}

.g3f8-slide-active {
    display: block;
}

.g3f8-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
}

/* Section Styles */
.g3f8-section {
    padding: 2rem 0;
}

.g3f8-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--g3f8-primary);
    text-align: center;
}

.g3f8-section-subtitle {
    font-size: 1.4rem;
    color: var(--g3f8-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.g3f8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g3f8-game-card {
    background: var(--g3f8-bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.g3f8-game-card:hover {
    transform: translateY(-5px);
}

.g3f8-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g3f8-game-name {
    font-size: 1.1rem;
    text-align: center;
    padding: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--g3f8-text);
}

/* Category Title */
.g3f8-category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g3f8-secondary);
}

.g3f8-category-title i {
    font-size: 2rem;
}

/* Content Box */
.g3f8-content-box {
    background: var(--g3f8-bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid var(--g3f8-border);
}

.g3f8-content-box h2 {
    font-size: 1.8rem;
    color: var(--g3f8-primary);
    margin-bottom: 1rem;
}

.g3f8-content-box h3 {
    font-size: 1.5rem;
    color: var(--g3f8-secondary);
    margin: 1.5rem 0 0.8rem;
}

.g3f8-content-box p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--g3f8-text-muted);
    margin-bottom: 1rem;
}

.g3f8-content-box ul, .g3f8-content-box ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.g3f8-content-box li {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--g3f8-text-muted);
    margin-bottom: 0.5rem;
}

/* Promo Link */
.g3f8-promo-link {
    color: var(--g3f8-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g3f8-promo-link:hover {
    color: var(--g3f8-secondary);
}

/* Footer */
.g3f8-footer {
    background: var(--g3f8-bg-light);
    border-top: 1px solid var(--g3f8-border);
    padding: 2rem 0;
    margin-top: 2rem;
}

.g3f8-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g3f8-footer-link {
    font-size: 1.2rem;
    color: var(--g3f8-text-muted);
    transition: color 0.3s ease;
}

.g3f8-footer-link:hover {
    color: var(--g3f8-primary);
}

.g3f8-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g3f8-partners img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g3f8-partners img:hover {
    opacity: 1;
}

.g3f8-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g3f8-text-muted);
}

/* Bottom Navigation */
.g3f8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, var(--g3f8-bg-light) 100%);
    border-top: 1px solid var(--g3f8-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

@media (min-width: 769px) {
    .g3f8-bottom-nav {
        display: none;
    }
}

.g3f8-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--g3f8-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.g3f8-nav-btn:hover, .g3f8-nav-btn-active {
    color: var(--g3f8-primary);
    background: rgba(64, 224, 208, 0.1);
}

.g3f8-nav-btn i {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.g3f8-nav-btn span {
    font-size: 1rem;
}

/* Utilities */
.g3f8-text-center {
    text-align: center;
}

.g3f8-mt-2 {
    margin-top: 2rem;
}

.g3f8-mb-2 {
    margin-bottom: 2rem;
}

.g3f8-highlight {
    color: var(--g3f8-primary);
    font-weight: 600;
}

/* H1 Title */
.g3f8-h1-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
    background: var(--g3f8-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* RTP Box */
.g3f8-rtp-box {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(65, 105, 225, 0.1));
    border: 1px solid var(--g3f8-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.g3f8-rtp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--g3f8-border);
}

.g3f8-rtp-item:last-child {
    border-bottom: none;
}

.g3f8-rtp-label {
    font-size: 1.3rem;
    color: var(--g3f8-text-muted);
}

.g3f8-rtp-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g3f8-secondary);
}

/* Achievement Card */
.g3f8-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--g3f8-bg-light);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--g3f8-primary);
}

.g3f8-achievement-icon {
    font-size: 2.4rem;
    color: var(--g3f8-secondary);
}

.g3f8-achievement-text {
    font-size: 1.3rem;
    color: var(--g3f8-text);
}

/* Play Button Large */
.g3f8-play-btn-large {
    display: block;
    width: 100%;
    padding: 1.5rem;
    background: var(--g3f8-gradient);
    color: var(--g3f8-bg);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.g3f8-play-btn-large:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.4);
}
