/* LuckyGamePH CSS Design - Mobile First */
/* CSS Class Prefix: v358- */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background-color: #F8F8FF;
    overflow-x: hidden;
}

/* CSS Variables for Color Scheme */
:root {
    --v358-color-primary: #BDC3C7;
    --v358-color-secondary: #F8F8FF;
    --v358-color-accent: #FFCC02;
    --v358-color-purple: #6A5ACD;
    --v358-color-dark: #2C2C2C;
    --v358-color-white: #FFFFFF;
    --v358-color-gray: #666666;
    --v358-color-light-gray: #E5E5E5;
}

/* Typography */
.v358-h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v358-color-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.v358-h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--v358-color-dark);
    margin-bottom: 0.75rem;
}

.v358-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--v358-color-dark);
    margin-bottom: 0.5rem;
}

.v358-text {
    font-size: 0.9rem;
    color: var(--v358-color-gray);
    line-height: 1.5;
}

.v358-text-small {
    font-size: 0.8rem;
    color: var(--v358-color-gray);
}

/* Header Styles */
.v358-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v358-color-purple) 0%, var(--v358-color-dark) 100%);
    z-index: 1000;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.v358-header-scrolled {
    background: linear-gradient(135deg, var(--v358-color-purple) 0%, var(--v358-color-dark) 90%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.v358-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.v358-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v358-color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v358-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--v358-color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v358-color-dark);
    font-weight: bold;
}

.v358-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.v358-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.v358-btn-primary {
    background: var(--v358-color-accent);
    color: var(--v358-color-dark);
}

.v358-btn-primary:hover {
    background: #FFD633;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,204,2,0.3);
}

.v358-btn-secondary {
    background: transparent;
    color: var(--v358-color-white);
    border: 2px solid var(--v358-color-white);
}

.v358-btn-secondary:hover {
    background: var(--v358-color-white);
    color: var(--v358-color-purple);
}

.v358-mobile-menu-btn {
    background: none;
    border: none;
    color: var(--v358-color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
}

.v358-mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Navigation */
.v358-nav {
    display: none;
}

.v358-nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.v358-nav-link {
    color: var(--v358-color-white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.v358-nav-link:hover {
    color: var(--v358-color-accent);
}

.v358-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--v358-color-accent);
    transition: width 0.3s ease;
}

.v358-nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.v358-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v358-color-white);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.v358-mobile-menu-open {
    right: 0;
}

.v358-mobile-header {
    background: linear-gradient(135deg, var(--v358-color-purple) 0%, var(--v358-color-dark) 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v358-mobile-menu-close {
    background: none;
    border: none;
    color: var(--v358-color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.v358-mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
}

.v358-mobile-nav-item {
    border-bottom: 1px solid var(--v358-color-light-gray);
}

.v358-mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--v358-color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.v358-mobile-nav-link:hover {
    background: var(--v358-color-secondary);
    color: var(--v358-color-purple);
}

.v358-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v358-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.v358-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.v358-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.v358-section {
    padding: 2rem 0;
}

/* Carousel */
.v358-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.v358-carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.v358-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v358-carousel-slide-active {
    opacity: 1;
}

.v358-carousel-content {
    text-align: center;
    color: var(--v358-color-white);
    background: rgba(0,0,0,0.6);
    padding: 1.5rem;
    border-radius: 0.5rem;
    max-width: 80%;
}

.v358-carousel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.v358-carousel-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.v358-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v358-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v358-carousel-indicator-active {
    background: var(--v358-color-accent);
    transform: scale(1.2);
}

/* Game Grid */
.v358-games-section {
    margin-bottom: 3rem;
}

.v358-games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.v358-games-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v358-color-dark);
}

.v358-category-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.v358-category-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--v358-color-light-gray);
    background: var(--v358-color-white);
    color: var(--v358-color-gray);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.v358-category-btn:hover {
    border-color: var(--v358-color-purple);
    color: var(--v358-color-purple);
}

.v358-category-btn-active {
    background: var(--v358-color-purple);
    border-color: var(--v358-color-purple);
    color: var(--v358-color-white);
}

.v358-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.v358-game-card {
    background: var(--v358-color-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.v358-game-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.v358-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.v358-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.v358-game-card:hover .v358-game-image {
    transform: scale(1.05);
}

.v358-game-info {
    padding: 0.75rem;
}

.v358-game-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--v358-color-dark);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v358-game-type {
    font-size: 0.75rem;
    color: var(--v358-color-gray);
    text-transform: capitalize;
}

/* Content Sections */
.v358-content-section {
    background: var(--v358-color-white);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.v358-content-section-alt {
    background: linear-gradient(135deg, var(--v358-color-secondary) 0%, var(--v358-color-white) 100%);
}

.v358-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.v358-feature-card {
    background: var(--v358-color-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--v358-color-purple);
}

.v358-feature-icon {
    font-size: 2rem;
    color: var(--v358-color-purple);
    margin-bottom: 1rem;
}

.v358-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--v358-color-dark);
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.v358-faq-item {
    border: 1px solid var(--v358-color-light-gray);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.v358-faq-question {
    padding: 1rem;
    background: var(--v358-color-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.v358-faq-question:hover {
    background: var(--v358-color-primary);
}

.v358-faq-question-text {
    font-weight: 600;
    color: var(--v358-color-dark);
}

.v358-faq-icon {
    transition: transform 0.3s ease;
    color: var(--v358-color-purple);
}

.v358-faq-answer {
    padding: 1rem;
    background: var(--v358-color-white);
    display: none;
}

.v358-faq-item-active .v358-faq-answer {
    display: block;
}

.v358-faq-item-active .v358-faq-icon {
    transform: rotate(180deg);
}

/* Footer */
.v358-footer {
    background: var(--v358-color-dark);
    color: var(--v358-color-white);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.v358-footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.v358-footer-section h3 {
    color: var(--v358-color-accent);
    margin-bottom: 1rem;
}

.v358-footer-links {
    list-style: none;
}

.v358-footer-links li {
    margin-bottom: 0.5rem;
}

.v358-footer-links a {
    color: var(--v358-color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.v358-footer-links a:hover {
    color: var(--v358-color-accent);
}

.v358-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: var(--v358-color-gray);
}

/* Bottom Navigation */
.v358-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v358-color-purple) 0%, var(--v358-color-dark) 100%);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.v358-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.v358-bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    min-width: 60px;
    transition: all 0.3s ease;
}

.v358-bottom-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.v358-bottom-nav-item:hover a {
    color: var(--v358-color-white);
    transform: translateY(-2px);
}

.v358-bottom-nav-item-active a {
    color: var(--v358-color-accent);
}

.v358-bottom-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.v358-bottom-nav-text {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 769px) {
    .v358-bottom-nav {
        display: none;
    }

    .v358-main {
        padding-bottom: 0;
    }

    .v358-nav {
        display: block;
    }

    .v358-mobile-menu-btn {
        display: none;
    }

    .v358-carousel {
        height: 300px;
    }

    .v358-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .v358-content-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .v358-footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .v358-main {
        padding-bottom: 80px;
    }

    .v358-h1 {
        font-size: 1.5rem;
    }

    .v358-carousel {
        height: 180px;
        margin: 1rem 0;
    }

    .v358-carousel-title {
        font-size: 1.2rem;
    }

    .v358-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .v358-game-image {
        height: 100px;
    }

    .v358-content-section {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Utility Classes */
.v358-text-center {
    text-align: center;
}

.v358-text-accent {
    color: var(--v358-color-accent);
}

.v358-text-purple {
    color: var(--v358-color-purple);
}

.v358-mb-1 {
    margin-bottom: 0.5rem;
}

.v358-mb-2 {
    margin-bottom: 1rem;
}

.v358-mb-3 {
    margin-bottom: 1.5rem;
}

.v358-mt-1 {
    margin-top: 0.5rem;
}

.v358-mt-2 {
    margin-top: 1rem;
}

.v358-mt-3 {
    margin-top: 1.5rem;
}

/* Loading States */
.v358-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v358-lazy-loaded {
    opacity: 1;
}

/* Animations */
@keyframes v358-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v358-fade-in {
    animation: v358-fadeIn 0.6s ease forwards;
}

/* Accessibility */
.v358-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.v358-btn:focus,
.v358-nav-link:focus,
.v358-category-btn:focus {
    outline: 2px solid var(--v358-color-accent);
    outline-offset: 2px;
}