@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --card: #161616;
    --border: #222222;
    --border-hover: #333333;
    --text: #ffffff;
    --text-secondary: #999999;
    --text-muted: #555555;
    --radius: 20px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

nav {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img { height: 36px; width: auto; object-fit: contain; }
.nav-buttons { display: flex; gap: 8px; align-items: center; }

.btn, .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: var(--bg);
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.2px;
}

.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn:hover, .btn-sm:hover { opacity: 0.85; transform: translateY(-1px); }

.btn.outline, .btn-sm.outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn.outline:hover, .btn-sm.outline:hover { background: var(--card); border-color: var(--border-hover); }

.hero { text-align: center; padding: 100px 20px 60px; }
.hero h1 { font-size: 64px; font-weight: 900; letter-spacing: -2px; margin-bottom: 12px; background: linear-gradient(180deg, #fff 0%, #777 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-secondary); font-size: 18px; margin-bottom: 36px; font-weight: 400; }

.videos-section { max-width: 1300px; margin: 0 auto; padding: 40px 28px; }
.videos-section h2 { font-size: 12px; font-weight: 700; margin-bottom: 20px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: all 0.25s; }
.video-card:hover { border-color: #333; transform: translateY(-2px); }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-info { padding: 14px; }
.video-title { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; line-height: 1.3; }
.video-channel { font-size: 12px; color: var(--text-muted); }

.users-section { max-width: 1300px; margin: 0 auto; padding: 40px 28px 80px; }
.users-section h2 { font-size: 12px; font-weight: 700; margin-bottom: 20px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.user-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-decoration: none; color: var(--text); text-align: center; transition: all 0.25s; }
.user-card:hover { background: #1c1c1c; border-color: #333; transform: translateY(-2px); }
.user-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; background: var(--surface); }
.user-card span { display: block; font-weight: 700; font-size: 16px; }
.user-card small { color: var(--text-muted); font-size: 13px; display: block; margin-top: 4px; }

.settings-container { max-width: 600px; margin: 60px auto; padding: 0 24px; }
.settings-container h1 { font-size: 28px; font-weight: 800; margin-bottom: 30px; }
.banner-section { margin-bottom: 20px; }
.banner-preview { width: 100%; height: 180px; background: var(--card); border-radius: var(--radius); background-size: cover; background-position: center; margin-bottom: 10px; border: 1px solid var(--border); }
.avatar-section { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.avatar-section img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--card); }
form { background: var(--card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
form label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
form input, form textarea { width: 100%; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; margin-bottom: 14px; font-family: inherit; resize: vertical; }
form input:focus, form textarea:focus { outline: none; border-color: #444; }
form button { width: 100%; margin-top: 6px; }
#profile-link-section { margin-top: 20px; padding: 18px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
#profile-link-section p { font-size: 13px; color: var(--text-secondary); }
#profile-link-section a { color: var(--text); font-weight: 600; font-size: 15px; }

#profile-content { max-width: 100%; }
.profile-cover { width: 100%; height: 420px; background: linear-gradient(135deg, #1a1a1a 0%, #111 50%, #0a0a0a 100%); background-size: cover; background-position: center; position: relative; }
.cover-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 200px; background: linear-gradient(to top, var(--bg) 0%, transparent 100%); }
.profile-body { max-width: 800px; margin: 0 auto; padding: 0 28px; position: relative; }
.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 36px 36px; margin-top: -100px; position: relative; text-align: center; }
.profile-avatar-wrapper { position: relative; display: inline-block; margin-top: -75px; margin-bottom: 16px; }
.profile-avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 6px solid var(--bg); background: var(--card); position: relative; z-index: 2; }
.avatar-ring { position: absolute; top: -10px; left: -10px; width: 170px; height: 170px; border-radius: 50%; border: 2px solid var(--border); z-index: 1; }
.profile-name { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 2px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.profile-verified { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; border-radius: 50%; font-size: 16px; font-weight: 700; flex-shrink: 0; box-shadow: 0 0 12px rgba(139, 92, 246, 0.5), 0 0 24px rgba(139, 92, 246, 0.2); border: 2px solid rgba(255, 255, 255, 0.15); transition: transform 0.2s, box-shadow 0.2s; cursor: default; }
.profile-verified:hover { transform: scale(1.1); box-shadow: 0 0 18px rgba(139, 92, 246, 0.7), 0 0 32px rgba(139, 92, 246, 0.3); }
.profile-username { color: var(--text-muted); font-size: 16px; font-weight: 400; margin-bottom: 12px; }
.profile-bio { color: var(--text-secondary); font-size: 15px; max-width: 450px; margin: 0 auto 24px; line-height: 1.6; }
.profile-meta { display: flex; justify-content: center; align-items: center; gap: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.meta-item { text-align: center; }
.meta-value { display: block; font-size: 20px; font-weight: 700; }
.meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-top: 2px; }
.meta-divider { width: 1px; height: 30px; background: var(--border); }

.wall { margin-top: 32px; padding-bottom: 80px; }
.wall-header { margin-bottom: 20px; }
.wall-header h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); font-weight: 600; }
.post-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.post-form-inner { display: flex; flex-direction: column; gap: 10px; }
.post-form textarea { width: 100%; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; resize: vertical; font-family: inherit; min-height: 60px; }
.post-form textarea:focus { outline: none; border-color: #444; }
.post-form textarea::placeholder { color: #444; }
.post-form button { align-self: flex-end; }
.posts-list { display: flex; flex-direction: column; gap: 10px; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: border-color 0.2s; }
.post-card:hover { border-color: #2a2a2a; }
.post-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.post-time { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.post-delete { background: none; border: none; color: #444; cursor: pointer; font-size: 15px; padding: 4px 8px; border-radius: 6px; transition: all 0.15s; }
.post-delete:hover { color: #ff5555; background: rgba(255,80,80,0.1); }
.post-body { font-size: 15px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }
.empty-state p { font-size: 15px; }

.admin-container { max-width: 1100px; margin: 60px auto; padding: 0 24px; }
.admin-container h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.admin-container > p { color: var(--text-secondary); margin-bottom: 30px; }
.admin-table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.admin-table th { text-align: left; padding: 14px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); background: #111; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table select { font-family: inherit; font-size: 13px; background: #161616; color: #fff; border: 1px solid #222; padding: 6px; border-radius: 6px; }

.settings-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.setting-row h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.setting-row p { font-size: 13px; color: var(--text-muted); }

.toggle { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #333; border-radius: 28px; transition: 0.3s; }
.toggle-slider::before { content: ""; position: absolute; height: 22px; width: 22px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: #8b5cf6; }
.toggle input:checked + .toggle-slider::before { transform: translateX(24px); }

.container { text-align: center; padding: 140px 20px; }
.container h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.container p { color: var(--text-secondary); margin-bottom: 24px; }

.wars-page { max-width: 900px; margin: 40px auto; padding: 0 24px; }
.wars-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.wars-header h1 { font-size: 28px; font-weight: 800; }
.search-box input { padding: 10px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; width: 250px; font-family: inherit; }
.search-box input:focus { outline: none; border-color: #8b5cf6; }
.war-detail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.war-detail-header { margin-bottom: 20px; }
.war-detail-teams { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; }
.war-badge { font-weight: 700; font-size: 18px; padding: 8px 18px; border-radius: 10px; background: #1a1a1a; border: 2px solid var(--border); }
.war-badge.winner { border-color: #4ade80; color: #4ade80; background: rgba(74,222,128,0.05); }
.war-badge.loser { border-color: #ff5555; color: #ff5555; background: rgba(255,85,85,0.05); }
.war-detail-meta { display: flex; justify-content: center; gap: 20px; color: var(--text-secondary); font-size: 13px; flex-wrap: wrap; }
.war-players h4 { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.players-grid { display: flex; flex-direction: column; gap: 6px; }
.player-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg); border-radius: 8px; font-size: 14px; }
.player-family-logo { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: white; flex-shrink: 0; }
.player-name { flex: 1; font-weight: 500; }
.player-family { color: var(--text-muted); font-size: 12px; }
.player-damage { color: #f59e0b; font-weight: 600; min-width: 80px; text-align: right; }
.player-kills { color: #ef4444; font-weight: 600; min-width: 60px; text-align: right; }

@media (max-width: 768px) {
    .hero h1 { font-size: 38px; }
    .profile-cover { height: 220px; }
    .profile-card { padding: 0 20px 28px; margin-top: -60px; }
    .profile-avatar { width: 110px; height: 110px; border-width: 4px; }
    .profile-avatar-wrapper { margin-top: -55px; }
    .avatar-ring { width: 126px; height: 126px; top: -8px; left: -8px; }
    .profile-name { font-size: 24px; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 10px 12px; }
    .setting-row { flex-direction: column; align-items: flex-start; }
    .war-detail-teams { flex-direction: column; gap: 8px; }
    .player-row { flex-wrap: wrap; }
    .player-family { display: none; }
}
