/* --- PLAYONLINE & WINDOWS AERO HYBRID THEME --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: radial-gradient(circle at 50% 20%, #1e5799 0%, #207cca 35%, #0e2e54 80%, #081628 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    padding: 15px;
}

/* BACKGROUND GLOW EFFECTS */
.background-glow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.wrapper {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* TOP STATUS BAR */
.top-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 10px;
}

.online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ff66;
}

/* HEADER */
.portal-header {
    text-align: center;
    padding: 10px 0 15px 0;
}

.logo-text {
    font-size: 38px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 162, 255, 0.8), 2px 2px 4px rgba(0,0,0,0.8);
}

.logo-accent {
    color: #38b6ff;
}

.logo-subtext {
    font-size: 10px;
    letter-spacing: 3px;
    color: #8ed0ff;
    font-weight: 700;
}

/* GLASS NAVIGATION BAR (PLAYONLINE PILL NAV) */
.glass-nav {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(150, 210, 255, 0.3) 48%, 
        rgba(10, 80, 150, 0.5) 50%, 
        rgba(5, 30, 60, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 3px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.9), 0 8px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.glass-nav ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
}

.nav-btn {
    display: block;
    padding: 6px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
}

.nav-btn:hover, .nav-btn.active {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(120, 200, 255, 0.8) 50%, 
        rgba(0, 100, 200, 0.9) 100%);
    box-shadow: inset 0 1px 2px #fff, 0 0 10px rgba(0, 170, 255, 0.8);
}

/* GRID LAYOUT */
.portal-grid {
    display: grid;
    grid-template-columns: 210px 1fr 200px;
    gap: 15px;
}

/* GLASS CARDS (MATCHING THE INSPIRATION IMAGES) */
.glass-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(30, 100, 160, 0.2) 40%, 
        rgba(6, 25, 48, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -1px 4px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* Curved Glossy Highlight Overlay */
.card-glass-specular {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.0) 100%);
    border-radius: 11px 11px 100% 100% / 11px 11px 15px 15px;
    pointer-events: none;
}

.card-header {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #e0f2ff;
    padding: 4px 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    border-left: 3px solid #38b6ff;
    border-radius: 2px;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* LEFT SIDEBAR PILL BUTTONS (WINDOWS MEDIA CENTER LAUNCHER STYLE) */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.pill-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(80, 160, 220, 0.2) 50%, 
        rgba(10, 50, 90, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 0 3px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.pill-menu-item:hover, .pill-menu-item.active {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(80, 200, 255, 0.7) 50%, 
        rgba(0, 90, 180, 0.9) 100%);
    border-color: #ffffff;
    box-shadow: inset 0 1px 2px #fff, 0 0 12px rgba(0, 170, 255, 0.9);
}

/* HERO BANNER & APP GRID */
.banner-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.4);
    margin-bottom: 15px;
}

.banner-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 10px;
}

.banner-overlay h2 { font-size: 15px; color: #ffea79; }
.banner-overlay p { font-size: 11px; color: #d0e8ff; }

/* MEDIA CENTER APPS GRID */
.grid-title {
    font-size: 11px;
    font-weight: 700;
    color: #8ed0ff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.icon-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.app-tile {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.3) 100%);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
    transition: all 0.2s ease;
}

.app-tile:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(0,140,255,0.5) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,162,255,0.4);
}

.tile-icon { font-size: 22px; margin-bottom: 4px; }
.tile-label { font-size: 11px; font-weight: 600; display: block; }

/* CHATBOX */
.chat-logs {
    height: 70px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 6px;
    font-size: 11px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 8px;
}

.chat-row { margin-bottom: 4px; }

.chat-input-row { display: flex; gap: 6px; }

.chat-input-row input {
    flex: 1;
    background: rgba(255,255,255,0.8);
    border: 1px solid #fff;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    outline: none;
}

/* GLOSSY BUTTONS */
.glossy-btn {
    background: linear-gradient(180deg, #7be3ff 0%, #0088ff 48%, #0044cc 50%, #0088ff 100%);
    border: 1px solid #ffffff;
    border-radius: 14px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 12px;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    box-shadow: inset 0 1px 1px #fff, 0 2px 5px rgba(0,0,0,0.4);
}

.glossy-btn:active { transform: translateY(1px); }
.big-btn { width: 100%; padding: 8px; font-size: 12px; margin: 6px 0; }

/* SECURITY BADGE */
.security-badge { display: flex; align-items: center; gap: 8px; }
.shield-icon { font-size: 20px; }
.sec-text strong { display: block; font-size: 10px; color: #ffea79; }
.sec-text small { font-size: 9px; color: #a0d8ff; }

/* CALENDAR */
.cal-title { font-size: 11px; text-align: center; font-weight: bold; color: #ffea79; margin-bottom: 4px; }
.cal-table { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 9px; text-align: center; }
.cal-table div { padding: 3px 0; background: rgba(0,0,0,0.2); border-radius: 2px; }
.cal-table .active-day { background: #38b6ff; color: #000; font-weight: bold; }

/* RETRO 88x31 BADGES */
.badge-flex { display: flex; flex-direction: column; gap: 4px; }
.retro-badge {
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    padding: 4px;
    border: 1px solid #fff;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.badge-blue { background: #0055aa; }
.badge-green { background: #008844; }
.badge-orange { background: #cc6600; }
.badge-purple { background: #6600aa; }

.clap-desc { font-size: 10px; color: #cce8ff; }
.clap-count-text { font-size: 11px; font-weight: bold; color: #ffea79; margin-top: 4px; }

/* FOOTER */
.portal-footer {
    text-align: center;
    font-size: 10px;
    color: #7aaed4;
    padding: 15px 0;
}

/* RESPONSIVE */
@media (max-width: 820px) {
    .portal-grid { grid-template-columns: 1fr; }
}