/**
 * superph22.css - Main stylesheet for superph22.click
 * All classes use prefix "wac1c-" to avoid conflicts
 * Color palette: #2E4057 | #FFB347 | #E0E0E0
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --wac1c-primary: #2E4057;
    --wac1c-secondary: #FFB347;
    --wac1c-accent: #E0E0E0;
    --wac1c-bg: #1a2535;
    --wac1c-bg-light: #243447;
    --wac1c-text: #E0E0E0;
    --wac1c-text-dark: #2E4057;
    --wac1c-border: #3d5270;
    --wac1c-success: #4CAF50;
    --wac1c-warning: #FF9800;
    --wac1c-gradient: linear-gradient(135deg, #2E4057 0%, #1a2535 100%);
    --wac1c-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --wac1c-radius: 8px;
    --wac1c-radius-lg: 12px;
}

/* Reset and Base */
*, *::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.4rem;
    line-height: 1.5;
    color: var(--wac1c-text);
    background-color: var(--wac1c-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--wac1c-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffc970;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.wac1c-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.wac1c-wrapper {
    padding: 1.6rem 0;
}

/* Header */
.wac1c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--wac1c-gradient);
    padding: 0.8rem 1.2rem;
    box-shadow: var(--wac1c-shadow);
    transition: box-shadow 0.3s ease;
}

.wac1c-header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.wac1c-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.wac1c-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wac1c-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.wac1c-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wac1c-secondary);
}

.wac1c-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.wac1c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--wac1c-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
    min-width: 44px;
}

.wac1c-btn-primary {
    background: var(--wac1c-secondary);
    color: var(--wac1c-text-dark);
}

.wac1c-btn-primary:hover {
    background: #ffc970;
    transform: translateY(-1px);
}

.wac1c-btn-secondary {
    background: transparent;
    color: var(--wac1c-text);
    border: 1px solid var(--wac1c-secondary);
}

.wac1c-btn-secondary:hover {
    background: var(--wac1c-secondary);
    color: var(--wac1c-text-dark);
}

.wac1c-menu-toggle {
    background: transparent;
    border: none;
    color: var(--wac1c-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.wac1c-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wac1c-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.6rem;
}

.wac1c-menu-active {
    right: 0;
}

.wac1c-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;
}

.wac1c-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wac1c-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wac1c-border);
}

.wac1c-menu-close {
    background: transparent;
    border: none;
    color: var(--wac1c-text);
    font-size: 2.4rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.wac1c-menu-nav {
    list-style: none;
}

.wac1c-menu-nav li {
    margin-bottom: 0.4rem;
}

.wac1c-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1rem;
    color: var(--wac1c-text);
    font-size: 1.4rem;
    border-radius: var(--wac1c-radius);
    transition: all 0.3s ease;
}

.wac1c-menu-nav a:hover {
    background: var(--wac1c-primary);
    color: var(--wac1c-secondary);
}

.wac1c-menu-nav i {
    font-size: 1.8rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
main {
    padding-top: 60px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero/Carousel Section */
.wac1c-hero {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.wac1c-slides {
    position: relative;
    height: 100%;
}

.wac1c-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.wac1c-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.wac1c-section {
    padding: 2rem 1.2rem;
}

.wac1c-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wac1c-secondary);
    margin-bottom: 1.2rem;
    text-align: center;
}

.wac1c-section-subtitle {
    font-size: 1.4rem;
    color: var(--wac1c-text);
    text-align: center;
    margin-bottom: 1.6rem;
}

/* Game Grid */
.wac1c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.wac1c-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wac1c-game-item:hover {
    transform: scale(1.05);
}

.wac1c-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--wac1c-radius);
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.wac1c-game-name {
    font-size: 1rem;
    color: var(--wac1c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.wac1c-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.wac1c-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--wac1c-secondary);
}

/* Card Styles */
.wac1c-card {
    background: var(--wac1c-bg-light);
    border-radius: var(--wac1c-radius-lg);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
}

.wac1c-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wac1c-secondary);
    margin-bottom: 0.8rem;
}

.wac1c-card-text {
    font-size: 1.2rem;
    color: var(--wac1c-text);
    line-height: 1.6;
}

/* List Styles */
.wac1c-list {
    list-style: none;
}

.wac1c-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--wac1c-border);
}

.wac1c-list-item:last-child {
    border-bottom: none;
}

.wac1c-list-icon {
    color: var(--wac1c-secondary);
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* Footer */
.wac1c-footer {
    background: var(--wac1c-gradient);
    padding: 2rem 1.2rem;
    margin-top: 2rem;
}

.wac1c-footer-brand {
    text-align: center;
    margin-bottom: 1.6rem;
}

.wac1c-footer-desc {
    font-size: 1.2rem;
    color: var(--wac1c-accent);
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

.wac1c-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.wac1c-footer-link {
    font-size: 1.1rem;
    color: var(--wac1c-accent);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--wac1c-radius);
    transition: all 0.3s ease;
}

.wac1c-footer-link:hover {
    background: var(--wac1c-secondary);
    color: var(--wac1c-text-dark);
}

.wac1c-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.wac1c-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--wac1c-accent);
    opacity: 0.8;
}

/* Bottom Navigation */
.wac1c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--wac1c-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .wac1c-bottom-nav {
        display: none;
    }
}

.wac1c-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--wac1c-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.wac1c-nav-item:hover,
.wac1c-nav-item.active {
    color: var(--wac1c-secondary);
}

.wac1c-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.wac1c-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Links */
.wac1c-promo-text {
    font-weight: 600;
    color: var(--wac1c-secondary);
    cursor: pointer;
}

.wac1c-promo-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 179, 71, 0.2);
    color: var(--wac1c-secondary);
    border-radius: var(--wac1c-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wac1c-promo-link:hover {
    background: var(--wac1c-secondary);
    color: var(--wac1c-text-dark);
}

/* Responsive Utilities */
@media (max-width: 430px) {
    .wac1c-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .wac1c-game-name {
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wac1c-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Accessibility */
.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;
}
