/**
 * VIPH - Main Stylesheet
 * Website: viph.club
 * All classes use prefix: w65d4-
 */

/* CSS Variables */
:root {
    --w65d4-primary: #CD853F;
    --w65d4-secondary: #D2691E;
    --w65d4-bg-dark: #0D1117;
    --w65d4-bg-light: #FDF5E6;
    --w65d4-text-light: #F0F8FF;
    --w65d4-text-gray: #A9A9A9;
    --w65d4-accent: #CD853F;
    --w65d4-gradient: linear-gradient(135deg, #CD853F 0%, #D2691E 100%);
}

/* Base Reset */
* {
    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;
    background-color: var(--w65d4-bg-dark);
    color: var(--w65d4-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.w65d4-container {
    width: 100%;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.w65d4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(13,17,23,0.98) 0%, rgba(13,17,23,0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(205,133,63,0.3);
    transition: all 0.3s ease;
}

.w65d4-header-scrolled {
    background: rgba(13,17,23,0.99);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.w65d4-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w65d4-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.w65d4-logo img {
    width: 28px;
    height: 28px;
}

.w65d4-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w65d4-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w65d4-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.w65d4-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
}

.w65d4-btn-primary {
    background: var(--w65d4-gradient);
    color: #fff;
}

.w65d4-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(205,133,63,0.4);
}

.w65d4-btn-outline {
    background: transparent;
    color: var(--w65d4-primary);
    border: 1px solid var(--w65d4-primary);
}

.w65d4-btn-outline:hover {
    background: var(--w65d4-primary);
    color: #fff;
}

.w65d4-menu-toggle {
    background: none;
    border: none;
    color: var(--w65d4-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.w65d4-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--w65d4-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    border-left: 1px solid rgba(205,133,63,0.3);
}

.w65d4-menu-active {
    right: 0;
}

.w65d4-mobile-menu ul {
    list-style: none;
}

.w65d4-mobile-menu li {
    margin-bottom: 1rem;
}

.w65d4-mobile-menu a {
    color: var(--w65d4-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.w65d4-mobile-menu a:hover {
    background: rgba(205,133,63,0.15);
    color: var(--w65d4-primary);
}

.w65d4-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w65d4-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Carousel */
.w65d4-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-top: 52px;
}

.w65d4-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.w65d4-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w65d4-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.w65d4-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w65d4-primary);
}

/* Main Content */
main {
    padding-bottom: 80px;
}

.w65d4-section {
    padding: 1.5rem 1rem;
}

.w65d4-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w65d4-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w65d4-section-title i {
    font-size: 1.6rem;
}

/* Game Grid */
.w65d4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.w65d4-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.w65d4-game-item:hover {
    transform: scale(1.05);
}

.w65d4-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(205,133,63,0.3);
}

.w65d4-game-name {
    font-size: 1rem;
    color: var(--w65d4-text-light);
    margin-top: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Tabs */
.w65d4-category-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}

.w65d4-category-tab {
    padding: 0.5rem 1rem;
    background: rgba(205,133,63,0.15);
    border-radius: 20px;
    font-size: 1.2rem;
    color: var(--w65d4-text-light);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w65d4-category-tab:hover,
.w65d4-category-tab.active {
    background: var(--w65d4-primary);
    color: #fff;
}

/* Info Cards */
.w65d4-info-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(205,133,63,0.2);
}

.w65d4-info-card h3 {
    font-size: 1.4rem;
    color: var(--w65d4-primary);
    margin-bottom: 0.6rem;
}

.w65d4-info-card p {
    font-size: 1.2rem;
    color: var(--w65d4-text-gray);
    line-height: 1.6;
}

.w65d4-info-card a {
    color: var(--w65d4-primary);
    text-decoration: underline;
}

/* Promo Banner */
.w65d4-promo-banner {
    background: var(--w65d4-gradient);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.w65d4-promo-banner h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.w65d4-promo-banner p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

/* RTP Stats */
.w65d4-rtp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.w65d4-rtp-item {
    background: rgba(205,133,63,0.1);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
}

.w65d4-rtp-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w65d4-primary);
}

.w65d4-rtp-label {
    font-size: 1rem;
    color: var(--w65d4-text-gray);
}

/* Features List */
.w65d4-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.w65d4-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.w65d4-feature-icon {
    width: 36px;
    height: 36px;
    background: var(--w65d4-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.w65d4-feature-text h4 {
    font-size: 1.3rem;
    color: var(--w65d4-text-light);
}

.w65d4-feature-text p {
    font-size: 1.1rem;
    color: var(--w65d4-text-gray);
}

/* Footer */
.w65d4-footer {
    background: rgba(0,0,0,0.4);
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(205,133,63,0.2);
}

.w65d4-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.w65d4-footer-links a {
    color: var(--w65d4-text-gray);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.w65d4-footer-links a:hover {
    color: var(--w65d4-primary);
}

.w65d4-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin: 1rem 0;
}

.w65d4-partners img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w65d4-partners img:hover {
    opacity: 1;
}

.w65d4-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--w65d4-text-gray);
    margin-top: 1rem;
}

/* Bottom Navigation */
.w65d4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(13,17,23,0.98) 0%, #0D1117 100%);
    border-top: 1px solid rgba(205,133,63,0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    height: 60px;
}

.w65d4-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    color: var(--w65d4-text-gray);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.w65d4-nav-item:hover,
.w65d4-nav-item.active {
    color: var(--w65d4-primary);
    transform: scale(1.1);
}

.w65d4-nav-item i,
.w65d4-nav-item span.material-icons-outlined {
    font-size: 22px;
    margin-bottom: 2px;
}

.w65d4-nav-item span.ion-icon {
    font-size: 22px;
}

.w65d4-nav-item .bi {
    font-size: 20px;
}

.w65d4-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .w65d4-bottom-nav {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Link styles */
.w65d4-text-link {
    color: var(--w65d4-primary);
    text-decoration: none;
    font-weight: 500;
}

.w65d4-text-link:hover {
    text-decoration: underline;
}

/* Promo link highlight */
.w65d4-promo-link {
    color: var(--w65d4-primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w65d4-promo-link:hover {
    color: var(--w65d4-secondary);
    text-shadow: 0 0 10px rgba(205,133,63,0.5);
}

/* Achievements */
.w65d4-achievement {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(205,133,63,0.1);
    border-radius: 8px;
    margin-bottom: 0.6rem;
}

.w65d4-achievement-icon {
    font-size: 1.8rem;
}

.w65d4-achievement-text {
    font-size: 1.1rem;
    color: var(--w65d4-text-light);
}

/* Tricks/Tips */
.w65d4-trick-item {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.w65d4-trick-number {
    width: 24px;
    height: 24px;
    background: var(--w65d4-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.w65d4-trick-content {
    font-size: 1.2rem;
    color: var(--w65d4-text-gray);
    line-height: 1.5;
}

/* Play Button */
.w65d4-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--w65d4-gradient);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.w65d4-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(205,133,63,0.5);
}

/* FAQ Accordion */
.w65d4-faq-item {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.w65d4-faq-question {
    padding: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--w65d4-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w65d4-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.2rem;
    color: var(--w65d4-text-gray);
    line-height: 1.6;
}

/* Security badges */
.w65d4-security-badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.w65d4-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(205,133,63,0.15);
    border-radius: 20px;
    font-size: 1.1rem;
    color: var(--w65d4-text-light);
}

.w65d4-badge i {
    color: var(--w65d4-primary);
}
