/**
 * PhlRuby Layout Styles - Mobile-First Gaming Platform
 * Class Prefix: w2718-
 * Color Palette: #1A1A2E (Background) | #FFEF94 (Text/Accent)
 */

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #FFEF94;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.w2718-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 239, 148, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.w2718-logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w2718-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.w2718-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #FFEF94;
    letter-spacing: 0.5px;
}

.w2718-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w2718-btn-register,
.w2718-btn-login {
    padding: 0.8rem 1.6rem;
    min-height: 44px;
    min-width: 80px;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w2718-btn-register {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1A1A2E;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.w2718-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.w2718-btn-login {
    background: transparent;
    color: #FFEF94;
    border: 2px solid #FFEF94;
}

.w2718-btn-login:hover {
    background: rgba(255, 239, 148, 0.1);
    transform: translateY(-2px);
}

.w2718-hamburger-btn {
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: 2px solid #FFEF94;
    border-radius: 8px;
    color: #FFEF94;
    font-size: 2.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.w2718-hamburger-btn:hover {
    background: rgba(255, 239, 148, 0.1);
    transform: rotate(90deg);
}

/* Mobile Menu */
.w2718-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.w2718-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.w2718-mobile-menu a {
    padding: 1.5rem 2rem;
    background: rgba(255, 239, 148, 0.05);
    border: 1px solid rgba(255, 239, 148, 0.2);
    border-radius: 8px;
    color: #FFEF94;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.w2718-mobile-menu a:hover {
    background: rgba(255, 239, 148, 0.1);
    border-color: #FFEF94;
    transform: translateX(5px);
}

/* ========================================
   BOTTOM NAVIGATION (MOBILE)
   ======================================== */
.w2718-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 239, 148, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0;
    height: 60px;
}

.w2718-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    color: rgba(255, 239, 148, 0.6);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.w2718-bottom-nav-item i {
    font-size: 2rem;
}

.w2718-bottom-nav-item.active,
.w2718-bottom-nav-item:hover {
    color: #FFEF94;
    transform: translateY(-2px);
}

@media (min-width: 769px) {
    .w2718-bottom-nav {
        display: none;
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.w2718-main {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 0 80px 0; /* Bottom padding for mobile nav */
}

@media (min-width: 769px) {
    .w2718-main {
        padding-bottom: 2rem;
    }
}

.w2718-container {
    padding: 1.5rem;
}

.w2718-section {
    margin-bottom: 3rem;
}

.w2718-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFEF94;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255, 239, 148, 0.2);
}

.w2718-section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFEF94;
    margin-bottom: 1rem;
}

/* ========================================
   CAROUSEL
   ======================================== */
.w2718-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.w2718-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.w2718-carousel-slide.active {
    opacity: 1;
}

.w2718-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w2718-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.w2718-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 239, 148, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.w2718-carousel-dot.active {
    background: #FFEF94;
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   GAME GRID
   ======================================== */
.w2718-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.w2718-game-item {
    background: rgba(255, 239, 148, 0.05);
    border: 1px solid rgba(255, 239, 148, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.w2718-game-item:hover {
    background: rgba(255, 239, 148, 0.1);
    border-color: #FFEF94;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 239, 148, 0.2);
}

.w2718-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.w2718-game-name {
    font-size: 1.1rem;
    color: #FFEF94;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   BUTTONS & CTAs
   ======================================== */
.w2718-btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w2718-btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1A1A2E;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.w2718-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.w2718-btn-secondary {
    background: transparent;
    color: #FFEF94;
    border: 2px solid #FFEF94;
}

.w2718-btn-secondary:hover {
    background: rgba(255, 239, 148, 0.1);
    transform: translateY(-2px);
}

.w2718-btn-full {
    width: 100%;
}

/* ========================================
   CARDS & CONTENT BLOCKS
   ======================================== */
.w2718-card {
    background: rgba(255, 239, 148, 0.05);
    border: 1px solid rgba(255, 239, 148, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.w2718-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.w2718-card-icon {
    font-size: 2.4rem;
    color: #FFD700;
}

.w2718-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFEF94;
}

.w2718-card-content {
    color: rgba(255, 239, 148, 0.8);
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.w2718-footer {
    background: rgba(26, 26, 46, 0.5);
    border-top: 2px solid rgba(255, 239, 148, 0.1);
    padding: 3rem 1.5rem 10rem;
    margin-top: 4rem;
}

.w2718-footer-section {
    margin-bottom: 2rem;
}

.w2718-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #FFEF94;
    margin-bottom: 1rem;
}

.w2718-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.w2718-footer-link {
    color: rgba(255, 239, 148, 0.7);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.w2718-footer-link:hover {
    color: #FFEF94;
    padding-left: 0.5rem;
}

.w2718-partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.w2718-partner-icon {
    width: 100%;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.w2718-partner-icon:hover {
    opacity: 1;
}

.w2718-copyright {
    text-align: center;
    color: rgba(255, 239, 148, 0.5);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 239, 148, 0.1);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.w2718-text-center {
    text-align: center;
}

.w2718-mt-1 { margin-top: 1rem; }
.w2718-mt-2 { margin-top: 2rem; }
.w2718-mt-3 { margin-top: 3rem; }

.w2718-mb-1 { margin-bottom: 1rem; }
.w2718-mb-2 { margin-bottom: 2rem; }
.w2718-mb-3 { margin-bottom: 3rem; }

.w2718-hidden {
    display: none !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (min-width: 431px) {
    .w2718-main {
        max-width: 768px;
    }

    .w2718-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 769px) {
    .w2718-hamburger-btn {
        display: none;
    }

    .w2718-partners {
        grid-template-columns: repeat(10, 1fr);
    }
}
