/**
 * PH Play - Core Stylesheet
 * All classes use prefix: g717-
 * Colors: #BC8F8F, #40E0D0, #0D1117, #0097A7, #00CED1
 */

/* CSS Variables */
:root {
    --g717-primary: #40E0D0;
    --g717-secondary: #0097A7;
    --g717-accent: #BC8F8F;
    --g717-highlight: #00CED1;
    --g717-dark: #0D1117;
    --g717-bg: #0a0d12;
    --g717-bg-light: #161b22;
    --g717-text: #ffffff;
    --g717-text-muted: #8b949e;
    --g717-border: rgba(255,255,255,0.1);
    --g717-shadow: 0 4px 15px rgba(0,0,0,0.4);
    --g717-radius: 8px;
    --g717-transition: all 0.3s ease;
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    background: var(--g717-bg);
    color: var(--g717-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.g717-container { max-width: 430px; margin: 0 auto; padding: 0 1rem; }
.g717-wrapper { width: 100%; }

/* Header */
.g717-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g717-dark), var(--g717-bg-light));
    padding: 0.8rem 1rem;
    box-shadow: var(--g717-shadow);
    border-bottom: 1px solid var(--g717-border);
}
.g717-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.g717-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--g717-text);
}
.g717-logo img { width: 28px; height: 28px; border-radius: 4px; }
.g717-logo span { font-size: 1.6rem; font-weight: 700; color: var(--g717-primary); }
.g717-header-btns { display: flex; gap: 0.6rem; align-items: center; }
.g717-header-scrolled { background: rgba(13,17,23,0.95); backdrop-filter: blur(10px); }

/* Buttons */
.g717-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--g717-radius);
    cursor: pointer;
    transition: var(--g717-transition);
    text-decoration: none;
}
.g717-btn-primary {
    background: linear-gradient(135deg, var(--g717-primary), var(--g717-secondary));
    color: var(--g717-dark);
}
.g717-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(64,224,208,0.4); }
.g717-btn-accent {
    background: linear-gradient(135deg, var(--g717-accent), #a07070);
    color: #fff;
}
.g717-btn-accent:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(188,143,143,0.4); }
.g717-btn-outline {
    background: transparent;
    border: 2px solid var(--g717-highlight);
    color: var(--g717-highlight);
}
.g717-btn-outline:hover { background: var(--g717-highlight); color: var(--g717-dark); }
.g717-btn-menu {
    background: transparent;
    border: none;
    color: var(--g717-text);
    font-size: 2rem;
    padding: 0.4rem;
    cursor: pointer;
}

/* Mobile Menu */
.g717-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--g717-transition);
}
.g717-overlay-active { opacity: 1; visibility: visible; }
.g717-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--g717-dark), var(--g717-bg));
    z-index: 9999;
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--g717-border);
}
.g717-menu-active { right: 0; }
.g717-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g717-border);
}
.g717-menu-close {
    background: transparent;
    border: none;
    color: var(--g717-text);
    font-size: 2.4rem;
    cursor: pointer;
}
.g717-menu-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.g717-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--g717-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--g717-radius);
    transition: var(--g717-transition);
}
.g717-menu-link:hover { background: var(--g717-bg-light); color: var(--g717-primary); }
.g717-menu-link i { width: 24px; color: var(--g717-highlight); }

/* Main Content */
.g717-main { padding-top: 56px; padding-bottom: 80px; }
@media (min-width: 769px) { .g717-main { padding-bottom: 2rem; } }

/* Carousel */
.g717-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--g717-radius);
    margin: 1rem 0;
}
.g717-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.g717-slide-active { display: block; }
.g717-slide img { width: 100%; height: auto; display: block; border-radius: var(--g717-radius); }
.g717-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 0;
}
.g717-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--g717-text-muted);
    cursor: pointer;
    transition: var(--g717-transition);
}
.g717-dot-active { background: var(--g717-primary); transform: scale(1.2); }

/* Cards */
.g717-card {
    background: var(--g717-bg-light);
    border-radius: var(--g717-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--g717-border);
}
.g717-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g717-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.g717-card-title i { color: var(--g717-highlight); }
.g717-content-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--g717-text);
    margin-bottom: 1rem;
}
.g717-content-text strong { color: var(--g717-primary); }

/* Game Grid */
.g717-section { padding: 1.5rem 0; }
.g717-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g717-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
}
.g717-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.g717-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--g717-transition);
}
.g717-game-item:hover { transform: translateY(-4px); }
.g717-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g717-radius);
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--g717-transition);
}
.g717-game-item:hover .g717-game-img { border-color: var(--g717-primary); }
.g717-game-name {
    font-size: 1rem;
    color: var(--g717-text);
    text-align: center;
    margin-top: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Stats Grid */
.g717-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}
.g717-stat-card {
    background: linear-gradient(135deg, var(--g717-dark), var(--g717-bg-light));
    padding: 1rem;
    border-radius: var(--g717-radius);
    text-align: center;
    border: 1px solid var(--g717-border);
}
.g717-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g717-primary);
}
.g717-stat-label {
    font-size: 1.1rem;
    color: var(--g717-text-muted);
    margin-top: 0.3rem;
}

/* Feature List */
.g717-feature-list { list-style: none; padding: 0; }
.g717-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--g717-border);
}
.g717-feature-list li:last-child { border-bottom: none; }
.g717-feature-list i { color: var(--g717-primary); font-size: 1.8rem; flex-shrink: 0; }

/* Accordion */
.g717-accordion { margin: 1rem 0; }
.g717-accordion-item {
    background: var(--g717-bg-light);
    border-radius: var(--g717-radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--g717-border);
}
.g717-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--g717-text);
    transition: var(--g717-transition);
}
.g717-accordion-header:hover { background: rgba(64,224,208,0.1); }
.g717-accordion-header i { color: var(--g717-highlight); transition: var(--g717-transition); }
.g717-accordion-active .g717-accordion-header i { transform: rotate(180deg); }
.g717-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    color: var(--g717-text-muted);
}
.g717-accordion-active .g717-accordion-content { padding-bottom: 1.5rem; }

/* RTP Grid */
.g717-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}
.g717-rtp-item {
    background: var(--g717-bg-light);
    padding: 1rem;
    border-radius: var(--g717-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--g717-border);
}
.g717-rtp-game { font-size: 1.2rem; color: var(--g717-text); }
.g717-rtp-value { font-size: 1.4rem; font-weight: 700; color: var(--g717-primary); }

/* Footer */
.g717-footer {
    background: linear-gradient(180deg, var(--g717-bg-light), var(--g717-dark));
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--g717-border);
}
.g717-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.g717-footer-link {
    color: var(--g717-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--g717-transition);
}
.g717-footer-link:hover { color: var(--g717-primary); }
.g717-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--g717-border);
    border-bottom: 1px solid var(--g717-border);
    margin: 1rem 0;
}
.g717-partner-img { height: 24px; width: auto; opacity: 0.7; filter: grayscale(30%); }
.g717-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g717-text-muted);
    margin-top: 1rem;
}

/* Bottom Navigation */
.g717-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g717-dark), var(--g717-bg-light));
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
    border-top: 1px solid var(--g717-border);
}
@media (min-width: 769px) { .g717-bottom-nav { display: none; } }
.g717-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: transparent;
    border: none;
    color: var(--g717-text-muted);
    cursor: pointer;
    transition: var(--g717-transition);
    text-decoration: none;
}
.g717-bottom-btn:hover, .g717-bottom-btn.g717-active {
    color: var(--g717-primary);
}
.g717-bottom-btn i { font-size: 2.2rem; margin-bottom: 0.2rem; }
.g717-bottom-btn span { font-size: 1rem; }
.g717-touch-active { transform: scale(0.95); }

/* Utility Classes */
.g717-text-center { text-align: center; }
.g717-text-accent { color: var(--g717-accent); }
.g717-text-primary { color: var(--g717-primary); }
.g717-mb-1 { margin-bottom: 1rem; }
.g717-mb-2 { margin-bottom: 2rem; }
.g717-mt-1 { margin-top: 1rem; }
.g717-mt-2 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 380px) {
    .g717-game-grid { grid-template-columns: repeat(3, 1fr); }
    .g717-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Link Styles */
.g717-link {
    color: var(--g717-highlight);
    text-decoration: none;
    transition: var(--g717-transition);
}
.g717-link:hover { color: var(--g717-primary); text-decoration: underline; }

/* Promo Button */
.g717-promo-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--g717-primary), var(--g717-secondary));
    color: var(--g717-dark);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border: none;
    border-radius: var(--g717-radius);
    cursor: pointer;
    transition: var(--g717-transition);
    margin: 1rem 0;
}
.g717-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64,224,208,0.4);
}

/* Steps List */
.g717-steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
}
.g717-steps-list li {
    counter-increment: step;
    padding: 1rem 0 1rem 3rem;
    position: relative;
    border-left: 2px solid var(--g717-primary);
    margin-left: 1rem;
}
.g717-steps-list li::before {
    content: counter(step);
    position: absolute;
    left: -1.2rem;
    top: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    background: var(--g717-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--g717-dark);
}
