/**
 * Pinoy Time - Core CSS Stylesheet
 * Website: pinoytime.club
 * Prefix: v495-
 * Color Scheme: #4169E1 | #4682B4 | #B03060 | #FF4500 | #2C3E50
 */

/* Root variables */
:root {
    --v495-primary: #4169E1;
    --v495-secondary: #4682B4;
    --v495-accent: #FF4500;
    --v495-highlight: #B03060;
    --v495-dark: #2C3E50;
    --v495-bg-dark: #1a2530;
    --v495-bg-card: #243447;
    --v495-text-light: #ffffff;
    --v495-text-muted: #a0aec0;
    --v495-border: #3d5a73;
    --v495-gradient-start: #4169E1;
    --v495-gradient-end: #4682B4;
    --v495-success: #48bb78;
    --v495-warning: #ed8936;
    --v495-header-height: 56px;
    --v495-bottom-nav-height: 64px;
}

/* Reset and base styles */
* {
    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;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--v495-bg-dark);
    color: var(--v495-text-light);
    min-height: 100vh;
}

/* Container and wrapper */
.v495-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.v495-wrapper {
    padding-top: var(--v495-header-height);
    padding-bottom: 80px;
}

/* Header styles */
.v495-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v495-header-height);
    background: linear-gradient(135deg, var(--v495-dark) 0%, var(--v495-bg-card) 100%);
    border-bottom: 2px solid var(--v495-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.v495-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.v495-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.v495-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v495-text-light);
    background: linear-gradient(90deg, var(--v495-primary), var(--v495-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v495-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v495-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 36px;
}

.v495-btn-primary {
    background: linear-gradient(135deg, var(--v495-primary), var(--v495-secondary));
    color: var(--v495-text-light);
}

.v495-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

.v495-btn-accent {
    background: linear-gradient(135deg, var(--v495-accent), var(--v495-highlight));
    color: var(--v495-text-light);
}

.v495-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.v495-btn-outline {
    background: transparent;
    border: 2px solid var(--v495-primary);
    color: var(--v495-primary);
}

.v495-btn-outline:hover {
    background: var(--v495-primary);
    color: var(--v495-text-light);
}

/* Menu toggle button */
.v495-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.v495-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--v495-text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile menu */
.v495-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v495-bg-card);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.v495-menu-active {
    right: 0;
}

.v495-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v495-overlay-active {
    opacity: 1;
    visibility: visible;
}

.v495-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--v495-border);
}

.v495-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v495-bg-dark);
    border: none;
    border-radius: 50%;
    color: var(--v495-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.v495-menu-nav {
    list-style: none;
}

.v495-menu-nav li {
    margin-bottom: 0.5rem;
}

.v495-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1rem;
    color: var(--v495-text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.5rem;
}

.v495-menu-nav a:hover {
    background: var(--v495-primary);
    color: var(--v495-text-light);
}

.v495-menu-nav i {
    width: 24px;
    text-align: center;
    font-size: 1.8rem;
}

/* Hero slider */
.v495-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 1.5rem;
}

.v495-slide {
    display: none;
    cursor: pointer;
}

.v495-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.v495-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v495-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v495-dot-active {
    background: var(--v495-accent);
    transform: scale(1.2);
}

/* Section styles */
.v495-section {
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.v495-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v495-text-light);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v495-section-title i {
    color: var(--v495-accent);
}

/* Game grid */
.v495-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.v495-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--v495-bg-card);
    border-radius: 10px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.v495-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--v495-primary);
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.3);
}

.v495-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.v495-game-card span {
    font-size: 1.1rem;
    color: var(--v495-text-light);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category tabs */
.v495-category-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.v495-category-tabs::-webkit-scrollbar {
    display: none;
}

.v495-cat-tab {
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    background: var(--v495-bg-card);
    border: 1px solid var(--v495-border);
    border-radius: 20px;
    color: var(--v495-text-muted);
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v495-cat-tab:hover,
.v495-cat-tab.v495-active {
    background: var(--v495-primary);
    border-color: var(--v495-primary);
    color: var(--v495-text-light);
}

/* Card styles */
.v495-card {
    background: var(--v495-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--v495-border);
}

.v495-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v495-text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.v495-card-content {
    color: var(--v495-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Feature list */
.v495-feature-list {
    list-style: none;
}

.v495-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--v495-border);
}

.v495-feature-list li:last-child {
    border-bottom: none;
}

.v495-feature-list i {
    color: var(--v495-accent);
    font-size: 2rem;
    flex-shrink: 0;
}

/* Promo links */
.v495-promo-link {
    color: var(--v495-accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.v495-promo-link:hover {
    color: var(--v495-primary);
    text-decoration: underline;
}

/* Footer styles */
.v495-footer {
    background: var(--v495-dark);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 2px solid var(--v495-primary);
}

.v495-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v495-footer-links a {
    color: var(--v495-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.4rem 0.8rem;
    transition: color 0.2s ease;
}

.v495-footer-links a:hover {
    color: var(--v495-primary);
}

.v495-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.v495-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.v495-partners img:hover {
    opacity: 1;
}

.v495-copyright {
    text-align: center;
    color: var(--v495-text-muted);
    font-size: 1.2rem;
}

/* Bottom navigation */
.v495-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--v495-bottom-nav-height);
    background: linear-gradient(180deg, var(--v495-dark) 0%, #1a2530 100%);
    border-top: 2px solid var(--v495-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.v495-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--v495-text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
}

.v495-nav-item:hover,
.v495-nav-item.v495-active {
    color: var(--v495-accent);
    background: rgba(255, 69, 0, 0.1);
}

.v495-nav-item i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.v495-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Desktop hide bottom nav */
@media (min-width: 769px) {
    .v495-bottom-nav {
        display: none;
    }

    .v495-wrapper {
        padding-bottom: 2rem;
    }
}

/* Mobile padding for bottom nav */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .v495-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v495-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
    }
}

/* Utility classes */
.v495-text-center { text-align: center; }
.v495-text-left { text-align: left; }
.v495-text-right { text-align: right; }
.v495-mb-1 { margin-bottom: 1rem; }
.v495-mb-2 { margin-bottom: 2rem; }
.v495-mt-1 { margin-top: 1rem; }
.v495-mt-2 { margin-top: 2rem; }
.v495-hidden { display: none; }
.v495-flex { display: flex; }
.v495-flex-center { display: flex; align-items: center; justify-content: center; }

/* Animation */
@keyframes v495-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.v495-pulse {
    animation: v495-pulse 2s ease-in-out infinite;
}

/* Badge styles */
.v495-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--v495-primary);
    color: var(--v495-text-light);
}

.v495-badge-hot {
    background: var(--v495-accent);
}

.v495-badge-new {
    background: var(--v495-success);
}

/* List styles */
.v495-list {
    list-style: none;
    padding: 0;
}

.v495-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--v495-border);
}

.v495-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--v495-primary);
}

/* FAQ accordion */
.v495-faq-item {
    background: var(--v495-bg-card);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.v495-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--v495-text-light);
}

.v495-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--v495-text-muted);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* RTP stats */
.v495-rtp-bar {
    height: 8px;
    background: var(--v495-bg-dark);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.v495-rtp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--v495-primary), var(--v495-success));
    border-radius: 4px;
}
