/* --- PLAYSU HUB - PORADNIKI PREMIUM PURPLE --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700;800&family=Inter:wght@400;500;700&display=swap');

:root {
    --accent-purple: #a855f7;        /* Jasny, neonowy fiolet */
    --accent-glow: rgba(168, 85, 247, 0.4);
    --bg-darker: #050507;            /* Głęboka czerń tła */
    --bg-card: rgba(22, 22, 26, 0.8); /* Półprzezroczyste kafelki */
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --font-header: 'Rajdhani', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. TŁO I STRUKTURA */
body.guide-page {
    background: radial-gradient(circle at 20% 20%, #1a1625 0%, var(--bg-darker) 60%);
    background-attachment: fixed;
    margin: 0;
    color: var(--text-main);
    font-family: 'Inter', sans-serif; /* Treść poradników ma czytelną czcionkę Inter */
    display: flex;
    overflow-x: hidden;
}

/* 2. SIDEBAR - FIX (WYMUSZENIE WYGLĄDU JAK NA GŁÓWNEJ) */
/* To sprawia, że menu i logo są identyczne jak na index.php */
.sidebar, 
.sidebar .logo, 
.sidebar a, 
.sidebar span, 
.nav-item, 
.nav-label {
    font-family: 'Rajdhani', sans-serif !important; 
}

.sidebar {
    background-color: rgba(10, 10, 12, 0.98) !important;
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(168, 85, 247, 0.15) !important;
}

.sidebar .logo {
    font-size: 28px !important; /* Rozmiar z głównej */
    letter-spacing: 2px !important;
    font-weight: 800 !important;
}

.sidebar .logo span {
    color: var(--accent-purple);
    text-shadow: 0 0 15px var(--accent-glow);
}

.nav-menu a:hover, .nav-menu a.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
    color: var(--accent-purple);
    border-left: 3px solid var(--accent-purple);
}

/* 3. CONTENT LAYOUT */
.content {
    margin-left: 260px;
    padding: 50px;
    width: calc(100% - 260px);
}

/* HERO SECTION */
.hero.purple-gradient {
    padding: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-left: 6px solid var(--accent-purple);
    margin-bottom: 50px;
}

.hero h1 {
    font-family: var(--font-header);
    font-size: 54px;
    text-transform: uppercase;
    margin: 0;
}

/* 4. GRID KAFELKÓW */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.guide-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.guide-img {
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: var(--transition);
}

.guide-overlay {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    font-family: var(--font-header);
}

.guide-card h3 {
    font-family: var(--font-header);
    font-size: 24px;
    margin: 0;
}

.guide-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.guide-footer {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-purple);
    font-family: var(--font-header);
}

/* HOVER EFFECTS */
.guide-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
}

.guide-card:hover .guide-img {
    filter: brightness(1);
    transform: scale(1.05);
}

/* 5. STOPKA */
footer {
    margin-top: 80px;
    padding-bottom: 40px;
    text-align: center;
}

.rgb-footer-bar {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    background-size: 200% 100%;
    margin-bottom: 25px;
    opacity: 0.8;
}

footer p {
    font-family: var(--font-header);
    color: var(--text-dim);
    letter-spacing: 1px;
    font-size: 14px;
}

footer p a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

footer p a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--accent-purple);
}

/* ============================================================
   6. STYLE DLA GÓRNEGO PASKA (STEAM LOGIN / PROFIL)
   ============================================================ */
.user-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; position: relative; z-index: 50; }
.system-status { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 800; color: #44ff44; background: rgba(0,255,0,0.05); padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(0,255,0,0.1); display: flex; align-items: center; gap: 8px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #44ff44; border-radius: 50%; box-shadow: 0 0 5px #44ff44; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.user-profile-trigger { display: flex; align-items: center; gap: 12px; cursor: pointer; background: #0f0f12; padding: 6px 15px 6px 10px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.user-profile-trigger:hover { border-color: var(--accent-purple); background: #16161a; }
.user-meta { text-align: right; line-height: 1.3; font-family: 'Rajdhani', sans-serif; }
.user-nick { display: block; font-weight: 700; color: #fff; font-size: 14px; }
.user-coins { display: block; font-size: 11px; color: #ffd700; font-weight: 600; }
.top-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #222; }
#menu-arrow { color: #555; transition: 0.3s; font-size: 12px; }

/* POPUP MENU */
.user-popup-menu { display: none; position: absolute; top: 60px; right: 0; width: 280px; background: #0f0f12; border: 1px solid rgba(168, 85, 247, 0.3); border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 100; overflow: hidden; animation: slideIn 0.2s ease; }
.user-popup-menu.show { display: block; }
@keyframes slideIn { from {opacity: 0; transform: translateY(-10px);} to {opacity: 1; transform: translateY(0);} }

.popup-header { padding: 20px; background: rgba(168, 85, 247, 0.05); border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 15px; font-family: 'Rajdhani', sans-serif; }
.rank-icon-big { width: 50px; height: auto; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); }
.popup-rank-name { font-weight: 800; color: #fff; font-size: 15px; margin-bottom: 5px; }
.popup-xp-bar { width: 100%; height: 6px; background: #000; border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.popup-xp-fill { height: 100%; background: var(--accent-purple); }
.popup-xp-text { font-size: 10px; color: #888; font-weight: 600; }

.popup-links { list-style: none; padding: 10px; margin: 0; font-family: 'Rajdhani', sans-serif; }
.popup-links li a { display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: #ccc; text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.2s; border-radius: 8px; }
.popup-links li a:hover { background: rgba(255,255,255,0.05); color: #fff; transform: translateX(5px); }
.separator { height: 1px; background: rgba(255,255,255,0.05); margin: 5px 10px; }
.logout-link:hover { color: #ff4444 !important; background: rgba(255, 68, 68, 0.1) !important; }

.btn-login-top { background: #000; color: #fff; border: 1px solid var(--accent-purple); padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 12px; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; font-family: 'Rajdhani', sans-serif; }
.btn-login-top:hover { background: var(--accent-purple); box-shadow: 0 0 15px var(--accent-glow); }