/* assets/css/style.css */
:root {
  --blue: #1a56db;
  --blue-dark: #1245b4;
  --blue-light: #e8f0fe;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --green: #10b981;
  --red: #ef4444;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-lg: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 15px; color: var(--gray-900); background: var(--gray-50); line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* TOPNAV */
.topnav { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.topnav-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; height: 60px; gap: 12px; }
.topnav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--gray-900); text-decoration: none; flex-shrink: 0; }
.topnav-brand span { color: var(--blue); }
.topnav-tabs { display: flex; gap: 4px; flex: 1; margin-left: 20px; }
.topnav-tab { padding: 8px 16px; border-radius: 6px; font-weight: 500; color: var(--gray-600); text-decoration: none; transition: all .15s; font-size: 14px; white-space: nowrap; }
.topnav-tab:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }
.topnav-tab.active { background: var(--blue); color: var(--white); }
.topnav-logout { margin-left: auto; padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; color: var(--gray-600); text-decoration: none; transition: all .15s; white-space: nowrap; }
.topnav-logout:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }

/* MOBILE NAV */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-200); z-index: 100; box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
.mobile-nav-inner { display: flex; }
.mobile-nav-tab { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 8px; color: var(--gray-400); text-decoration: none; font-size: 11px; font-weight: 500; gap: 4px; transition: color .15s; }
.mobile-nav-tab svg { width: 22px; height: 22px; }
.mobile-nav-tab.active { color: var(--blue); }
.mobile-nav-tab:hover { text-decoration: none; }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.container-narrow { max-width: 620px; margin: 0 auto; padding: 24px 16px; }

/* CARD */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: var(--blue-light); color: #1e40af; border: 1px solid #bfdbfe; }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-label .req { color: var(--red); }
.form-control { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-size: 14px; color: var(--gray-900); background: var(--white); transition: border-color .15s, box-shadow .15s; outline: none; appearance: none; -webkit-appearance: none; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.form-control:read-only { background: var(--gray-100); color: var(--gray-600); }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section { margin-bottom: 28px; }
.form-section-title { font-size: 15px; font-weight: 700; color: var(--gray-900); padding-bottom: 10px; border-bottom: 2px solid var(--blue-light); margin-bottom: 18px; }

/* VISIBILITY */
.visibility-group { display: flex; align-items: center; gap: 12px; }
.visibility-group .form-control { flex: 1; }
.vis-toggle { display: flex; gap: 4px; flex-shrink: 0; }
.vis-btn { padding: 8px 12px; border: 1.5px solid var(--gray-300); border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--gray-600); background: var(--white); transition: all .15s; }
.vis-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* CHECKBOXES */
.checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox-item { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

/* RADIO */
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-item { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; padding: 8px 16px; border: 1.5px solid var(--gray-300); border-radius: 20px; color: var(--gray-600); transition: all .15s; }
.radio-item input[type="radio"] { display: none; }
.radio-item.checked { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* CHAR COUNTER */
.char-counter { font-size: 12px; color: var(--gray-400); text-align: right; margin-top: 4px; }
.char-counter.near { color: #f59e0b; }
.char-counter.full { color: var(--red); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #dc2626; color: var(--white); }
.btn-warn { background: #fef3c7; color: #92400e; border: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; width: 100%; }
.btn-block { width: 100%; }

/* AUTH */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: var(--gray-50); }
.auth-logo { margin-bottom: 24px; text-align: center; }
.auth-logo .brand { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.auth-logo .brand span { color: var(--blue); }
.auth-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px 32px; width: 100%; max-width: 420px; }
.auth-title { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 24px; color: var(--gray-900); }
.auth-footer { text-align: center; margin-top: 18px; font-size: 14px; color: var(--gray-600); }

/* ARTIST DATABASE */
.filter-bar { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.filter-row-1 { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; margin-bottom: 12px; }
.filter-row-2 { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.filter-search-wrap { position: relative; }
.filter-search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); width: 16px; height: 16px; }
.filter-search-wrap input { padding-left: 34px; }

.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.artist-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.artist-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.artist-card-photo { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--gray-100); }
.artist-card-placeholder { width: 100%; aspect-ratio: 1; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.artist-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.artist-card-name { font-size: 15px; font-weight: 700; }
.artist-card-sub { font-size: 13px; color: var(--gray-600); }
.artist-card-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.artist-card-footer { padding: 0 14px 14px; }

/* CHIPS */
.chip { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--blue-light); color: var(--blue); }
.chip-green { background: #d1fae5; color: #065f46; }
.chip-gray { background: var(--gray-100); color: var(--gray-600); }

/* PROFILE VIEW */
.profile-view-header { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.profile-view-photo { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; background: var(--gray-100); flex-shrink: 0; border: 3px solid var(--gray-200); }
.profile-view-info { flex: 1; }
.profile-view-name { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.profile-view-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--gray-600); margin-top: 12px; }
.profile-view-meta-item { display: flex; align-items: center; gap: 6px; }
.profile-view-meta-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.profile-section-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.contact-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.contact-item:last-child { border-bottom: none; }
.contact-item svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; color: var(--gray-700); text-decoration: none; transition: all .15s; }
.social-link:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* MY PROFILE */
.photo-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.photo-preview { width: 90px; height: 90px; border-radius: 10px; object-fit: cover; background: var(--gray-100); border: 2px solid var(--gray-200); }
.file-drop { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 14px 16px; text-align: center; cursor: pointer; transition: all .15s; background: var(--gray-50); position: relative; }
.file-drop:hover { border-color: var(--blue); background: var(--blue-light); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop-label { font-size: 13px; color: var(--gray-600); pointer-events: none; }

/* COMPLETION BANNER */
.completion-banner { background: linear-gradient(135deg,#1a56db,#3b82f6); color: white; border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.completion-banner svg { width: 32px; height: 32px; flex-shrink: 0; opacity: .9; }
.completion-banner h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.completion-banner p { font-size: 14px; opacity: .9; }

/* ADMIN */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat-number { font-size: 32px; font-weight: 800; color: var(--blue); }
.stat-label { font-size: 13px; color: var(--gray-600); font-weight: 500; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { background: var(--gray-50); padding: 10px 14px; text-align: left; font-weight: 600; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); font-size: 13px; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.admin-table tr:hover td { background: var(--gray-50); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-blocked { background: #fee2e2; color: #991b1b; }
.badge-admin { background: #ede9fe; color: #5b21b6; }
.badge-user { background: var(--gray-100); color: var(--gray-600); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 18px; color: var(--gray-700); margin-bottom: 8px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .topnav-tabs { display: none; }
  .topnav-logout { display: none; }
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
  .form-row { grid-template-columns: 1fr; }
  .filter-row-1 { grid-template-columns: 1fr 1fr; }
  .filter-row-1 .filter-search-wrap { grid-column: 1 / -1; }
  .artists-grid { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
  .profile-view-header { flex-direction: column; align-items: center; text-align: center; }
  .auth-box { padding: 24px 20px; }
  .admin-table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  .artists-grid { grid-template-columns: 1fr 1fr; }
  .filter-row-1 { grid-template-columns: 1fr; }
}
