/**
 * phlein.club - Main Stylesheet
 * Prefix: w4d58-
 * Colors: #0E1621 (bg), #5F9EA0 (accent), #6495ED (highlight)
 */

:root {
    --w4d58-primary: #5F9EA0;
    --w4d58-secondary: #6495ED;
    --w4d58-bg: #0E1621;
    --w4d58-bg-light: #1a2535;
    --w4d58-bg-card: #162030;
    --w4d58-text: #ffffff;
    --w4d58-text-muted: #a0aec0;
    --w4d58-border: #2d3748;
    --w4d58-success: #48bb78;
    --w4d58-warning: #ed8936;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
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; color: var(--w4d58-text); background-color: var(--w4d58-bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }

.w4d58-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.w4d58-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: linear-gradient(180deg, var(--w4d58-bg) 0%, rgba(14, 22, 33, 0.95) 100%); border-bottom: 1px solid var(--w4d58-border); padding: 1rem 0; }
.w4d58-header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 430px; margin: 0 auto; padding: 0 1.5rem; }
.w4d58-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.w4d58-logo img { width: 32px; height: 32px; border-radius: 6px; }
.w4d58-logo-text { font-size: 2rem; font-weight: 700; color: var(--w4d58-text); letter-spacing: -0.5px; }
.w4d58-logo-text span { color: var(--w4d58-primary); }
.w4d58-header-actions { display: flex; align-items: center; gap: 0.8rem; }

.w4d58-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.6rem; font-size: 1.3rem; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.w4d58-btn-primary { background: linear-gradient(135deg, var(--w4d58-primary) 0%, #4a8a8c 100%); color: var(--w4d58-text); }
.w4d58-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(95, 158, 160, 0.4); }
.w4d58-btn-secondary { background: var(--w4d58-secondary); color: var(--w4d58-text); }
.w4d58-btn-secondary:hover { background: #5a8de8; }
.w4d58-menu-btn { background: transparent; border: none; color: var(--w4d58-text); font-size: 2.4rem; cursor: pointer; padding: 0.5rem; }

/* Mobile Menu */
.w4d58-mobile-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: var(--w4d58-bg-light); z-index: 9999; transition: right 0.3s ease; padding: 2rem; overflow-y: auto; }
.w4d58-menu-active { right: 0; }
.w4d58-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); z-index: 9998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.w4d58-overlay-active { opacity: 1; visibility: visible; }
.w4d58-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--w4d58-border); }
.w4d58-menu-title { font-size: 1.8rem; font-weight: 700; color: var(--w4d58-primary); }
.w4d58-menu-close { background: none; border: none; color: var(--w4d58-text); font-size: 2.4rem; cursor: pointer; }
.w4d58-menu-nav { list-style: none; }
.w4d58-menu-nav li { margin-bottom: 0.5rem; }
.w4d58-menu-nav a { display: block; padding: 1.2rem 1rem; color: var(--w4d58-text); text-decoration: none; font-size: 1.5rem; border-radius: 8px; transition: background 0.2s ease; }
.w4d58-menu-nav a:hover { background: var(--w4d58-bg-card); color: var(--w4d58-primary); }

/* Main Content */
main { padding-top: 70px; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Hero Carousel */
.w4d58-carousel { position: relative; width: 100%; height: 200px; overflow: hidden; margin-bottom: 2rem; }
.w4d58-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; cursor: pointer; }
.w4d58-slide-active { opacity: 1; }
.w4d58-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Section Styles */
.w4d58-section { padding: 2rem 1.5rem; margin-bottom: 1.5rem; }
.w4d58-section-title { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--w4d58-text); display: flex; align-items: center; gap: 0.8rem; }
.w4d58-section-title i { color: var(--w4d58-primary); }

/* Game Grid */
.w4d58-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.w4d58-game-item { text-align: center; cursor: pointer; transition: transform 0.2s ease; }
.w4d58-game-item:hover { transform: translateY(-3px); }
.w4d58-game-img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; margin-bottom: 0.5rem; border: 2px solid var(--w4d58-border); transition: border-color 0.2s ease; }
.w4d58-game-item:hover .w4d58-game-img { border-color: var(--w4d58-primary); }
.w4d58-game-name { font-size: 1.1rem; color: var(--w4d58-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Category Badge */
.w4d58-category-badge { display: inline-block; padding: 0.3rem 1rem; background: var(--w4d58-bg-card); border-radius: 20px; font-size: 1.3rem; color: var(--w4d58-primary); margin-bottom: 1rem; border: 1px solid var(--w4d58-border); }

/* Feature Cards */
.w4d58-feature-card { background: var(--w4d58-bg-card); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; border: 1px solid var(--w4d58-border); }
.w4d58-feature-title { font-size: 1.6rem; font-weight: 600; margin-bottom: 0.8rem; color: var(--w4d58-primary); }
.w4d58-feature-text { font-size: 1.4rem; color: var(--w4d58-text-muted); line-height: 1.6; }

/* Promo Button */
.w4d58-promo-btn { display: inline-flex; align-items: center; gap: 0.8rem; padding: 1.2rem 2rem; background: linear-gradient(135deg, var(--w4d58-primary) 0%, var(--w4d58-secondary) 100%); color: var(--w4d58-text); font-size: 1.5rem; font-weight: 700; border-radius: 10px; text-decoration: none; cursor: pointer; transition: all 0.3s ease; border: none; }
.w4d58-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(95, 158, 160, 0.5); }

/* Text Link */
.w4d58-text-link { color: var(--w4d58-primary); font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.w4d58-text-link:hover { color: var(--w4d58-secondary); text-decoration: underline; }

/* Footer */
.w4d58-footer { background: var(--w4d58-bg-light); padding: 2rem 1.5rem; margin-top: 2rem; border-top: 1px solid var(--w4d58-border); }
.w4d58-footer-section { margin-bottom: 2rem; }
.w4d58-footer-title { font-size: 1.6rem; font-weight: 600; color: var(--w4d58-primary); margin-bottom: 1rem; }
.w4d58-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.w4d58-footer-links a { color: var(--w4d58-text-muted); text-decoration: none; font-size: 1.3rem; transition: color 0.2s ease; }
.w4d58-footer-links a:hover { color: var(--w4d58-primary); }
.w4d58-partners { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1.5rem 0; }
.w4d58-partners img { width: 40px; height: 40px; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: all 0.2s ease; }
.w4d58-partners img:hover { filter: grayscale(0); opacity: 1; }
.w4d58-copyright { text-align: center; font-size: 1.2rem; color: var(--w4d58-text-muted); padding-top: 1.5rem; border-top: 1px solid var(--w4d58-border); }

/* Mobile Bottom Navigation */
.w4d58-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: linear-gradient(180deg, rgba(26, 37, 53, 0.98) 0%, var(--w4d58-bg) 100%); border-top: 1px solid var(--w4d58-border); padding: 0.5rem 0; display: flex; justify-content: space-around; align-items: center; height: 64px; }
.w4d58-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; min-height: 60px; text-decoration: none; color: var(--w4d58-text-muted); transition: all 0.2s ease; cursor: pointer; background: none; border: none; }
.w4d58-nav-item:hover, .w4d58-nav-item-active { color: var(--w4d58-primary); transform: scale(1.1); }
.w4d58-nav-item i { font-size: 24px; margin-bottom: 4px; }
.w4d58-nav-item span { font-size: 11px; font-weight: 500; }
@media (min-width: 769px) { .w4d58-bottom-nav { display: none; } }

/* Responsive */
@media (max-width: 430px) { .w4d58-game-grid { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; } .w4d58-game-name { font-size: 1rem; } }

/* Animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.w4d58-animate { animation: fadeIn 0.5s ease forwards; }

/* Utility */
.w4d58-text-center { text-align: center; }
.w4d58-mb-1 { margin-bottom: 1rem; }
.w4d58-mb-2 { margin-bottom: 2rem; }
.w4d58-mt-2 { margin-top: 2rem; }
.w4d58-hidden { display: none; }
