/* ═══════════════════════════════════════════════════════════════
   GAMERHUB - PROFILSEITE CSS
   Datei: /assets/css/gamerhub.css
   Projekt: gaming-ts.com
   Erstellt: März 2026
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: #e0e0e0;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    min-height: 100vh;
}

/* ═══════════════════════════════════════
   NAVBAR-SCHUTZ
   Die Navbar aus inc_menu.php hat position:sticky.
   GamerHub-Content muss darunter beginnen.
   ═══════════════════════════════════════ */
.gamerhub-content {
    padding-top: 20px;
}

/* Navbar soll ihre eigene Schrift behalten */
.navbar, .navbar * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Footer-Abstand */
.site-footer {
    margin-top: 30px !important;
}

/* ═══════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ═══════════════════════════════════════
   PROFIL-HEADER
   ═══════════════════════════════════════ */
.profile-header {
    background: linear-gradient(135deg, var(--card-bg), rgba(0,0,0,0.5));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.online-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}
.online-badge.online {
    background: rgba(0,255,0,0.2);
    color: #00ff00;
    border: 1px solid rgba(0,255,0,0.4);
}
.online-badge.offline {
    background: rgba(255,255,255,0.05);
    color: #666;
    border: 1px solid rgba(255,255,255,0.1);
}

.display-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    color: #fff;
    margin: 15px 0 5px;
}

.rank-badge {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 8px 0;
}

.random-title {
    color: rgba(255,255,255,0.4);
    font-style: italic;
    font-size: 0.95em;
}

.bio {
    color: rgba(255,255,255,0.7);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.location {
    color: rgba(255,255,255,0.4);
    font-size: 0.85em;
    margin-top: 8px;
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card {
    background: linear-gradient(135deg, var(--card-bg), rgba(0,0,0,0.3));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ═══════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-box {
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    font-size: 0.75em;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* ═══════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════ */
.progress-bar {
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    height: 12px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-fade, rgba(255,255,255,0.2)));
    transition: width 1s ease;
}

/* ═══════════════════════════════════════
   GAMES GRID
   ═══════════════════════════════════════ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.game-card {
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.game-name {
    font-size: 0.85em;
    color: #fff;
    margin-top: 5px;
}

.game-category {
    font-size: 0.7em;
    color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════
   ACHIEVEMENTS
   ═══════════════════════════════════════ */
.achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement-badge {
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    border-left: 3px solid;
}

.achievement-badge .emoji { font-size: 1.3em; }
.achievement-badge .name { color: #fff; font-weight: bold; }
.achievement-badge .date { color: rgba(255,255,255,0.4); font-size: 0.8em; }

/* ═══════════════════════════════════════
   SOCIAL LINKS
   ═══════════════════════════════════════ */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.4);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--accent);
    font-size: 0.85em;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   OWNER EDIT BUTTON
   ═══════════════════════════════════════ */
.edit-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
    transition: opacity 0.3s;
}

.edit-btn:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════
   404 NOT FOUND
   ═══════════════════════════════════════ */
.not-found {
    text-align: center;
    padding: 80px 20px;
}

.not-found h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4em;
    color: #333;
}

.not-found p {
    color: #666;
    margin: 15px 0;
}

.not-found a {
    color: var(--accent);
    text-decoration: none;
}

/* ═══════════════════════════════════════
   EDIT MODAL STYLES
   ═══════════════════════════════════════ */
.etab {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
}

.etab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: bold;
}

.erow {
    margin-bottom: 15px;
}

.erow label {
    display: block;
    color: var(--accent);
    font-size: 0.85em;
    margin-bottom: 5px;
}

.erow input,
.erow textarea,
.erow select {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
}

.erow input:focus,
.erow textarea:focus,
.erow select:focus {
    border-color: var(--accent);
    outline: none;
}

.save-btn {
    padding: 12px 25px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    margin-top: 10px;
}

.save-btn:hover {
    opacity: 0.85;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
}

.toggle-row input {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════
   GAME PICKER (Edit Modal)
   ═══════════════════════════════════════ */
.game-pick {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.game-pick:hover {
    border-color: var(--accent);
}

.game-pick.selected {
    border-color: var(--accent);
    background: rgba(0,255,100,0.1);
}

.game-pick .gpname {
    flex: 1;
    font-size: 0.8em;
    color: #fff;
}

.game-pick .gpcheck {
    font-size: 0.9em;
}

.cat-btn {
    padding: 5px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75em;
}

.cat-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ═══════════════════════════════════════
   THEME PICKER (Edit Modal)
   ═══════════════════════════════════════ */
.theme-opt.active {
    box-shadow: 0 0 10px var(--accent);
}

/* ═══════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════ */
#games-list::-webkit-scrollbar {
    width: 6px;
}

#games-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 600px) {
    .container { padding: 10px; }
    .display-name { font-size: 1.5em; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-header { padding: 25px 15px; }
    .edit-btn { top: 10px; right: 10px; padding: 6px 12px; font-size: 0.8em; }
}
