/**
 * Spin Ph - Main Stylesheet
 * Website: spinph.sbs
 * Mobile-first responsive design
 */

/* CSS Variables with prefix */
:root {
    --ui4e-primary: #80CBC4;
    --ui4e-secondary: #FFB74D;
    --ui4e-accent: #FF8C00;
    --ui4e-bg: #2C2C2C;
    --ui4e-bg-dark: #1a1a1a;
    --ui4e-text: #F5F5F5;
    --ui4e-text-muted: #b0b0b0;
    --ui4e-border: #404040;
    --ui4e-gradient: linear-gradient(135deg, #80CBC4 0%, #FFB74D 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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-color: var(--ui4e-bg);
    color: var(--ui4e-text);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.ui4e-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.ui4e-wrapper {
    padding-top: 7rem;
    padding-bottom: 8rem;
}

/* Header Styles */
.ui4e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--ui4e-bg-dark) 0%, rgba(44, 44, 44, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ui4e-border);
    padding: 1rem 0;
}

.ui4e-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.ui4e-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ui4e-logo img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.4rem;
}

.ui4e-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--ui4e-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ui4e-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ui4e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ui4e-btn-primary {
    background: var(--ui4e-gradient);
    color: var(--ui4e-bg-dark);
}

.ui4e-btn-secondary {
    background: transparent;
    color: var(--ui4e-primary);
    border: 2px solid var(--ui4e-primary);
}

.ui4e-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 203, 196, 0.3);
}

.ui4e-menu-btn {
    background: transparent;
    border: none;
    color: var(--ui4e-text);
    font-size: 2.4rem;
    padding: 0.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.ui4e-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--ui4e-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.ui4e-menu-active {
    right: 0;
}

.ui4e-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ui4e-overlay-active {
    opacity: 1;
    visibility: visible;
}

.ui4e-close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--ui4e-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.ui4e-menu-nav {
    margin-top: 4rem;
}

.ui4e-menu-link {
    display: block;
    padding: 1.2rem 0;
    font-size: 1.6rem;
    color: var(--ui4e-text);
    border-bottom: 1px solid var(--ui4e-border);
    transition: color 0.3s ease;
}

.ui4e-menu-link:hover {
    color: var(--ui4e-primary);
}

/* Slider Styles */
.ui4e-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1.2rem;
    margin: 1.5rem 0;
}

.ui4e-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.ui4e-slide-active {
    opacity: 1;
}

.ui4e-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui4e-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.ui4e-slider-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.ui4e-dot-active {
    background: var(--ui4e-primary);
}

/* Game Grid */
.ui4e-section {
    padding: 2rem 0;
}

.ui4e-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--ui4e-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ui4e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ui4e-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ui4e-game-item:hover {
    transform: scale(1.05);
}

.ui4e-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--ui4e-bg-dark);
    margin-bottom: 0.5rem;
}

.ui4e-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui4e-game-name {
    font-size: 1.2rem;
    color: var(--ui4e-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Cards */
.ui4e-card {
    background: var(--ui4e-bg-dark);
    border-radius: 1.2rem;
    padding: 1.6rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ui4e-border);
}

.ui4e-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ui4e-secondary);
}

.ui4e-card-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--ui4e-text-muted);
}

.ui4e-card-text a {
    color: var(--ui4e-primary);
    font-weight: 600;
}

/* Promo Links */
.ui4e-promo-text {
    color: var(--ui4e-primary);
    font-weight: 700;
    cursor: pointer;
}

.ui4e-promo-text:hover {
    text-decoration: underline;
}

/* Footer */
.ui4e-footer {
    background: var(--ui4e-bg-dark);
    padding: 2rem 0 8rem;
    border-top: 1px solid var(--ui4e-border);
}

.ui4e-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.ui4e-footer-link {
    font-size: 1.3rem;
    color: var(--ui4e-text-muted);
    transition: color 0.3s ease;
}

.ui4e-footer-link:hover {
    color: var(--ui4e-primary);
}

.ui4e-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.ui4e-partner-logo {
    width: 4rem;
    height: 2rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.ui4e-partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.ui4e-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--ui4e-text-muted);
}

/* Bottom Navigation */
.ui4e-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(26, 26, 26, 1) 100%);
    border-top: 1px solid var(--ui4e-border);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
}

.ui4e-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    color: var(--ui4e-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
}

.ui4e-nav-item:hover {
    color: var(--ui4e-primary);
    background: rgba(128, 203, 196, 0.1);
}

.ui4e-nav-item.active {
    color: var(--ui4e-primary);
}

.ui4e-nav-item i,
.ui4e-nav-item span.iconify {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.ui4e-nav-item span.material-icons-outlined,
.ui4e-nav-item span.material-icons {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.ui4e-nav-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Utility Classes */
.ui4e-text-center { text-align: center; }
.ui4e-mb-1 { margin-bottom: 1rem; }
.ui4e-mb-2 { margin-bottom: 2rem; }
.ui4e-mt-1 { margin-top: 1rem; }
.ui4e-mt-2 { margin-top: 2rem; }

/* Desktop: Hide bottom nav */
@media (min-width: 769px) {
    .ui4e-bottom-nav {
        display: none;
    }

    .ui4e-wrapper {
        padding-bottom: 2rem;
    }

    .ui4e-footer {
        padding-bottom: 2rem;
    }

    .ui4e-container {
        max-width: 768px;
    }

    .ui4e-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ui4e-wrapper {
        padding-bottom: 8rem;
    }
}
