/* assets/style.css */
:root {
  --primary: #E8003D;      /* Japan red */
  --primary-dark: #b50030;
  --accent: #FF6B35;       /* India saffron */
  --bg: #F4F2EE;
  --white: #ffffff;
  --card: #ffffff;
  --border: #e0ddd8;
  --text: #191919;
  --muted: #666666;
  --india: #138808;
  --japan: #E8003D;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --font: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 16px; height: 56px;
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.logo-in { background: var(--india); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.logo-jp { background: var(--japan); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.logo-text { display: none; }
@media(min-width: 600px){ .logo-text { display: inline; } }

.nav-search { flex: 1; max-width: 280px; }
.nav-search input {
  width: 100%; padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg);
  font-family: var(--font); font-size: 13px; outline: none;
}
.nav-search input:focus { border-color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-icon {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 10px; border-radius: 6px; font-size: 12px; color: var(--muted);
  cursor: pointer; transition: all .2s; gap: 2px; line-height: 1;
}
.nav-icon:hover, .nav-icon.active { color: var(--primary); background: #fff0f3; }
.nav-icon span { font-size: 11px; }
.nav-logout:hover { color: #c00; background: #fff0f0; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.nav-avatar-placeholder {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

/* ===== FLASH ===== */
.flash {
  padding: 12px 20px; display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 500;
}
.flash-success { background: #d4edda; color: #155724; border-bottom: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border-bottom: 1px solid #f5c6cb; }
.flash button { background: none; border: none; font-size: 18px; cursor: pointer; line-height: 1; color: inherit; }

/* ===== LAYOUT ===== */
.page-wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px; }
.layout-3col { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width: 768px) { .layout-3col { grid-template-columns: 240px 1fr; } }
@media(min-width: 1024px) { .layout-3col { grid-template-columns: 240px 1fr 280px; } }
.layout-2col { display: grid; gap: 20px; }
@media(min-width: 768px){ .layout-2col { grid-template-columns: 1fr 1fr; } }

/* ===== CARD ===== */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 20px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: #fff0f3; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-green { background: var(--india); color: #fff; }
.btn-green:hover { background: #0d6b06; }
.btn-full { width: 100%; justify-content: center; }
.btn-gray { background: #eee; color: var(--text); }
.btn-gray:hover { background: #ddd; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 9px 13px;
  border: 1px solid var(--border); border-radius: 7px;
  font-family: var(--font); font-size: 13px; outline: none;
  background: var(--bg); color: var(--text);
  transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; gap: 12px; }
@media(min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

/* ===== AUTH PAGES ===== */
.auth-page { max-width: 480px; margin: 40px auto; }
.auth-hero { text-align: center; margin-bottom: 28px; }
.auth-hero h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-hero p { color: var(--muted); font-size: 14px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===== SIDEBAR PROFILE CARD ===== */
.sidebar-profile { text-align: center; }
.profile-cover { height: 60px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 8px 8px 0 0; margin: -16px -16px 0; }
.profile-avatar-wrap { margin-top: -28px; margin-bottom: 8px; }
.profile-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.profile-avatar-lg { width: 96px; height: 96px; }
.profile-avatar-placeholder {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; border: 3px solid #fff; margin: 0 auto;
}
.profile-name { font-size: 15px; font-weight: 700; }
.profile-headline { font-size: 12px; color: var(--muted); margin-top: 2px; }
.country-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
  margin-top: 6px;
}
.badge-india { background: #e8f5e9; color: var(--india); }
.badge-japan { background: #ffebee; color: var(--japan); }

/* ===== FEED / POSTS ===== */
.post-card { margin-bottom: 12px; }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-meta { flex: 1; }
.post-author { font-weight: 600; font-size: 14px; }
.post-info { font-size: 11px; color: var(--muted); }
.post-content { font-size: 14px; line-height: 1.6; margin-bottom: 10px; white-space: pre-wrap; }
.post-image { border-radius: 8px; width: 100%; object-fit: cover; max-height: 400px; margin-bottom: 10px; }
.post-actions { display: flex; gap: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.post-action-btn {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--muted); padding: 4px 8px; border-radius: 5px;
  font-family: var(--font); transition: all .15s;
}
.post-action-btn:hover { background: var(--bg); color: var(--primary); }
.post-action-btn.liked { color: var(--primary); }

/* ===== CREATE POST ===== */
.create-post { display: flex; gap: 10px; align-items: flex-start; }
.create-post-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 20px; font-family: var(--font); font-size: 14px;
  cursor: pointer; background: var(--bg); color: var(--muted);
  outline: none;
}
.create-post-input:focus { border-color: var(--primary); }

/* ===== JOB CARDS ===== */
.job-card { margin-bottom: 10px; }
.job-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.job-company { font-size: 14px; font-weight: 600; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.job-tag {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 2px 10px; font-size: 11px; color: var(--muted);
}
.job-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-footer { display: flex; justify-content: space-between; align-items: center; }
.job-time { font-size: 11px; color: var(--muted); }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-btn {
  padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--white); cursor: pointer;
  font-family: var(--font); transition: all .2s; color: var(--muted);
}
.filter-btn.active { border-color: var(--primary); background: #fff0f3; color: var(--primary); }

/* ===== PROFILE PAGE ===== */
.profile-cover-lg { height: 160px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); border-radius: var(--radius); position: relative; margin-bottom: 60px; }
.profile-cover-avatar { position: absolute; bottom: -48px; left: 24px; }
.profile-cover-avatar .profile-avatar { width: 96px; height: 96px; border: 4px solid #fff; }
.profile-cover-avatar .profile-avatar-placeholder { width: 96px; height: 96px; font-size: 40px; border: 4px solid #fff; }
.profile-info { padding: 0 8px; }
.profile-info h2 { font-size: 22px; font-weight: 700; }
.skills-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.skill-tag { background: #fff0f3; color: var(--primary); border-radius: 12px; padding: 3px 12px; font-size: 12px; font-weight: 500; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }

/* ===== SEARCH ===== */
.search-section { margin-bottom: 24px; }
.search-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* ===== HERO (landing) ===== */
.hero {
  background: linear-gradient(135deg, #1a0010 0%, #3d0020 40%, #1a0a00 100%);
  color: #fff; padding: 60px 20px; text-align: center;
  border-radius: var(--radius); margin-bottom: 24px;
}
.hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 16px; opacity: .85; margin-bottom: 24px; }
.hero-flags { font-size: 40px; letter-spacing: 10px; margin-bottom: 16px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== STATS ===== */
.stats-bar { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-item { flex: 1; min-width: 80px; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--muted); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ===== PEOPLE CARD (sidebar) ===== */
.people-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.people-item:last-child { border-bottom: none; }
.people-info { flex: 1; min-width: 0; }
.people-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-sub { font-size: 11px; color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media(max-width: 600px) {
  .hero h1 { font-size: 24px; }
  .nav-icon span { display: none; }
}
