/**
 * starph.css - Main Stylesheet for StarPH Gaming Platform
 * Class prefix: s050-
 * Mobile-first responsive design
 * @author starph
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --s050-primary: #26A69A;
    --s050-secondary: #00FFFF;
    --s050-accent: #E91E63;
    --s050-dark: #1A1A1A;
    --s050-light: #48D1CC;
    --s050-bg: #0D0D0D;
    --s050-text: #FFFFFF;
    --s050-text-muted: #B0B0B0;
    --s050-card-bg: #1F1F1F;
    --s050-border: #333333;
    --s050-gradient: linear-gradient(135deg, #26A69A 0%, #48D1CC 100%);
}

/* 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, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--s050-text);
    background-color: var(--s050-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.s050-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.s050-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--s050-border);
    transition: all 0.3s ease;
}

.s050-header-scrolled {
    background: rgba(13, 13, 13, 0.99);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.s050-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.s050-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s050-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.s050-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s050-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.s050-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s050-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 36px;
    min-width: 44px;
}

.s050-btn-primary {
    background: var(--s050-gradient);
    color: var(--s050-dark);
}

.s050-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.4);
}

.s050-btn-secondary {
    background: transparent;
    color: var(--s050-secondary);
    border: 1px solid var(--s050-secondary);
}

.s050-btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
}

.s050-menu-toggle {
    background: transparent;
    border: none;
    color: var(--s050-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.s050-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s050-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.web50d-menu-active {
    right: 0;
}

.s050-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;
}

.web50d-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s050-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--s050-text);
    font-size: 2.4rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.s050-menu-nav {
    margin-top: 3rem;
}

.s050-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--s050-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--s050-border);
    transition: color 0.3s ease;
}

.s050-menu-link:hover {
    color: var(--s050-primary);
}

/* Main Content */
.s050-main {
    padding-top: 60px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .s050-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.s050-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.s050-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.s050-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.web50d-slide-active {
    opacity: 1;
    position: relative;
}

.s050-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.s050-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.s050-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.web50d-dot-active {
    background: var(--s050-primary);
    transform: scale(1.2);
}

/* Sections */
.s050-section {
    padding: 2rem 1.2rem;
}

.s050-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s050-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Grid */
.s050-game-category {
    margin-bottom: 2rem;
}

.s050-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s050-secondary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--s050-accent);
}

.s050-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.s050-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.s050-game-item:hover {
    transform: scale(1.05);
}

.s050-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--s050-card-bg);
    margin-bottom: 0.4rem;
}

.s050-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s050-game-name {
    font-size: 1rem;
    color: var(--s050-text);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.s050-card {
    background: var(--s050-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--s050-border);
}

.s050-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s050-secondary);
    margin-bottom: 1rem;
}

.s050-card-text {
    color: var(--s050-text-muted);
    line-height: 1.6;
    font-size: 1.3rem;
}

/* Features Grid */
.s050-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.s050-feature {
    background: var(--s050-card-bg);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--s050-border);
}

.s050-feature-icon {
    font-size: 2.4rem;
    color: var(--s050-primary);
    margin-bottom: 0.8rem;
}

.s050-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--s050-text);
    margin-bottom: 0.4rem;
}

.s050-feature-text {
    font-size: 1.1rem;
    color: var(--s050-text-muted);
}

/* Promo Links */
.s050-promo-text {
    color: var(--s050-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.s050-promo-text:hover {
    color: var(--s050-primary);
}

/* Footer */
.s050-footer {
    background: var(--s050-dark);
    border-top: 1px solid var(--s050-border);
    padding: 2rem 1.2rem;
}

.s050-footer-section {
    margin-bottom: 1.5rem;
}

.s050-footer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s050-primary);
    margin-bottom: 1rem;
}

.s050-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.s050-footer-link {
    color: var(--s050-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.s050-footer-link:hover {
    color: var(--s050-secondary);
}

.s050-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.s050-partner {
    width: 50px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s050-partner:hover {
    opacity: 1;
}

.s050-partner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.s050-copyright {
    text-align: center;
    color: var(--s050-text-muted);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--s050-border);
}

/* Bottom Navigation */
.s050-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.99) 100%);
    border-top: 1px solid var(--s050-border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    height: 60px;
}

@media (min-width: 769px) {
    .s050-bottom-nav {
        display: none;
    }
}

.s050-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    text-decoration: none;
    color: var(--s050-text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.s050-nav-item:hover,
.s050-nav-item.active {
    color: var(--s050-primary);
    transform: scale(1.1);
}

.s050-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.s050-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* RTP Table */
.s050-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.s050-rtp-table th,
.s050-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--s050-border);
}

.s050-rtp-table th {
    color: var(--s050-secondary);
    font-weight: 600;
}

.s050-rtp-table td {
    color: var(--s050-text-muted);
}

/* FAQ Accordion */
.s050-faq-item {
    background: var(--s050-card-bg);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--s050-border);
}

.s050-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--s050-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s050-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--s050-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Utilities */
.s050-text-center {
    text-align: center;
}

.s050-mb-1 {
    margin-bottom: 1rem;
}

.s050-mb-2 {
    margin-bottom: 2rem;
}

.s050-mt-2 {
    margin-top: 2rem;
}

.s050-highlight {
    color: var(--s050-accent);
    font-weight: 600;
}

/* CTA Section */
.s050-cta {
    background: var(--s050-gradient);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 1.5rem 0;
}

.s050-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s050-dark);
    margin-bottom: 1rem;
}

.s050-cta-text {
    color: var(--s050-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.s050-cta-btn {
    display: inline-block;
    background: var(--s050-dark);
    color: var(--s050-secondary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.s050-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Achievements */
.s050-achievements {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 1.5rem 0;
}

.s050-achievement {
    flex: 1;
}

.s050-achievement-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s050-secondary);
}

.s050-achievement-label {
    font-size: 1.1rem;
    color: var(--s050-text-muted);
}

/* Tricks Grid */
.s050-tricks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.s050-trick {
    background: var(--s050-card-bg);
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--s050-primary);
}

.s050-trick-title {
    font-weight: 600;
    color: var(--s050-text);
    margin-bottom: 0.5rem;
}

.s050-trick-text {
    font-size: 1.2rem;
    color: var(--s050-text-muted);
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .s050-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s050-features {
        grid-template-columns: 1fr;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .s050-container {
        max-width: 768px;
    }

    .s050-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .s050-features {
        grid-template-columns: repeat(4, 1fr);
    }
}
