/*
Theme Name: PlayBox
Theme URI: https://example.com/playbox
Author: WP Expert
Description: Έκδοση 2.0.0 (Notifications Bell, Friend Requests Acceptance/Rejection).
Version: 2.0.0
Text Domain: playbox
*/

:root {
  --bg: #F9FAFC;
  --surface: #FFFFFF;
  --text: #333333;
  --text-muted: #777777;
  --blue: #4A90E2;
  --red: #FF6B6B;
  --green: #48C774;
  --overlay: rgba(0,0,0,0.6);
}

body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); margin: 0; line-height: 1.6; }
h1, h2, h3, .site-title { font-family: 'Fredoka One', cursive; }
a { color: var(--blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--red); }

/* Header & Bell */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 3rem; background: var(--surface); border-bottom: 4px solid var(--blue); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.site-title { font-size: 2.5rem; color: var(--blue); text-shadow: 2px 2px 0px rgba(74, 144, 226, 0.2); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; align-items: center; }
.main-navigation a { color: var(--text); font-weight: 600; text-transform: uppercase; }
.main-navigation a:hover { color: var(--green); }
.auth-btn { background: var(--blue); color: #fff !important; padding: 0.5rem 1.5rem; border-radius: 20px; }
.auth-btn:hover { background: var(--green); color: #fff !important; }

.nav-bell {
    position: relative;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 0 10px;
}
.nav-bell:hover { transform: scale(1.1); }
.bell-badge {
    position: absolute;
    top: -5px;
    right: 0;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--surface);
}

/* Hero & Grid */
.hero { text-align: center; padding: 6rem 2rem; background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%); border-bottom: 4px dashed var(--green); }
.hero h1 { font-size: 4rem; margin: 0 0 1rem; color: var(--text); }
.hero h1 span { color: var(--red); }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto; color: var(--text-muted); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.game-card { background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.08); transition: all 0.3s ease; text-align: center; }
.game-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2); }
.placeholder-thumb { width: 100%; height: 220px; background: linear-gradient(45deg, rgba(74,144,226,0.1), rgba(72,199,116,0.2)); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.game-info { padding: 2rem; }
.game-info h3 { margin: 0 0 1.5rem; font-size: 1.8rem; }
.btn-play { display: inline-block; padding: 0.8rem 2.5rem; background: var(--blue); color: #fff; font-weight: bold; border-radius: 50px; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.3s; }
.btn-play:hover { background: var(--green); transform: scale(1.05); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #d32f2f; }
.btn-green { background: var(--green); }
.btn-green:hover { background: #38a169; }

/* Pages */
.page-container { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.entry-title { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }

/* Auth Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-overlay.active { display: flex; }
.auth-modal { background: var(--surface); padding: 2.5rem 2rem; border-radius: 20px; width: 100%; max-width: 400px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.auth-tabs { display: flex; justify-content: space-around; margin-bottom: 1.5rem; border-bottom: 2px solid #eee; }
.auth-tab { cursor: pointer; padding: 0.5rem; font-weight: bold; color: var(--text-muted); font-size: 1rem; flex: 1; text-align: center; }
.auth-tab.active { color: var(--blue); border-bottom: 3px solid var(--blue); }
.auth-form { display: none; flex-direction: column; gap: 1rem; }
.auth-form.active { display: flex; }
.auth-form input { padding: 0.8rem; border: 2px solid #eee; border-radius: 10px; font-family: 'Poppins'; outline: none; transition: border 0.3s; width: 100%; box-sizing: border-box; }
.auth-form input:focus { border-color: var(--blue); }
.auth-form button { padding: 0.8rem; background: var(--blue); color: #fff; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; margin-top: 10px; width: 100%; }
.auth-form button:hover { background: var(--green); }
.auth-msg { text-align: center; font-size: 0.9rem; margin-top: 10px; }
.auth-msg.error { color: var(--red); }
.auth-msg.success { color: var(--green); }
.reset-link { font-size: 0.85rem; text-align: center; display: block; margin-top: 5px; color: var(--text-muted); }
.reset-link:hover { color: var(--blue); text-decoration: underline; }

/* ================= DASHBOARD LAYOUT ================= */
.dash-wrapper { display: flex; flex-direction: column; gap: 2rem; background: var(--surface); border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); overflow: hidden; border: 2px solid #edf2f7; }
@media(min-width: 768px) { .dash-wrapper { flex-direction: row; min-height: 600px; } }
.dash-sidebar { background: #f8fafc; width: 100%; padding: 2rem; border-bottom: 2px solid #edf2f7; box-sizing: border-box; }
@media(min-width: 768px) { .dash-sidebar { width: 280px; border-bottom: none; border-right: 2px solid #edf2f7; } }
.dash-user-info { text-align: center; margin-bottom: 2rem; }
.dash-avatar-container { position: relative; width: 120px; height: 120px; margin: 0 auto 1rem; }
.dash-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--blue); background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-family: 'Fredoka One'; }
.avatar-edit-btn { position: absolute; bottom: 0; right: 0; background: var(--green); color: #fff; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #fff; font-size: 1.2rem; }
.avatar-edit-btn input[type="file"] { display: none; }
.dash-username { font-family: 'Fredoka One'; font-size: 1.5rem; color: var(--text); display: block; }
.dash-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-nav-btn { padding: 1rem 1.5rem; border-radius: 10px; color: var(--text-muted); font-weight: bold; text-align: left; transition: all 0.3s; cursor: pointer; display: block; border: none; background: none; font-size: 1rem; font-family: 'Poppins'; }
.dash-nav-btn:hover { background: rgba(74, 144, 226, 0.1); color: var(--blue); }
.dash-nav-btn.active { background: var(--blue); color: #fff; }
.dash-content { flex: 1; padding: 2rem; box-sizing: border-box; }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Settings Form */
.settings-form { max-width: 500px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--text-muted); }
.form-group input { width: 100%; padding: 0.8rem; border: 2px solid #edf2f7; border-radius: 10px; font-family: 'Poppins'; box-sizing: border-box; }
.form-group input:focus { border-color: var(--blue); outline: none; }

/* Friends System */
.friends-section { margin-bottom: 3rem; }
.friends-section h3 { border-bottom: 2px dashed #edf2f7; padding-bottom: 0.5rem; margin-bottom: 1.5rem; color: var(--blue); }
.search-bar { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.search-bar input { flex: 1; padding: 0.8rem; border: 2px solid #edf2f7; border-radius: 10px; font-family: 'Poppins'; }
.friend-list { display: flex; flex-direction: column; gap: 1rem; }
.friend-card { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border: 2px solid #edf2f7; border-radius: 15px; background: #f8fafc; }
.friend-info { display: flex; align-items: center; gap: 1rem; }
.friend-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Fredoka One'; object-fit: cover; }
.friend-name { font-weight: bold; color: var(--text); }
.btn-group { display: flex; gap: 0.5rem; }

/* Footer */
.site-footer { text-align: center; padding: 3rem; background: var(--surface); margin-top: 3rem; border-top: 4px solid var(--red); color: var(--text-muted); }
