/*
Theme Name: PlayBox
Theme URI: https://example.com/playbox
Author: WP Expert
Description: Φωτεινό theme. Έκδοση 1.8.1 (Διόρθωση εγκατάστασης - Προσθήκη index.php).
Version: 1.8.1
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 */
.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: 2rem; 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; }

/* 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; }

/* Pages */
.page-container { padding: 4rem 2rem; max-width: 1000px; 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; }
.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; }
.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 */
.dashboard-card { background: var(--surface); padding: 3rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; border: 2px solid var(--blue); }
.user-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 3rem; margin: 0 auto 1rem; }
.dash-stats { display: flex; justify-content: space-around; margin-top: 3rem; padding-top: 2rem; border-top: 2px dashed #eee; flex-wrap: wrap; gap: 1rem; }
.stat-box { background: #f0f4f8; padding: 2rem; border-radius: 15px; width: 40%; min-width: 250px; }
.stat-box h3 { margin: 0; color: var(--text-muted); font-size: 1.2rem; font-family: 'Poppins'; }
.stat-box .val { font-size: 3rem; font-family: 'Fredoka One'; color: var(--green); }

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