/**
 * PhBingo Click - Core CSS Styles
 * Prefix: w6980-
 * Mobile-first responsive design for PhBingo gaming platform
 */

/* Root Variables */
:root {
    font-size: 62.5%; /* 1rem = 10px */
    --w6980-primary: #DA70D6;
    --w6980-secondary: #FF69B4;
    --w6980-dark: #1A1A2E;
    --w6980-darker: #0F0F1E;
    --w6980-light: #F5F5F5;
    --w6980-accent: #FFD700;
    --w6980-success: #00FF87;
    --w6980-warning: #FFA500;
    --w6980-gradient: linear-gradient(135deg, #DA70D6 0%, #FF69B4 100%);
    --w6980-shadow: 0 0.4rem 1.6rem rgba(218, 112, 214, 0.2);
    --w6980-shadow-lg: 0 0.8rem 3.2rem rgba(218, 112, 214, 0.3);
    --w6980-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--w6980-light);
    background-color: var(--w6980-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--w6980-transition);
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--w6980-transition);
}

/* Header */
.w6980-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--w6980-darker);
    padding: 1.2rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-bottom: 0.1rem solid rgba(218, 112, 214, 0.1);
    transition: var(--w6980-transition);
}

.w6980-header.w6980-scrolled {
    box-shadow: var(--w6980-shadow);
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(1rem);
}

.w6980-logo {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--w6980-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w6980-header-actions {
    display: flex;
    gap: 1rem;
}

.w6980-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 2.4rem;
    font-weight: 600;
    font-size: 1.4rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.w6980-btn-primary {
    background: var(--w6980-gradient);
    color: white;
    box-shadow: var(--w6980-shadow);
}

.w6980-btn-primary:hover {
    transform: translateY(-0.2rem);
    box-shadow: var(--w6980-shadow-lg);
}

.w6980-btn-outline {
    border: 0.2rem solid var(--w6980-primary);
    color: var(--w6980-primary);
}

.w6980-btn-outline:hover {
    background: var(--w6980-primary);
    color: white;
}

.w6980-menu-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
}

.w6980-menu-btn span {
    width: 2.4rem;
    height: 0.3rem;
    background: var(--w6980-primary);
    border-radius: 0.2rem;
    transition: var(--w6980-transition);
}

.w6980-menu-btn.w6980-open span:nth-child(1) {
    transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.w6980-menu-btn.w6980-open span:nth-child(2) {
    opacity: 0;
}

.w6980-menu-btn.w6980-open span:nth-child(3) {
    transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

/* Mobile Menu */
.w6980-mobile-menu {
    position: fixed;
    top: 6rem;
    right: -100%;
    width: 80%;
    max-width: 32rem;
    height: calc(100vh - 6rem);
    background: var(--w6980-darker);
    padding: 2rem;
    z-index: 999;
    transition: var(--w6980-transition);
    overflow-y: auto;
    border-left: 0.1rem solid rgba(218, 112, 214, 0.1);
}

.w6980-mobile-menu.w6980-active {
    right: 0;
}

.w6980-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--w6980-transition);
}

.w6980-menu-overlay.w6980-active {
    opacity: 1;
    visibility: visible;
}

.w6980-nav-links {
    list-style: none;
}

.w6980-nav-links li {
    margin-bottom: 0.8rem;
}

.w6980-nav-links a {
    display: block;
    padding: 1.2rem;
    color: var(--w6980-light);
    border-radius: 0.8rem;
    transition: var(--w6980-transition);
    font-size: 1.5rem;
}

.w6980-nav-links a:hover {
    background: rgba(218, 112, 214, 0.1);
    color: var(--w6980-primary);
}

/* Main Content */
.w6980-main {
    margin-top: 6rem;
    margin-bottom: 7rem;
    padding: 1.6rem;
}

/* Carousel */
.w6980-carousel {
    position: relative;
    width: 100%;
    height: 42rem;
    border-radius: 1.6rem;
    overflow: hidden;
    margin-bottom: 2.4rem;
}

.w6980-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.w6980-carousel-slide.w6980-active {
    opacity: 1;
}

.w6980-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w6980-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.4rem;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), transparent);
}

.w6980-carousel-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--w6980-primary);
}

.w6980-carousel-text {
    font-size: 1.4rem;
    color: var(--w6980-light);
    margin-bottom: 1.6rem;
}

.w6980-carousel-controls {
    position: absolute;
    bottom: 2.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.w6980-carousel-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--w6980-transition);
}

.w6980-carousel-indicator.w6980-active {
    background: var(--w6980-primary);
    width: 2.4rem;
    border-radius: 0.4rem;
}

/* Section */
.w6980-section {
    margin-bottom: 3.2rem;
}

.w6980-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.w6980-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--w6980-primary);
    position: relative;
    padding-left: 1.6rem;
}

.w6980-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.4rem;
    height: 2.4rem;
    background: var(--w6980-gradient);
    border-radius: 0.2rem;
}

.w6980-see-all {
    color: var(--w6980-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

/* Game Grid */
.w6980-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 1.2rem;
}

.w6980-game-card {
    background: var(--w6980-darker);
    border-radius: 1.2rem;
    overflow: hidden;
    cursor: pointer;
    transition: var(--w6980-transition);
    border: 0.1rem solid transparent;
}

.w6980-game-card:hover {
    transform: translateY(-0.4rem);
    border-color: var(--w6980-primary);
    box-shadow: var(--w6980-shadow);
}

.w6980-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w6980-game-name {
    padding: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--w6980-light);
}

/* Content Cards */
.w6980-content-card {
    background: var(--w6980-darker);
    border-radius: 1.6rem;
    padding: 2.4rem;
    margin-bottom: 2.4rem;
    border: 0.1rem solid rgba(218, 112, 214, 0.1);
}

.w6980-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w6980-primary);
    margin-bottom: 1.6rem;
}

.w6980-content-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--w6980-light);
    margin-bottom: 1.2rem;
}

.w6980-feature-list {
    list-style: none;
    margin: 1.6rem 0;
}

.w6980-feature-item {
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    background: rgba(218, 112, 214, 0.05);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.w6980-feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--w6980-gradient);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.w6980-feature-text {
    flex: 1;
}

/* FAQ */
.w6980-faq-item {
    background: var(--w6980-darker);
    border-radius: 1.2rem;
    margin-bottom: 1.2rem;
    overflow: hidden;
    border: 0.1rem solid rgba(218, 112, 214, 0.1);
}

.w6980-faq-question {
    padding: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    transition: var(--w6980-transition);
    min-height: 44px;
}

.w6980-faq-question:hover {
    background: rgba(218, 112, 214, 0.05);
}

.w6980-faq-icon {
    font-size: 2.4rem;
    color: var(--w6980-primary);
    font-weight: 300;
    flex-shrink: 0;
}

.w6980-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.w6980-faq-answer.w6980-active {
    max-height: 50rem;
}

.w6980-faq-answer-content {
    padding: 0 1.6rem 1.6rem 1.6rem;
    color: var(--w6980-light);
    font-size: 1.4rem;
    line-height: 1.8;
}

/* Footer */
.w6980-footer {
    background: var(--w6980-darker);
    padding: 3.2rem 1.6rem 10rem;
    border-top: 0.1rem solid rgba(218, 112, 214, 0.1);
}

.w6980-partners {
    margin-bottom: 2.4rem;
}

.w6980-partners-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w6980-light);
    margin-bottom: 1.6rem;
    text-align: center;
}

.w6980-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

.w6980-partner-logo {
    background: rgba(218, 112, 214, 0.05);
    padding: 1.2rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w6980-partner-logo img {
    width: 100%;
    height: auto;
    opacity: 0.6;
    transition: var(--w6980-transition);
}

.w6980-partner-logo:hover img {
    opacity: 1;
}

.w6980-footer-text {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(245, 245, 245, 0.6);
    line-height: 1.6;
}

/* Bottom Navigation */
.w6980-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--w6980-darker);
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-around;
    border-top: 0.1rem solid rgba(218, 112, 214, 0.1);
    z-index: 1000;
}

.w6980-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(245, 245, 245, 0.6);
    font-size: 1.2rem;
    padding: 0.8rem;
    min-width: 44px;
    min-height: 44px;
    transition: var(--w6980-transition);
}

.w6980-nav-item:hover,
.w6980-nav-item.w6980-active {
    color: var(--w6980-primary);
}

.w6980-nav-icon {
    font-size: 2rem;
}

/* Toast Notification */
.w6980-toast {
    position: fixed;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%) translateY(10rem);
    background: var(--w6980-darker);
    color: var(--w6980-light);
    padding: 1.2rem 2.4rem;
    border-radius: 2.4rem;
    box-shadow: var(--w6980-shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: var(--w6980-transition);
    border: 0.1rem solid var(--w6980-primary);
}

.w6980-toast.w6980-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Promo Banner */
.w6980-promo-banner {
    background: var(--w6980-gradient);
    padding: 1.6rem;
    border-radius: 1.6rem;
    text-align: center;
    margin-bottom: 2.4rem;
    box-shadow: var(--w6980-shadow);
}

.w6980-promo-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
}

.w6980-promo-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Stats */
.w6980-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 2.4rem 0;
}

.w6980-stat-card {
    background: var(--w6980-darker);
    padding: 1.6rem;
    border-radius: 1.2rem;
    text-align: center;
    border: 0.1rem solid rgba(218, 112, 214, 0.1);
}

.w6980-stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--w6980-primary);
    margin-bottom: 0.4rem;
}

.w6980-stat-label {
    font-size: 1.2rem;
    color: rgba(245, 245, 245, 0.7);
}

/* Utility Classes */
.w6980-text-center {
    text-align: center;
}

.w6980-text-primary {
    color: var(--w6980-primary);
}

.w6980-mt-2 {
    margin-top: 1.6rem;
}

.w6980-mb-2 {
    margin-bottom: 1.6rem;
}

/* Responsive Adjustments */
@media (max-width: 375px) {
    .w6980-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    }

    .w6980-section-title {
        font-size: 2rem;
    }
}
