/* ColombiaRemote custom styles (complements Tailwind CDN) */
:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --navy: #0f172a;
}

html { scroll-behavior: smooth; }

.brand-mark {
  width: 1.75rem; height: 1.75rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, #fcd116 0 50%, #003893 50% 75%, #ce1126 75%);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.1rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem;
  border: 1px solid transparent; transition: all .15s ease; cursor: pointer; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--amber); color: #1e1b0a; }
.btn-primary:hover:not(:disabled) { background: var(--amber-dark); color: #fff; }
.btn-ghost { background: transparent; color: #334155; border-color: #e2e8f0; }
.btn-ghost:hover:not(:disabled) { background: #f1f5f9; }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-amber { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.btn-amber:hover:not(:disabled) { background: #fde68a; }
.btn-amber.is-active { background: #92400e; color: #fff; }

.nav-link { display: inline-flex; align-items: center; padding: 0.4rem 0.75rem; border-radius: 0.5rem; color: #475569; font-weight: 500; white-space: nowrap; }
.nav-link:hover { background: #f1f5f9; color: #0f172a; }
.nav-link-active { color: #b45309; background: #fffbeb; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: .5rem; border: 1px solid #e2e8f0; font-weight: 600; font-size: .8rem; color: #334155; }
.lang-switch:hover { border-color: var(--amber); color: #b45309; }

/* Cards */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.job-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 1.25rem; transition: box-shadow .15s, border-color .15s; }
.job-card:hover { border-color: #fcd34d; box-shadow: 0 4px 14px rgba(245,158,11,.12); }
.company-avatar {
  width: 3rem; height: 3rem; border-radius: 0.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.25rem;
}
.company-avatar-lg { width: 4rem; height: 4rem; font-size: 1.75rem; }
.category-card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1rem; background: #fff;
  border: 1px solid #e2e8f0; border-radius: .75rem; transition: all .15s;
}
.category-card:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,23,42,.06); }
.feature-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #fffbeb; color: var(--amber-dark); font-size: 1.4rem;
}
.employer-cta {
  background: linear-gradient(120deg, #0f172a, #1e3a8a); border-radius: 1rem; padding: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.hero { background: radial-gradient(1200px 500px at 20% -10%, #1e3a8a 0%, transparent 60%), linear-gradient(160deg, #0f172a 0%, #172554 100%); }

/* Forms */
.label { display: block; font-size: .8rem; font-weight: 600; color: #475569; margin-bottom: .3rem; }
.input {
  width: 100%; border: 1px solid #cbd5e1; border-radius: .5rem; padding: .55rem .75rem; font-size: .9rem;
  background: #fff; color: #0f172a; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.input-lg { padding: .8rem 1rem; font-size: 1rem; }
textarea.input { resize: vertical; min-height: 5rem; line-height: 1.5; }
.role-option { display: flex; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid #e2e8f0; border-radius: .5rem; cursor: pointer; font-size: .9rem; }
.role-option:has(input:checked) { border-color: var(--amber); background: #fffbeb; }
.role-option input { accent-color: var(--amber); }

/* Badges & chips */
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-slate { background: #f1f5f9; color: #334155; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fee2e2; color: #991b1b; }
.skill-chip { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-size: .75rem; padding: .15rem .55rem; border-radius: .4rem; }

.section-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: .75rem; }

/* Translation bar */
.translation-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: .6rem; padding: .6rem .9rem;
}
[data-tr].is-translating { opacity: .5; }
[data-tr].is-translated { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 1rem);
  background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: .6rem; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #991b1b; }
.toast.success { background: #166534; }

.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Featured jobs */
.job-card-featured { border-color: #fbbf24; background: linear-gradient(180deg, #fffdf5 0%, #fff 60%); box-shadow: 0 2px 10px rgba(245,158,11,.12); }

/* Messaging */
.msg { max-width: 80%; padding: .6rem .85rem; border-radius: .9rem; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg-mine { margin-left: auto; background: var(--navy); color: #fff; border-bottom-right-radius: .25rem; }
.msg-theirs { background: #f1f5f9; color: #0f172a; border-bottom-left-radius: .25rem; }
.msg-meta { font-size: .7rem; opacity: .65; margin-top: .25rem; }
.msg-original { font-size: .78rem; opacity: .7; border-top: 1px dashed rgba(148,163,184,.5); margin-top: .4rem; padding-top: .3rem; }

/* Admin tables */
.admin-table { width: 100%; font-size: .82rem; }
.admin-table th { text-align: left; padding: .6rem .75rem; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.admin-table td { padding: .55rem .75rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.admin-table tr:hover td { background: #f8fafc; }
