/* =========================
FONTS
========================= */

/* Cuturila */
@font-face {
font-family: "Cuturila";
src: url("../fonts/cuturilaregular.ttf") format("truetype");
}

/* Jenko */
@font-face {
font-family: "Jenko";
src: url("../fonts/jenkoregular.ttf") format("truetype");
}

/* =========================
BASE (CLEAN + SAFE)
========================= */
html, body {
margin: 0;
padding: 0;
min-height: 100%;
background: #0b0b0f;
overflow-x: hidden;
}

html {
background: #0b0b0f;
}

body {
font-family: 'Josefin Sans', sans-serif;
color: white;

min-height: 100vh;
min-height: 100dvh;

background: #0b0b0f;
position: relative;
}

/* =========================
FULL PAGE BACKDROP (FIXED PROPERLY)

covers EVERYTHING

no white leaks

no content blur
========================= */
body::before {
content: "";
position: fixed;
inset: 0;


background: rgba(10,10,20,0.65);
backdrop-filter: blur(6px);

z-index: 0;
pointer-events: none;
}

/* everything above backdrop */
.villa-bg,
.lb-layout,
.profile-layout {
position: relative;
z-index: 1;
}

/* =========================
VILLA BACKGROUND
========================= */
.villa-bg {
min-height: 100vh;
min-height: 100dvh;

background: url('../images/villa.jpeg') no-repeat center center/cover;
position: relative;
}

/* =========================
LOVEBOUND LAYOUT
========================= */
.lb-layout {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 40px;
}

.lb-left { width: 70%; }

.lb-right {
width: 30%;
display: flex;
justify-content: flex-end;
}

.lb-logo {
width: 180px;
opacity: 0.9;
}

/* =========================
SEARCH
========================= */
#searchInput {
width: 260px;
padding: 10px;

background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 10px;

color: white;
outline: none;
}

/* =========================
SUBHEADING
========================= */
.subheading {
font-size: 13px;
color: #aaa;
margin: 12px 0;
text-transform: uppercase;
letter-spacing: 1px;
}

/* =========================
GRID
========================= */
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
gap: 20px;
justify-content: start;
}

/* =========================
CARD
========================= */
.card {
width: 240px;
height: 320px;

position: relative;
overflow: hidden;
text-decoration: none;
color: white;

clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);

border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.05);

transition: 0.3s ease;
}

.card img {
width: 100%;
height: 100%;
object-fit: cover;
}

.card::before {
content: "";
position: absolute;
inset: -40%;

background: linear-gradient(
120deg,
transparent 40%,
rgba(255,255,255,0.25),
transparent 60%
);

transform: translateX(-120%) rotate(10deg);
transition: 0.6s ease;
}

.card:hover::before {
transform: translateX(120%) rotate(10deg);
}

.card::after {
content: "";
position: absolute;
inset: 0;

box-shadow:
0 -12px 25px rgba(0,180,255,0.25),
0  12px 25px rgba(255,80,160,0.25);

opacity: 0;
transition: 0.3s ease;
pointer-events: none;
}

.card:hover::after {
opacity: 1;
}

.card:hover {
transform: translateY(-5px) scale(1.03);
}

/* =========================
HOVER INFO
========================= */
.card-hover {
position: absolute;
inset: 0;

display: flex;
flex-direction: column;
justify-content: flex-end;

padding: 14px;

opacity: 0;
transform: translateY(10px);

background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
transition: 0.25s ease;
}

.card:hover .card-hover {
opacity: 1;
transform: translateY(0);
}

.card-hover h3 {
margin: 0;
font-size: 18px;
font-family: "Jenko";

background: linear-gradient(90deg, #ff4fa3, #ffd36e);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.card-hover p {
margin: 4px 0 0;
font-size: 12px;
color: #ddd;
}

/* =========================
PROFILE LAYOUT
========================= */
.profile-layout {
display: flex;
gap: 20px;

max-width: 950px;
margin: 60px auto;

padding: 20px;

background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 16px;

backdrop-filter: blur(10px);
}

/* =========================
INFOBOX
========================= */
.infobox {
width: 260px;
flex-shrink: 0;

background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 12px;

padding: 12px;
}

.infobox-img {
width: 100%;
border-radius: 10px;
margin-bottom: 10px;
}

.infobox-title {
font-size: 18px;
font-family: "Jenko", serif;

background: linear-gradient(90deg, #ff4fa3, #ffd36e);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.infobox-row {
display: flex;
justify-content: space-between;

padding: 6px 0;
font-size: 13px;

border-bottom: 1px solid rgba(255,255,255,0.08);
}

.infobox-row span:first-child {
color: #aaa;
}

/* =========================
STATS
========================= */
.stat-block {
margin-top: 12px;
}

.stat-label {
font-size: 12px;
color: #aaa;
margin-bottom: 4px;
}

.bar {
height: 7px;
width: 100%;
background: rgba(255,255,255,0.08);
border-radius: 20px;
overflow: hidden;
}

.fill {
height: 100%;
width: 0;

background: linear-gradient(90deg, #ff4fa3, #ffd36e);
box-shadow: 0 0 12px rgba(255,79,163,0.3);
}

/* =========================
PROFILE CARD TEXT
========================= */
.profile-card {
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 14px;

padding: 18px;
}

.tag {
display: inline-block;
background: rgba(255,79,163,0.15);
border: 1px solid rgba(255,211,110,0.35);

color: #ffd36e;
padding: 4px 10px;
border-radius: 10px;
font-size: 11px;
margin-bottom: 8px;
}

.name {
font-size: 26px;
font-family: "Jenko", serif;

background: linear-gradient(90deg, #ff4fa3, #ffd36e);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.profile-card p {
font-size: 14px;
color: #bbb;
line-height: 1.6;
}

.back {
display: inline-block;
margin-top: 14px;
color: #ffd36e;
text-decoration: none;
font-size: 13px;
}

/* =========================
📱 MOBILE FIXES (CENTERED + CLEAN)
========================= */
@media (max-width: 768px) {

/* Layout becomes vertical */
.lb-layout {
flex-direction: column;
padding: 20px;
gap: 20px;
}

.lb-left,
.lb-right {
width: 100%;
}

.lb-right {
justify-content: center;
}

.lb-logo {
width: 140px;
}

/* Grid centers nicely */
.grid {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
justify-content: center;
}

/* Cards */
.card {
width: 100%;
max-width: 220px;
height: 300px;
margin: 0 auto;
}

/* 🔥 PROFILE LAYOUT FIX /
.profile-layout {
flex-direction: column;
align-items: center;          / ✅ centers children */

margin: 20px auto;  
width: calc(100% - 20px);     /* ✅ prevents overflow */  
padding: 15px;

}

/* 🔥 INFOBOX FIX /
.infobox {
width: 100%;
max-width: 360px;             / ✅ keeps it inside glass */
}

/* 🔥 MAIN CARD FIX */
.profile-card {
width: 100%;
max-width: 600px;
padding: 14px;
}

.name {
font-size: 22px;
}

/* Search full width */
#searchInput {
width: 100%;
}

/* Prevent edge touching */
body {
padding: 0 10px;
}
}  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.65);
  backdrop-filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.villa-bg,
.lb-layout,
.profile-layout {
  position: relative;
  z-index: 1;
}

/* =========================
   BACKGROUND
========================= */
.villa-bg {
  min-height: 100vh;
  min-height: 100dvh;
  background: url('../images/villa.jpeg') no-repeat center/cover;
}

/* =========================
   LAYOUT (FIXED)
========================= */
.lb-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 40px;
}

/* 🔥 FIXED WIDTH ISSUE */
.lb-left {
  flex: 1;
}

.lb-right {
  width: auto;
  display: flex;
  justify-content: flex-end;
}

.lb-logo {
  width: 180px;
  opacity: 0.9;
}

/* =========================
   SEARCH
========================= */
#searchInput {
  width: 260px;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: white;
  outline: none;
}

/* =========================
   TEXT
========================= */
.subheading {
  font-size: 13px;
  color: #aaa;
  margin: 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================
   GRID (FIXED)
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}

/* =========================
   CARD (FIXED)
========================= */
.card {
  width: 100%;
  max-width: 260px;
  height: 320px;
  margin: 0 auto;

  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: white;

  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);

  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);

  transition: 0.3s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,0.25),
    transparent 60%
  );
  transform: translateX(-120%) rotate(10deg);
  transition: 0.6s ease;
}

.card:hover::before {
  transform: translateX(120%) rotate(10deg);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    0 -12px 25px rgba(0,180,255,0.25),
    0  12px 25px rgba(255,80,160,0.25);
  opacity: 0;
  transition: 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
}

/* =========================
   HOVER INFO
========================= */
.card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transform: translateY(10px);
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
  transition: 0.25s ease;
}

.card:hover .card-hover {
  opacity: 1;
  transform: translateY(0);
}

.card-hover h3 {
  margin: 0;
  font-size: 18px;
  font-family: "Jenko";
  background: linear-gradient(90deg, #ff4fa3, #ffd36e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-hover p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #ddd;
}

/* =========================
   PROFILE
========================= */
.profile-layout {
  display: flex;
  gap: 20px;
  max-width: 950px;
  margin: 60px auto;
  padding: 20px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;

  backdrop-filter: blur(10px);
}

.infobox {
  width: 260px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px;
}

.profile-card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .lb-layout {
    flex-direction: column;
    padding: 20px;
  }

  .lb-right {
    justify-content: center;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .profile-layout {
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    width: calc(100% - 20px);
  }

  .infobox,
  .profile-card {
    width: 100%;
    max-width: 500px;
  }

  #searchInput {
    width: 100%;
  }
}
