/**
 * HawkGaming - Main Stylesheet
 * All classes use w85e5 prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --w85e5-primary: #C71585;
    --w85e5-secondary: #90EE90;
    --w85e5-dark: #1B263B;
    --w85e5-gray: #6C757D;
    --w85e5-light: #F8F9FA;
    --w85e5-white: #FFFFFF;
    --w85e5-shadow: rgba(27, 38, 59, 0.15);
    --w85e5-gradient: linear-gradient(135deg, #C71585 0%, #1B263B 100%);
    --w85e5-font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--w85e5-font-main);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--w85e5-dark);
    background-color: var(--w85e5-light);
    overflow-x: hidden;
}

/* Container */
.w85e5-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.w85e5-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.w85e5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--w85e5-dark);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--w85e5-shadow);
}

.w85e5-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.w85e5-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--w85e5-white);
}

.w85e5-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.w85e5-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w85e5-secondary);
}

.w85e5-header-buttons {
    display: flex;
    gap: 1rem;
}

.w85e5-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.w85e5-btn-register {
    background: var(--w85e5-primary);
    color: var(--w85e5-white);
}

.w85e5-btn-register:hover {
    background: #A0126A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 21, 133, 0.3);
}

.w85e5-btn-login {
    background: transparent;
    color: var(--w85e5-secondary);
    border: 2px solid var(--w85e5-secondary);
}

.w85e5-btn-login:hover {
    background: var(--w85e5-secondary);
    color: var(--w85e5-dark);
}

.w85e5-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--w85e5-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 769px) {
    .w85e5-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.w85e5-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--w85e5-dark);
    z-index: 9999;
    padding: 1rem 0;
    box-shadow: 0 4px 15px var(--w85e5-shadow);
}

.w85e5-menu-open {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w85e5-menu-link {
    display: block;
    padding: 1rem 2rem;
    color: var(--w85e5-white);
    text-decoration: none;
    font-size: 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.w85e5-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--w85e5-primary);
    padding-left: 2.5rem;
}

/* Main Content */
.w85e5-main {
    margin-top: 60px;
    padding-bottom: 80px;
    flex: 1;
}

@media (min-width: 769px) {
    .w85e5-main {
        padding-bottom: 2rem;
    }
}

/* Carousel */
.w85e5-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px var(--w85e5-shadow);
}

.w85e5-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.w85e5-carousel-slide {
    min-width: 100%;
}

.w85e5-carousel-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Section Styles */
.w85e5-section {
    padding: 2rem 0;
}

.w85e5-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w85e5-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.w85e5-card {
    background: var(--w85e5-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--w85e5-shadow);
}

.w85e5-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w85e5-dark);
    margin-bottom: 1rem;
}

/* Game Grid */
.w85e5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.w85e5-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w85e5-game-item:hover {
    transform: scale(1.05);
}

.w85e5-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px var(--w85e5-shadow);
}

.w85e5-game-name {
    font-size: 1rem;
    color: var(--w85e5-dark);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w85e5-game-link {
    text-decoration: none;
    color: inherit;
}

/* Category Section */
.w85e5-category {
    margin-bottom: 2rem;
}

.w85e5-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--w85e5-dark);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--w85e5-primary);
}

/* Footer */
.w85e5-footer {
    background: var(--w85e5-dark);
    color: var(--w85e5-white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.w85e5-footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.w85e5-footer-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--w85e5-gray);
}

.w85e5-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.w85e5-footer-link {
    color: var(--w85e5-secondary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.w85e5-footer-link:hover {
    color: var(--w85e5-primary);
}

.w85e5-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.w85e5-partner-logo {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w85e5-partner-logo:hover {
    opacity: 1;
}

.w85e5-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--w85e5-gray);
    margin-top: 2rem;
}

/* Mobile Bottom Navigation */
.w85e5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--w85e5-dark);
    border-top: 2px solid var(--w85e5-primary);
    z-index: 1000;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px var(--w85e5-shadow);
}

@media (min-width: 769px) {
    .w85e5-bottom-nav {
        display: none;
    }
}

.w85e5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--w85e5-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.w85e5-nav-item:hover {
    color: var(--w85e5-secondary);
    transform: scale(1.1);
}

.w85e5-nav-item.active {
    color: var(--w85e5-primary);
}

.w85e5-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.w85e5-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.w85e5-text-center {
    text-align: center;
}

.w85e5-text-primary {
    color: var(--w85e5-primary);
}

.w85e5-mt-1 { margin-top: 1rem; }
.w85e5-mt-2 { margin-top: 2rem; }
.w85e5-mb-1 { margin-bottom: 1rem; }
.w85e5-mb-2 { margin-bottom: 2rem; }

.w85e5-p-1 { padding: 1rem; }
.w85e5-p-2 { padding: 2rem; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.w85e5-fade-in {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .w85e5-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .w85e5-game-icon {
        border-radius: 6px;
    }

    .w85e5-section-title {
        font-size: 1.8rem;
    }
}
