/* =========================================================
   ROSE PORTAL - Design System
   Bootstrap 5.3 + FontAwesome 6.x - Mobile First
   ========================================================= */

:root {
  --rose-50:  #fff1f5;
  --rose-100: #ffe1ec;
  --rose-300: #ff8fb1;
  --rose-500: #ff2d75;
  --rose-600: #e91e63;
  --rose-700: #c2185b;
  --gold:     #ffc857;

  --bg:        #ffffff;
  --bg-soft:   #f7f7fb;
  --bg-elev:   #ffffff;
  --surface:   #ffffffcc;
  --text:      #11131a;
  --text-soft: #5b6172;
  --border:    #ececf2;

  --grad-rose:  linear-gradient(135deg, #ff2d75 0%, #ff5e9c 50%, #ffb199 100%);
  --grad-night: linear-gradient(135deg, #1a1330 0%, #2a1746 50%, #4b1d5e 100%);
  --grad-gold:  linear-gradient(135deg, #ffd166 0%, #ff8fb1 100%);

  --shadow-sm: 0 2px 8px rgba(20, 20, 40, .06);
  --shadow-md: 0 10px 30px -10px rgba(255, 45, 117, .25);
  --shadow-lg: 0 25px 60px -15px rgba(20, 20, 40, .25);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", sans-serif;
}

[data-theme="dark"] {
  --bg:        #0b0a14;
  --bg-soft:   #11101d;
  --bg-elev:   #181627;
  --surface:   #181627cc;
  --text:      #f5f5fb;
  --text-soft: #a4a8bd;
  --border:    #25223a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 30px -10px rgba(255, 45, 117, .45);
  --shadow-lg: 0 25px 60px -15px rgba(0, 0, 0, .6);
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  transition: background-color .4s ease, color .3s ease;
}

h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }

.text-rose { color: var(--rose-500) !important; }
.text-gold { color: var(--gold) !important; }
.text-soft { color: var(--text-soft) !important; }
.bg-soft   { background: var(--bg-soft) !important; }
.bg-elev   { background: var(--bg-elev) !important; }

.grad-text {
  background: var(--grad-rose);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-rose-bg  { background: var(--grad-rose); }
.grad-night-bg { background: var(--grad-night); }

/* ---------- NAVBAR ---------- */
.rp-navbar {
  position: sticky; top: 0; z-index: 1030;
  background: var(--surface);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.rp-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.03em;
}
.rp-logo i { color: var(--rose-500); }

.rp-search {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1rem;
  display: flex; align-items: center; gap: .6rem;
  color: var(--text-soft);
  transition: all .25s ease;
}
.rp-search input {
  background: transparent; border: 0; outline: none;
  color: var(--text); flex: 1; min-width: 0;
}
.rp-search:focus-within {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(255,45,117,.12);
}

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.06); }
.theme-toggle .fa-sun  { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun  { display: inline-block; }

/* ---------- BUTTONS ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.2rem; transition: all .25s ease; }
.btn-rose {
  background: var(--grad-rose); color: #fff; border: 0;
  box-shadow: var(--shadow-md);
}
.btn-rose:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255,45,117,.5); }
.btn-ghost {
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
}
.btn-ghost:hover { border-color: var(--rose-500); color: var(--rose-500); }

.btn-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 80%;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(255,45,117,.35), transparent 60%),
    radial-gradient(50% 50% at 80% 20%, rgba(255,200,87,.25), transparent 60%),
    radial-gradient(60% 60% at 60% 80%, rgba(120,80,255,.25), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: heroFloat 14s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
}
.hero .lead { color: var(--text-soft); font-size: 1.05rem; }

.hero-search {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .75rem;
  box-shadow: var(--shadow-lg);
}
.hero-search .form-select,
.hero-search .form-control {
  border: 0; background: transparent; color: var(--text);
  box-shadow: none !important;
  padding: .85rem 1rem;
}
.hero-search .divider {
  width: 1px; background: var(--border); align-self: stretch;
}

/* ---------- CHIPS ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .85rem; font-weight: 500;
  white-space: nowrap;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--rose-500); color: var(--rose-500); transform: translateY(-2px); }
.chip.is-active { background: var(--grad-rose); color: #fff; border-color: transparent; }
.chip-scroll {
  display: flex; gap: .5rem; overflow-x: auto;
  scrollbar-width: none; padding-bottom: .25rem;
}
.chip-scroll::-webkit-scrollbar { display: none; }

/* ---------- SECTION ---------- */
.section { padding: 3rem 0; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title h2 { font-size: 1.4rem; margin: 0; }
.section-title h2 .emoji { font-size: 1.2em; margin-right: .25rem; }

/* ---------- CARD ANNUNCIO (creator-card) ---------- */
.creator-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  isolation: isolate;
  cursor: pointer;
}
.creator-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.creator-card .cc-media {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--grad-night);
  overflow: hidden;
}
.creator-card .cc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.creator-card:hover .cc-media img { transform: scale(1.08); }
.creator-card .cc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
}
.cc-badges {
  position: absolute; top: .75rem; left: .75rem; right: .75rem;
  display: flex; gap: .35rem; flex-wrap: wrap;
  z-index: 2;
}
.cc-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  background: rgba(0,0,0,.55); color: #fff;
  backdrop-filter: blur(6px);
}
.cc-badge.verified { background: linear-gradient(135deg, #2dd4bf, #0ea5e9); }
.cc-badge.super    { background: linear-gradient(135deg, #ffd166, #ff8fb1); color:#1a1330; }
.cc-badge.online   { background: #10b981; }
.cc-badge.online::before { content:""; width:6px; height:6px; border-radius:50%; background:#fff; box-shadow:0 0 0 0 #fff; animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.cc-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem; color: #fff; z-index: 2;
}
.cc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; display:flex; align-items:center; gap:.35rem; }
.cc-meta { font-size: .78rem; opacity: .85; display: flex; align-items:center; gap:.4rem; margin-top: .2rem; }
.cc-rose {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .3rem .55rem;
  border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem;
}
.cc-rose i { color: #ff8fb1; }

/* horizontal row scroll */
.row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: .9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
  scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 576px) { .row-scroll { grid-auto-columns: 40%; } }
@media (min-width: 992px) { .row-scroll { grid-auto-columns: 22%; } }
@media (min-width: 1400px){ .row-scroll { grid-auto-columns: 18%; } }

/* ---------- FEED ---------- */
.feed-item {
  display: flex; gap: .75rem; align-items: center;
  padding: .75rem; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border);
  transition: transform .2s ease;
}
.feed-item:hover { transform: translateX(4px); }
.feed-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.feed-text { font-size: .9rem; }
.feed-text b { color: var(--rose-500); }
.feed-time { font-size: .75rem; color: var(--text-soft); }

/* ---------- LEADERBOARD ---------- */
.leader-row {
  display: flex; align-items: center; gap: .9rem;
  padding: .65rem .75rem; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border);
  margin-bottom: .5rem;
}
.leader-rank {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items:center; justify-content:center;
  font-weight: 800; background: var(--bg-soft); color: var(--text-soft);
  flex: none;
}
.leader-row:nth-child(1) .leader-rank { background: var(--grad-gold); color:#1a1330; }
.leader-row:nth-child(2) .leader-rank { background: linear-gradient(135deg,#e5e7eb,#9ca3af); color:#1a1330; }
.leader-row:nth-child(3) .leader-rank { background: linear-gradient(135deg,#fdba74,#c2410c); color:#fff; }

.leader-avatar { width: 38px; height:38px; border-radius:50%; object-fit:cover; flex:none; }
.leader-name { font-weight: 600; }
.leader-rose { margin-left: auto; font-weight: 700; color: var(--rose-500); white-space:nowrap; }

/* ---------- FOOTER ---------- */
.rp-footer {
  margin-top: 4rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  color: var(--text-soft);
}
.rp-footer h6 { color: var(--text); font-weight: 700; margin-bottom: 1rem; }
.rp-footer a:hover { color: var(--rose-500); }

/* ---------- SCHEDA CREATOR ---------- */
.profile-cover {
  position: relative;
  height: 240px;
  background: var(--grad-night);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) { .profile-cover { height: 340px; border-radius: var(--radius-xl); } }
.profile-cover img { width:100%; height:100%; object-fit:cover; opacity:.7; }
.profile-cover::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
}

.profile-head {
  position: relative;
  margin-top: -70px;
  padding: 0 1rem;
  display: flex; align-items: end; gap: 1rem; flex-wrap: wrap;
}
.profile-avatar {
  width: 130px; height: 130px; border-radius: 50%;
  border: 5px solid var(--bg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  background: var(--bg-elev);
  flex: none;
}
.profile-name { font-size: clamp(1.4rem, 3vw, 2rem); margin:0; display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.profile-meta { color: var(--text-soft); font-size:.9rem; margin-top:.25rem; }

.stat-pill {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.5rem .85rem; border-radius:999px;
  background:var(--bg-elev); border:1px solid var(--border);
  font-weight:600; font-size:.85rem;
}
.stat-pill i { color: var(--rose-500); }

.tab-pills .nav-link {
  border-radius: 999px; color: var(--text-soft);
  padding: .5rem 1rem; font-weight: 600;
}
.tab-pills .nav-link.active {
  background: var(--grad-rose); color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
@media (min-width: 576px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap:.75rem; } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid .g-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-grid .g-item img { width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.08); }
.gallery-grid .g-item.premium::after {
  content:"\f023"; font-family:"Font Awesome 6 Free"; font-weight:900;
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.55); color:#fff; font-size:1.6rem;
  backdrop-filter: blur(8px);
}

.service-chip {
  background: var(--bg-elev); border:1px solid var(--border);
  padding:.55rem .85rem; border-radius: 12px;
  display:flex; align-items:center; gap:.5rem;
  font-size:.88rem;
}
.service-chip i { color: var(--rose-500); }

.contact-bar {
  position: sticky; bottom: 0; z-index: 30;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: .75rem; margin-top: 2rem;
}

/* Rose modal flying hearts */
.rose-fly {
  position: fixed; pointer-events: none;
  color: var(--rose-500);
  font-size: 1.4rem;
  animation: roseFly 1.6s ease-out forwards;
  z-index: 9999;
}
@keyframes roseFly {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-180px) scale(1.6) rotate(20deg); opacity: 0; }
}

/* ---------- ANIMATIONS on enter ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: all .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* utility */
.divider-y { width:1px; background: var(--border); align-self:stretch; }
