/**
 * King PH - Main Stylesheet
 * Class Prefix: v980-
 * Color Palette: #40E0D0 | #BA55D3 | #273746 | #0000CD
 */

/* CSS Variables */
:root {
    --v980-primary: #BA55D3;
    --v980-secondary: #40E0D0;
    --v980-bg-dark: #273746;
    --v980-bg-darker: #1a252f;
    --v980-accent: #0000CD;
    --v980-text-light: #ffffff;
    --v980-text-muted: #a0aec0;
    --v980-gradient-start: #BA55D3;
    --v980-gradient-end: #40E0D0;
    --v980-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --v980-radius: 12px;
    --v980-radius-sm: 8px;
}

/* Reset & Base */
* {
    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;
    background: linear-gradient(135deg, var(--v980-bg-darker) 0%, var(--v980-bg-dark) 100%);
    color: var(--v980-text-light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.v980-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.v980-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v980-bg-darker) 0%, rgba(39, 55, 70, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.v980-header-scrolled {
    box-shadow: var(--v980-shadow);
    background: rgba(39, 55, 70, 0.98);
}

.v980-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.v980-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v980-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--v980-radius-sm);
}

.v980-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--v980-primary), var(--v980-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v980-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.v980-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--v980-radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.v980-btn-primary {
    background: linear-gradient(135deg, var(--v980-primary), var(--v980-accent));
    color: var(--v980-text-light);
}

.v980-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(186, 85, 211, 0.4);
}

.v980-btn-secondary {
    background: transparent;
    border: 2px solid var(--v980-secondary);
    color: var(--v980-secondary);
}

.v980-btn-secondary:hover {
    background: var(--v980-secondary);
    color: var(--v980-bg-darker);
}

.v980-menu-toggle {
    background: transparent;
    border: none;
    color: var(--v980-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.v980-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--v980-bg-darker);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.v980-menu-active {
    right: 0;
}

.v980-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;
}

.v980-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v980-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v980-menu-close {
    background: transparent;
    border: none;
    color: var(--v980-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.v980-menu-nav {
    list-style: none;
}

.v980-menu-nav li {
    margin-bottom: 0.5rem;
}

.v980-menu-nav a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--v980-text-light);
    font-size: 1.5rem;
    border-radius: var(--v980-radius-sm);
    transition: all 0.3s ease;
}

.v980-menu-nav a:hover {
    background: rgba(186, 85, 211, 0.2);
    color: var(--v980-primary);
}

/* Carousel */
.v980-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--v980-radius);
    margin: 1rem 0;
}

.v980-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.v980-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.v980-slide-active {
    opacity: 1;
}

.v980-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--v980-radius);
}

.v980-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.v980-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v980-dot-active {
    background: var(--v980-secondary);
    transform: scale(1.2);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Sections */
.v980-section {
    padding: 2rem 1.5rem;
}

.v980-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(90deg, var(--v980-primary), var(--v980-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Grid */
.v980-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v980-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.v980-game-item:hover {
    transform: scale(1.05);
}

.v980-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--v980-radius-sm);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.v980-game-name {
    font-size: 1.1rem;
    color: var(--v980-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.v980-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v980-secondary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--v980-primary);
}

/* Info Cards */
.v980-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v980-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v980-card h3 {
    font-size: 1.6rem;
    color: var(--v980-secondary);
    margin-bottom: 1rem;
}

.v980-card p {
    font-size: 1.3rem;
    color: var(--v980-text-muted);
    line-height: 1.6;
}

/* Promo Links */
.v980-promo-link {
    color: var(--v980-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v980-promo-link:hover {
    color: var(--v980-secondary);
}

/* Footer */
.v980-footer {
    background: var(--v980-bg-darker);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.v980-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v980-footer-links a {
    font-size: 1.2rem;
    color: var(--v980-text-muted);
    transition: color 0.3s ease;
}

.v980-footer-links a:hover {
    color: var(--v980-secondary);
}

.v980-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v980-partners img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v980-partners img:hover {
    opacity: 1;
}

.v980-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v980-text-muted);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.v980-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--v980-bg-dark) 0%, var(--v980-bg-darker) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(186, 85, 211, 0.3);
}

@media (min-width: 769px) {
    .v980-bottom-nav {
        display: none;
    }
}

.v980-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--v980-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.v980-nav-item:hover,
.v980-nav-item.v980-active {
    color: var(--v980-secondary);
    transform: scale(1.1);
}

.v980-nav-item i,
.v980-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.v980-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.v980-text-center {
    text-align: center;
}

.v980-mt-1 {
    margin-top: 1rem;
}

.v980-mb-1 {
    margin-bottom: 1rem;
}

.v980-mt-2 {
    margin-top: 2rem;
}

.v980-mb-2 {
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 430px) {
    .v980-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .v980-game-name {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes v980-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.v980-pulse {
    animation: v980-pulse 2s infinite;
}

/* Features List */
.v980-features {
    display: grid;
    gap: 1rem;
}

.v980-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--v980-radius-sm);
}

.v980-feature-icon {
    font-size: 2.4rem;
    color: var(--v980-primary);
    flex-shrink: 0;
}

.v980-feature-content h4 {
    font-size: 1.4rem;
    color: var(--v980-text-light);
    margin-bottom: 0.5rem;
}

.v980-feature-content p {
    font-size: 1.2rem;
    color: var(--v980-text-muted);
}

/* FAQ Section */
.v980-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--v980-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.v980-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v980-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v980-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: var(--v980-text-muted);
    line-height: 1.6;
}

/* RTP Grid */
.v980-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v980-rtp-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v980-radius-sm);
    padding: 1rem;
    text-align: center;
}

.v980-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v980-secondary);
}

.v980-rtp-label {
    font-size: 1.1rem;
    color: var(--v980-text-muted);
}
