/* NamJap Dashboard Styles */
:root {
    --primary: #FF4500;
    --secondary: #3a1c71;
    --accent: #fdbb2d;
    --bg: #0f0c29;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header & Navigation */
header {
    padding: 40px 0;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.logo img { width: 80%; }

/* Smaller logo for contact page */
.logo.small {
    width: 80px;
    height: 80px;
}

h1 { font-size: 3rem; margin-bottom: 10px; background: linear-gradient(to right, #ff416c, #ff4b2b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-page h1 { font-size: 2.5rem; color: #fff; background: none; -webkit-text-fill-color: initial; }

p.tagline { font-size: 1.2rem; color: #aaa; margin-bottom: 30px; }

.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-link {
    text-decoration: none;
    color: #ddd;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Store Links */
.store-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.store-btn {
    background: rgba(255,255,255,0.1);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.store-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 1.1rem; color: #ddd; text-transform: uppercase; letter-spacing: 2px; }

/* Leaderboard */
.leaderboard-section {
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

h2 { margin-bottom: 30px; font-size: 2rem; color: var(--accent); }

.leaderboard-header {
    display: grid;
    grid-template-columns: 50px 1fr 100px 100px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.leaderboard-list {
    list-style: none;
    max-height: 600px;
    overflow-y: auto;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 50px 1fr 100px 100px;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
    transition: background 0.2s;
    animation: fadeIn 0.5s ease;
}

.leaderboard-item:hover { background: rgba(255,255,255,0.05); }

.rank { font-weight: bold; color: var(--accent); }
.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: bold; }
.user-city { font-size: 0.8rem; color: #aaa; }

.updated-flash {
    animation: flash 1s ease;
}

/* Developer Page Styles */
.profile-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin-bottom: 20px;
}

.profile-name { font-size: 2rem; font-weight: bold; margin-bottom: 10px; }
.profile-bio { font-size: 1.1rem; color: #ccc; margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-btn {
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.social-btn.github { background: #24292e; }
.social-btn:hover { transform: translateY(-3px); }

/* Projects Grid */
h2.section-title { margin-bottom: 30px; font-size: 2rem; color: var(--accent); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.project-card {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 15px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.project-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-desc {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.language-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.project-link {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.project-link:hover { background: rgba(255,255,255,0.2); }

/* Animations */
@keyframes flash {
    0% { color: #fff; text-shadow: 0 0 10px #fff; }
    100% { color: var(--primary); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .stat-value { font-size: 2.5rem; }
    .leaderboard-header, .leaderboard-item { font-size: 0.9rem; grid-template-columns: 40px 1fr 80px; }
    .col-mala { display: none; } /* Hide mala col on mobile if strict space */
}
