/* --- CORE --- */
:root { --bg: #0b0d12; --card: #161b22; --border: #30363d; --accent: #22d3ee; --gold: #d4af37; --text: #c9d1d9; }
body.page-template-page-community { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; }

/* --- LOGIN --- */
.login-wrap { min-height: 80vh; display: grid; place-items: center; }
.login-card { background: var(--card); border: 1px solid var(--border); padding: 40px; border-radius: 12px; width: 100%; max-width: 400px; text-align: center; }
.login-card input { width: 100%; padding: 12px; margin-bottom: 15px; background: #0d1117; border: 1px solid var(--border); color: #fff; border-radius: 6px; }
.submit-btn { width: 100%; background: var(--gold); color: #000; font-weight: bold; padding: 12px; border: 0; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.submit-btn:hover { opacity: 0.9; }
.login-links { margin-top: 15px; font-size: 0.85rem; }
.login-links a { color: var(--accent); text-decoration: none; }

/* --- DASHBOARD GRID --- */
.dash-container { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media(max-width: 900px) { .dash-container { grid-template-columns: 1fr; } }

/* --- SIDEBAR --- */
.dash-sidebar { background: #0d1117; border-right: 1px solid var(--border); padding: 25px; display: flex; flex-direction: column; }
.user-mini-profile { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.avatar-circle img { border-radius: 50%; border: 2px solid var(--gold); }
.member-badge { background: rgba(212, 175, 55, 0.2); color: var(--gold); padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.dash-nav button { width: 100%; text-align: left; padding: 12px 15px; background: transparent; border: 0; color: #8b949e; cursor: pointer; border-radius: 6px; margin-bottom: 5px; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.dash-nav button:hover, .dash-nav button.active { background: var(--card); color: #fff; border-left: 3px solid var(--accent); }
.nav-divider { border-color: var(--border); margin: 15px 0; opacity: 0.3; }

/* --- CONTENT --- */
.dash-content { padding: 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-title { font-size: 2rem; margin-bottom: 30px; color: #fff; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }

/* --- PLANNER --- */
.planner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.budget-card { background: var(--card); padding: 25px; border-radius: 12px; border: 1px solid var(--border); }
.budget-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.calc-input { background: #0d1117; border: 1px solid var(--border); color: #fff; padding: 5px; width: 100px; text-align: right; }
.total-row { border-top: 1px solid var(--border); padding-top: 15px; font-weight: bold; font-size: 1.2rem; margin-top: 15px; color: var(--gold); display: flex; justify-content: space-between; }
.btn-save { width: 100%; margin-top: 15px; padding: 10px; background: #238636; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.checklist { list-style: none; padding: 0; margin-top: 15px; }
.checklist li { margin-bottom: 8px; }

/* --- PASSPORT (PROFILE) --- */
.passport-section { margin-bottom: 30px; background: var(--card); padding: 20px; border-radius: 12px; border: 1px solid var(--border); }
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; text-align: center; }
.badge-item { background: #0d1117; padding: 15px; border-radius: 8px; border: 1px solid var(--border); }
.badge-item.locked { opacity: 0.5; filter: grayscale(1); }
.badge-img { font-size: 2rem; margin-bottom: 5px; }
.badge-item span { font-size: 0.8rem; font-weight: bold; }

.timeline { border-left: 2px solid var(--border); padding-left: 20px; margin-left: 10px; }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 5px; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.time-year { font-size: 0.8rem; color: var(--accent); }
.time-content { background: #0d1117; padding: 10px; border-radius: 6px; margin-top: 5px; border: 1px solid var(--border); }
.fav-tags span { display: inline-block; background: #0d1117; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; border: 1px solid var(--border); margin-right: 5px; }
.add-tag-btn { background: none; border: 1px dashed var(--border); color: var(--text); padding: 5px 12px; border-radius: 20px; cursor: pointer; }

/* --- BEATS --- */
.radio-player { background: linear-gradient(135deg, #1f2937, #111827); padding: 30px; border-radius: 16px; text-align: center; border: 1px solid var(--gold); margin-bottom: 30px; }
.visualizer { display: flex; justify-content: center; gap: 5px; height: 40px; margin: 20px 0; }
.bar { width: 8px; background: var(--gold); animation: bounce 1s infinite; }
.bar:nth-child(2) { animation-delay: 0.2s; } .bar:nth-child(3) { animation-delay: 0.4s; }
.playlists-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.playlist-card { background: var(--card); padding: 20px; border-radius: 8px; border: 1px solid var(--border); text-align: center; }

/* --- COMMUNITY --- */
.community-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media(max-width: 800px) { .community-split { grid-template-columns: 1fr; } }
.forum-cat { padding: 15px; border-bottom: 1px solid var(--border); transition: 0.2s; cursor: pointer; }
.forum-cat:hover { background: #0d1117; padding-left: 20px; border-left: 2px solid var(--accent); }
.gallery-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-item { background: #333; height: 120px; border-radius: 8px; }
.btn-small { padding: 5px 10px; background: var(--border); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }

/* --- CALENDAR/REVIEWS --- */
#calendar { background: #fff; color: #000; padding: 15px; border-radius: 8px; margin-bottom: 30px; }
.reviews-widget { background: var(--card); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.review-item { padding: 15px; border-bottom: 1px solid var(--border); }
.stars { color: var(--gold); letter-spacing: 2px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { height: 10px; } 50% { height: 40px; } }

/* --- PASSPORT HEADER --- */
.passport-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px; }
.passport-stats span { margin-left: 20px; font-size: 0.9rem; color: #aaa; }
.passport-stats strong { color: var(--gold); font-size: 1.1rem; }

/* --- SECTION HEADERS --- */
.section-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.btn-small-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: 0.2s; }
.btn-small-gold:hover { background: var(--gold); color: #000; }

/* --- ARTIST TAGS --- */
.add-artist-form { display: flex; gap: 5px; }
.add-artist-form input { background: #000; border: 1px solid var(--border); color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; }
.add-artist-form button { background: var(--card); border: 1px solid var(--border); color: var(--accent); cursor: pointer; border-radius: 4px; padding: 0 10px; }

.artist-tag { display: inline-flex; align-items: center; background: #0d1117; padding: 6px 14px; border-radius: 20px; font-size: 0.9rem; border: 1px solid var(--border); margin: 0 8px 8px 0; animation: fadeIn 0.3s ease; }
.remove-fav { margin-left: 8px; color: #ff4444; cursor: pointer; font-size: 0.8rem; }
.remove-fav:hover { color: #ff0000; }

/* --- BADGE LOCK STATES --- */
.badge-item { position: relative; transition: 0.3s; }
.badge-item.locked { opacity: 0.4; background: #000; border-color: #222; }
.badge-item.locked .badge-img { filter: grayscale(100%); }
.lock-icon { position: absolute; top: 10px; right: 10px; font-size: 0.8rem; color: #666; }

/* --- MODAL --- */
.bk-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.bk-modal-content { background-color: var(--card); padding: 30px; border: 1px solid var(--gold); width: 100%; max-width: 400px; border-radius: 12px; position: relative; animation: slideDown 0.3s; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa; }
.close-modal:hover { color: #fff; }

.bk-modal form label { display: block; margin-top: 15px; margin-bottom: 5px; font-size: 0.9rem; color: #ccc; }
.bk-modal form input, .bk-modal form select { width: 100%; padding: 10px; background: #000; border: 1px solid var(--border); color: #fff; border-radius: 5px; }
.bk-modal .btn-gold { width: 100%; margin-top: 20px; padding: 12px; font-weight: bold; background: var(--gold); border: none; cursor: pointer; color: #000; border-radius: 6px; }

/* Animation for new items */
.timeline-item.new-item { animation: highlight 2s ease; border-left: 2px solid var(--gold); }
@keyframes highlight { 0% { background: rgba(212, 175, 55, 0.2); } 100% { background: transparent; } }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }