/* ==========================================================================
   DEVICE SELECTOR & MOBILE PORTAL STYLES (NEON MATRIX)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Device Selector View (Landing)
   -------------------------------------------------------------------------- */
.device-selector-view {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.ds-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #00f0ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.ds-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.ds-title span {
    background: linear-gradient(135deg, #00f0ff 0%, #ff007f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ds-desc {
    font-size: 1.1rem;
    color: #8a94a6;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.ds-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ds-card {
    background: rgba(18, 18, 32, 0.75);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ds-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00f0ff;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
    background: rgba(28, 28, 52, 0.9);
}

.ds-card.mobile-card:hover {
    border-color: #ff007f;
    box-shadow: 0 0 35px rgba(255, 0, 127, 0.25);
}

.ds-card-recommended {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff007f, #7000ff);
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.4);
    letter-spacing: 1px;
}

.ds-icon-wrapper {
    font-size: 4.5rem;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 15px rgba(0, 240, 255, 0.3));
    transition: transform 0.3s ease;
}

.ds-card:hover .ds-icon-wrapper {
    transform: scale(1.15) rotate(-5deg);
}

.ds-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.ds-card-sub {
    font-size: 0.9rem;
    color: #00f0ff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ds-card.mobile-card .ds-card-sub {
    color: #ff007f;
}

.ds-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem 0;
    text-align: left;
    width: 100%;
}

.ds-card-features li {
    font-size: 0.88rem;
    color: #8a94a6;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ds-btn-select {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #00f0ff, #7000ff);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.ds-card.mobile-card .ds-btn-select {
    background: linear-gradient(135deg, #ff007f, #ffb700);
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
}

.ds-card:hover .ds-btn-select {
    transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   2. Mobile Portal View (Smartphone Optimized)
   -------------------------------------------------------------------------- */
.mobile-portal-view {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.mobile-hero-banner {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.15), rgba(112, 0, 255, 0.2));
    border: 1px solid rgba(255, 0, 127, 0.3);
    border-radius: 20px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    margin-bottom: 1.8rem;
}

.mobile-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.mobile-hero-desc {
    font-size: 0.85rem;
    color: #8a94a6;
}

.mobile-games-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mobile-game-card {
    background: rgba(18, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.mobile-game-card:active {
    transform: scale(0.98);
    background: rgba(28, 28, 52, 0.95);
    border-color: #ff007f;
}

.mobile-game-icon {
    font-size: 2.8rem;
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Search & Controls Bar */
.mobile-controls-bar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.mobile-search-box {
    position: relative;
    width: 100%;
}

.mobile-search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #8a94a6);
    font-size: 0.95rem;
    pointer-events: none;
}

.mobile-search-box .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
}

.mobile-search-box .search-input:focus {
    border-color: #ff007f;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.25);
}

.mobile-category-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-category-filters::-webkit-scrollbar {
    display: none;
}

.mobile-filter-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #8a94a6;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    touch-action: manipulation;
}

.mobile-filter-btn.active {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.3), rgba(112, 0, 255, 0.4));
    border-color: #ff007f;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.3);
}

.mobile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.mobile-category-tag {
    font-size: 0.65rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.mobile-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.mobile-tags-wrapper {
    display: flex;
    gap: 0.3rem;
}

.mobile-tag {
    font-size: 0.7rem;
    color: #8a94a6;
}

.mobile-game-info {
    flex-grow: 1;
    min-width: 0;
}

.mobile-game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.mobile-game-desc {
    font-size: 0.8rem;
    color: #8a94a6;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.mobile-game-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00f0ff;
}

.mobile-play-arrow {
    font-size: 1.4rem;
    color: #ff007f;
    font-weight: 700;
}

/* Device Switch Button in Navbar */
.device-switch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f0f4f8;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.device-switch-btn:hover {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Hide helper classes */
.view-hidden {
    display: none !important;
}
