/* ============================================
   VALTENT MODERN DESIGN SYSTEM v2.1
   Fixed: text visibility, focus rings, no auto dark-mode
   ============================================ */

:root {
  --v-bg:           #ffffff;
  --v-bg-subtle:    #fafafa;
  --v-bg-muted:     #f4f4f5;
  --v-border:       #e5e5e5;
  --v-border-strong:#d4d4d8;

  --v-text:         #0a0a0a;
  --v-text-2:       #262626;
  --v-text-3:       #525252;
  --v-text-muted:   #737373;

  --v-accent:       #10b981;
  --v-accent-hover: #059669;
  --v-accent-soft:  #ecfdf5;
  --v-danger:       #ef4444;
  --v-like:         #10b981;

  --v-r-sm: 8px;
  --v-r:    12px;
  --v-r-lg: 16px;
  --v-r-xl: 24px;
  --v-r-full: 9999px;

  --v-shadow-1: 0 1px 2px rgba(0,0,0,0.04);
  --v-shadow-2: 0 4px 12px rgba(0,0,0,0.06);
  --v-shadow-3: 0 12px 32px rgba(0,0,0,0.10);

  --v-nav-h: 56px;
  --v-sidebar-w: 244px;
}

/* ========== BASE ========== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light; /* ⭐ Forces light mode */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  background: var(--v-bg) !important;
  color: var(--v-text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  letter-spacing: -0.025em;
  color: var(--v-text) !important;  /* ⭐ !important */
  font-weight: 700;
}

p, span, div, label, small, li, td, th, a, button {
  color: inherit;
}

/* ⭐⭐ CRITICAL: Force all text colors to be visible ⭐⭐ */
.text-white { color: #ffffff !important; }
.bg-white, .bg-white * { color: var(--v-text); }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ========== COLOR OVERRIDES ========== */
.bg-green-600, .bg-green-500 {
  background: var(--v-accent) !important;
  transition: background .15s ease;
}
.bg-green-700, .bg-green-800 { background: var(--v-accent-hover) !important; }
.hover\:bg-green-700:hover, .hover\:bg-green-600:hover {
  background: var(--v-accent-hover) !important;
}
.bg-green-100, .bg-green-50 { background: var(--v-accent-soft) !important; }
.text-green-600, .text-green-700 { color: var(--v-accent) !important; }
.text-green-500 { color: var(--v-accent) !important; }
.text-green-800 { color: var(--v-accent-hover) !important; }
.border-green-600, .border-green-500, .border-green-300 { border-color: var(--v-accent) !important; }

/* ========== CARDS ========== */
.bg-white.rounded-lg, .bg-white.rounded-xl, .bg-white.rounded-2xl, .card {
  border-radius: var(--v-r-lg) !important;
  border: 1px solid var(--v-border) !important;
  box-shadow: none !important;
  background: #ffffff !important;
  color: var(--v-text) !important;
}

/* ========== BUTTONS ========== */
button, .btn, a.btn {
  transition: all .15s ease;
  font-weight: 600;
  letter-spacing: -0.01em;
}
button:not(:disabled):active { transform: scale(0.97); }
button.rounded-full, a.rounded-full { border-radius: var(--v-r-full) !important; }

/* ========== INPUTS — HIGH CONTRAST + VISIBLE FOCUS ========== */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"],
input[type="tel"], input[type="url"], input[type="search"],
textarea, select {
  font-family: 'Inter', sans-serif !important;
  border-radius: var(--v-r) !important;
  border: 1.5px solid var(--v-border-strong) !important;
  background: #ffffff !important;
  color: #0a0a0a !important;             /* ⭐ Always dark text */
  caret-color: #0a0a0a !important;
  padding: 12px 14px;
  font-size: 14px;
  transition: all .15s ease;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--v-accent) !important;
  background: #ffffff !important;
  color: #0a0a0a !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18) !important;   /* ⭐ Visible focus ring */
}

input::placeholder, textarea::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

select option { color: #0a0a0a; background: #ffffff; }

/* Fix for browser autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0a0a0a !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ========== HEADER ========== */
header {
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--v-border) !important;
  color: var(--v-text) !important;
}
header a { color: var(--v-text); }

/* ========== SIDEBAR (desktop) ========== */
aside[role="navigation"] {
  background: #ffffff !important;
  border-right: 1px solid var(--v-border) !important;
  color: var(--v-text) !important;
}

/* ========== FOOTER ========== */
footer {
  background: #ffffff !important;
  color: var(--v-text-3) !important;
  border-top: 1px solid var(--v-border) !important;
}

/* ========== AVATARS ========== */
img.rounded-full {
  border-radius: 50% !important;
  object-fit: cover;
}

/* ========== MODALS ========== */
[id$="Modal"], [id$="Drawer"] {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[id$="Modal"] > div, [id$="Drawer"] > div {
  color: var(--v-text) !important;
}

/* ========== LIKE BUTTON ========== */
.like-btn { background: transparent; border: none; cursor: pointer; }
.like-text {
  font-size: 26px;               /* ⭐ Matches phoment icon size */
  line-height: 1;
  transition: transform .15s ease;
}
.like-btn:hover .like-text { transform: scale(1.1); }

/* ========== PHOMENT ICON ========== */
.phoment-icon,
.phoment-btn svg {
  width: 26px;
  height: 26px;
  color: #0a0a0a;
  transition: transform .15s ease;
}
.phoment-btn:hover .phoment-icon,
.phoment-btn:hover svg { transform: rotate(-6deg); }

/* ========== VERIFIED BADGE — ORIGINAL SIZE ========== */
.v-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 9999px;
  color: #fff;
}
.v-badge svg {
  width: 12px;
  height: 12px;
}

/* ========== FILE INPUT ========== */
input[type="file"] {
  background: #fafafa !important;
  border: 1px dashed var(--v-border-strong) !important;
  border-radius: var(--v-r) !important;
  padding: 14px !important;
  cursor: pointer;
  font-size: 13px;
  color: #0a0a0a !important;
}
input[type="file"]:hover {
  border-color: var(--v-text-3) !important;
  background: #fff !important;
}

/* ========== UTILITIES ========== */
.rounded-lg  { border-radius: var(--v-r) !important; }
.rounded-xl  { border-radius: var(--v-r-lg) !important; }
.rounded-2xl { border-radius: var(--v-r-xl) !important; }
.shadow-sm, .shadow-md, .shadow-lg, .shadow-xl { box-shadow: none !important; }

/* ========== BOTTOM NAV ========== */
.v-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v-nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--v-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.v-bottom-nav__item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  padding: 8px 0;
  color: #737373;
  background: transparent;
  border: none;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s;
}
.v-bottom-nav__item svg { width: 24px; height: 24px; }
.v-bottom-nav__item.is-active { color: #0a0a0a; }
.v-bottom-nav__item:active { opacity: .6; }

@media (max-width: 767px) {
  main { padding-bottom: calc(var(--v-nav-h) + env(safe-area-inset-bottom, 0)) !important; }
  .container { padding-left: 14px !important; padding-right: 14px !important; }
}

/* ========== FADE ========== */
main > * { animation: v-fade-in .25s ease-out; }
@keyframes v-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.v-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:16px; height:16px; border-radius:9999px; padding:2px;
  vertical-align:middle; flex-shrink:0;
}
.v-badge svg{ width:10px; height:10px; color:#fff; }

 .v-badge{
    display:inline-flex; align-items:center; justify-content:center;
    width:18px; height:18px; flex-shrink:0; position:relative;
    filter: drop-shadow(0 0 6px rgba(139,92,246,.55));
    animation: v-badge-pulse 2.4s ease-in-out infinite;
    vertical-align: middle;
  }
  .v-badge svg{ width:100%; height:100%; display:block; }
  .v-badge::after{
    content:""; position:absolute; inset:-3px; border-radius:9999px;
    background: radial-gradient(circle, rgba(236,72,153,.35), transparent 70%);
    z-index:-1;
  }
  @keyframes v-badge-pulse{
    0%,100%{ filter: drop-shadow(0 0 5px rgba(139,92,246,.55)); transform: scale(1); }
    50%    { filter: drop-shadow(0 0 12px rgba(236,72,153,.85)); transform: scale(1.06); }
  }
