/* Steam Desktop App Redesign Theme - ZyrIsland Client */
:root {
    --steam-dark-bg: #111217;
    --steam-card-bg: #1a1c23;
    --steam-sidebar-bg: #16171d;
    --steam-border: #2a2d37;
    
    --steam-orange: #f26222;
    --steam-orange-hover: #e05314;
    --steam-red-gradient: linear-gradient(135deg, #e63946, #b71c1c);
    --steam-orange-gradient: linear-gradient(135deg, #f26222, #d9480f);
    
    --text-main: #f1f3f5;
    --text-muted: #8b92a0;
    --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.steam-theme {
    background-color: #0b0c0e;
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* App Desktop Container Window */
.app-window {
    width: 100%;
    max-width: 1400px;
    height: 880px;
    background-color: var(--steam-dark-bg);
    border-radius: 20px;
    border: 1px solid var(--steam-border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    overflow: hidden;
    position: relative;
}

.single-page-window {
    height: auto;
    min-height: 700px;
    flex-direction: column;
}

/* Sidebar Navigation (Left Column) */
.app-sidebar {
    width: 240px;
    background-color: var(--steam-sidebar-bg);
    border-right: 1px solid var(--steam-border);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    padding-left: 6px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--steam-orange-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(242, 98, 34, 0.4);
}

.brand-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1px;
    color: #fff;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.menu-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.menu-item.active {
    color: #fff;
    background: rgba(242, 98, 34, 0.12);
    border-left: 3px solid var(--steam-orange);
}

.menu-item.active i {
    color: var(--steam-orange);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--steam-border);
}

.friends-quick-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--steam-border);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.friends-quick-widget:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Main Dashboard Area */
.app-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Header Search Bar */
.top-bar {
    height: 70px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--steam-border);
}

.search-input-wrapper {
    background: #181a20;
    border: 1px solid var(--steam-border);
    border-radius: 20px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 380px;
}

.search-input-wrapper i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.88rem;
    width: 100%;
}

.search-input-wrapper input:focus {
    outline: none;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notif-bell-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #181a20;
    border: 1px solid var(--steam-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.notif-bell-icon:hover {
    color: #fff;
    border-color: #3e4252;
}

.notif-badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--steam-orange);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #181a20;
    padding: 4px 12px 4px 6px;
    border-radius: 30px;
    border: 1px solid var(--steam-border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--steam-orange);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.logout-icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 6px;
}

.logout-icon-btn:hover { color: #ff4d4d; }

/* Buttons */
.steam-btn {
    border: none;
    padding: 10px 20px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-orange {
    background: var(--steam-orange-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(242, 98, 34, 0.3);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 98, 34, 0.5);
}

.btn-accent {
    background: #252834;
    color: #fff;
    border: 1px solid var(--steam-border);
}

.btn-accent:hover {
    background: #303444;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--steam-border);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Canvas Scrollable Content */
.main-canvas {
    padding: 24px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Alert Banner */
.steam-alert {
    background: rgba(242, 98, 34, 0.1);
    border: 1px solid var(--steam-orange);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.steam-alert .alert-icon {
    font-size: 1.8rem;
    color: var(--steam-orange);
}

.steam-alert h3 { font-size: 1rem; color: #fff; margin-bottom: 2px; }
.steam-alert p { font-size: 0.85rem; color: var(--text-muted); }

/* Hero Banner Section (Steam Redesign - Stray style in image) */
.hero-featured-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-main-card {
    height: 300px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--steam-border);
}

.hero-overlay-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(17, 18, 23, 0.95) 100%);
    z-index: 1;
}

.hero-tags {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.tag-pill {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #eee;
}

.hero-bottom-info {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.hero-desc {
    font-size: 0.9rem;
    color: #ccc;
    max-width: 550px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.hero-participants {
    display: flex;
    align-items: center;
    gap: -6px;
}

.hero-participants img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--steam-dark-bg);
    margin-right: -6px;
}

.hero-participants span {
    margin-left: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Side Card (Red Gradient Card in image) */
.hero-side-card {
    background: linear-gradient(145deg, #a81c1c, #4a0d0d);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(168, 28, 28, 0.3);
}

.side-card-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 10px 0 6px 0;
    color: #fff;
}

.side-card-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.event-status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.side-card-price-zone {
    margin-top: 20px;
}

.event-type-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

/* Events Grid Section (4 Cards Grid in Image) */
.content-section {
    margin-top: 10px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title-row h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.sync-status-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sync-status-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--steam-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--steam-orange);
}

.events-steam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.steam-event-card {
    background: var(--steam-card-bg);
    border: 1px solid var(--steam-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.steam-event-card:hover {
    transform: translateY(-5px);
    border-color: var(--steam-orange);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-image-box {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-badge-top {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.75);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--steam-orange);
}

.card-info-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.card-date {
    font-size: 0.78rem;
    color: var(--steam-orange);
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Notifications Drawer */
.notification-drawer {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 320px;
    max-height: 500px;
    background: #181a20;
    border: 1px solid var(--steam-border);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    z-index: 100;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--steam-border);
}

.drawer-header h3 { font-size: 0.95rem; color: #fff; }
.drawer-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; }

.drawer-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.notif-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--steam-orange);
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
}

.notif-item.urgent { border-left-color: #ff4d4d; }

.notif-header { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2px; }
.notif-title { font-weight: 700; font-size: 0.85rem; color: #fff; margin-bottom: 2px; }
.notif-msg { font-size: 0.8rem; color: #ccc; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.steam-modal {
    background: #181a20;
    border: 1px solid var(--steam-border);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    color: var(--text-muted); font-size: 1.6rem; cursor: pointer;
}

.modal-logo {
    width: 44px; height: 44px;
    background: var(--steam-orange-gradient);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; margin: 0 auto 12px auto;
}

.modal-header { text-align: center; margin-bottom: 20px; }
.modal-header h2 { font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.modal-header p { font-size: 0.8rem; color: var(--text-muted); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: #ccc; }
.form-group input {
    width: 100%; padding: 12px;
    background: #111217;
    border: 1px solid var(--steam-border);
    border-radius: 10px; color: #fff;
    font-family: var(--font-main);
}

.login-error {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid #ff4d4d;
    color: #ff9999;
    padding: 10px; border-radius: 8px;
    font-size: 0.82rem; margin-bottom: 14px; text-align: center;
}

/* Download Page Canvas */
.download-page-canvas {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.steam-download-card {
    background: var(--steam-card-bg);
    border: 1px solid var(--steam-border);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.card-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(17, 18, 23, 0.85) 0%, rgba(17, 18, 23, 0.98) 60%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 36px;
}

.card-top-tags { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.status-pill { background: rgba(0, 255, 136, 0.15); color: #00ff88; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.code-id { font-size: 0.8rem; color: var(--text-muted); }

.event-main-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.event-meta-info { font-size: 0.88rem; color: var(--steam-orange); margin-bottom: 20px; }
.event-description-text { font-size: 0.92rem; color: #ccc; line-height: 1.5; margin-bottom: 28px; background: rgba(0,0,0,0.3); padding: 16px; border-radius: 12px; border: 1px solid var(--steam-border); }

.download-interactive-zone { text-align: center; background: rgba(0, 0, 0, 0.4); padding: 24px; border-radius: 16px; border: 1px solid var(--steam-border); }
.file-size-info { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--text-muted); }

/* Progress Bars */
.progress-box { text-align: left; }
.progress-info-header { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 0.85rem; }
.status-step { color: #fff; }
.speed-badge { color: var(--steam-orange); font-weight: 700; }

.bar-container { background: rgba(255,255,255,0.03); padding: 12px; border-radius: 10px; border: 1px solid var(--steam-border); }
.bar-label-line { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.progress-bar-outer { width: 100%; height: 12px; background: #111217; border-radius: 10px; overflow: hidden; }
.progress-bar-inner { height: 100%; width: 0%; border-radius: 10px; transition: width 0.15s linear; }

.bar-orange { background: var(--steam-orange-gradient); }
.bar-gradient { background: linear-gradient(90deg, #e63946, #f26222); }

.success-box { text-align: center; padding: 20px 0; }
.success-icon { font-size: 3rem; color: #00ff88; margin-bottom: 10px; }
.success-box h3 { font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.success-box p { color: var(--text-muted); margin-bottom: 16px; }

.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .events-steam-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-featured-section { grid-template-columns: 1fr; }
    .hero-side-card { height: 200px; }
}

@media (max-width: 768px) {
    .app-window { flex-direction: column; height: auto; }
    .app-sidebar { width: 100%; padding: 16px; }
    .search-input-wrapper { width: 100%; }
    .top-bar { flex-direction: column; height: auto; padding: 16px; gap: 12px; }
    .events-steam-grid { grid-template-columns: 1fr; }
}