/* ========== GLOBAL RESETS ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* ========== NAVBAR (if used) ========== */
.navbar {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 16px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.navbar h1 {
  font-size: 22px;
  font-weight: 600;
}

.navbar .search {
  margin-left: auto;
}

.navbar .search input {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ========== GRID / CARD BASE ========== */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 50px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 50px;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  width: 100%;
  padding-top: 125.5%;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-content {
  padding: 12px 16px;
  flex: 1;
}

.card-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 14px;
  color: #777;
  margin-bottom: 12px;
}

.card-footer {
  padding: 8px 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #999;
}

/* ========== RESPONSIVE GRID BREAKPOINTS ========== */
@media (max-width: 600px) {
  .navbar h1,
  .navbar p {
    font-size: 18px;
    text-align: left;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ========== LEGACY HERO (fallback) ========== */
.hero {
  position: relative;
  height: 30vh;
  min-height: 300px;
  background: url("../images/header.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* ========== PROFILE DETAILS PAGE (single) ========== */
.single-card-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  padding: 20px;
}

.single-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  width: 600px;
  max-width: 90%;
  text-align: center;
  padding: 20px;
}

.single-card-image img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 20px;
}

.single-card-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.single-card-info p {
  font-size: 16px;
  color: #666;
}

/* ================================================
   🌹 NEW LANDING PAGE DESIGN — WOMEN LOOKING FOR MEN
   ================================================ */
.hero-new {
  position: relative;
  height: 40vh;
  background: url('../images/header.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero-new .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.hero-new .hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 20px;
}
.hero-new h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.hero-new p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.cta-btn {
  background-color: #e63946;
  color: #fff;
  padding: 14px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.cta-btn:hover {
  background-color: #c92838;
  transform: translateY(-2px);
}

/* --- HOW IT WORKS --- */
.how-section {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
}
.how-section h2 {
  font-size: 1.8rem;
  color: #993a8e;
  margin-bottom: 40px;
}
.how-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.step {
  width: 220px;
}
.step-icon {
  font-size: 2rem;
}
.step h3 {
  margin: 10px 0;
}

/* --- PROFILES GRID --- */
.profiles-section {
  padding: 50px 20px;
  background: #fdf8fd;
  text-align: center;
}
.profiles-section h2 {
  color: #993a8e;
  font-size: 1.6rem;
  margin-bottom: 30px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}
.profile-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.profile-card:hover {
  transform: translateY(-5px);
}
.profile-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.profile-info {
  padding: 16px;
}
.profile-info h3 {
  color: #333;
  margin-bottom: 8px;
}
.profile-info p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.profile-btn {
  display: inline-block;
  background: #993a8e;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.profile-btn:hover {
  background: #7a2e72;
}
.loading-text {
  margin-top: 20px;
  color: #888;
}

/* --- FOOTER CTA --- */
.cta-footer {
  text-align: center;
  background: #fff;
  padding: 60px 20px;
  border-top: 1px solid #eee;
}
.cta-footer h3 {
  color: #333;
  margin-bottom: 20px;
}
.cta-footer .cta-btn.large {
  font-size: 1.1rem;
  padding: 16px 36px;
}
.trust-text {
  margin-top: 20px;
  color: #777;
  font-size: 0.9rem;
}

/* ================================================
   📱 RESPONSIVE OPTIMIZATION
   ================================================ */
@media (max-width: 1024px) {
  .hero-new {
    height: 70vh;
  }
  .hero-new h1 {
    font-size: 1.8rem;
  }
  .hero-new p {
    font-size: 1rem;
  }
  .cta-btn {
    padding: 12px 26px;
    font-size: 1rem;
  }
  .how-steps {
    gap: 25px;
  }
  .step {
    width: 180px;
  }
  .profiles-section h2 {
    font-size: 1.4rem;
  }
  .profile-img img {
    height: 220px;
  }
  .profile-info h3 {
    font-size: 1rem;
  }
}

@media (max-width: 268px) {
  .hero-new {
    height: 60vh;
    padding: 0 10px;
  }
  .hero-new h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .hero-new p {
    font-size: 0.95rem;
  }
  .how-section {
    padding: 40px 10px;
  }
  .how-steps {
    flex-direction: column;
    align-items: center;
  }
  .profiles-section {
    padding: 30px 10px;
  }
  .profile-card {
    max-width: 340px;
    margin: 0 auto;
  }
  .cta-footer {
    padding: 40px 10px;
  }
  .cta-footer h3 {
    font-size: 1.1rem;
  }
  .cta-footer .cta-btn.large {
    width: 80%;
    font-size: 1rem;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .hero-new {
    height: 30vh;
  }
  .hero-new h1 {
    font-size: 1.3rem;
  }
  .hero-new p {
    font-size: 0.9rem;
  }
  .cta-btn {
    font-size: 0.95rem;
    padding: 10px 22px;
  }
  .profile-img img {
    height: 200px;
  }
  .profile-info p {
    font-size: 0.9rem;
  }
}

/* --- Optional: fixed CTA button for mobile --- */
@media (max-width: 768px) {
  .cta-btn.fixed {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  }
}
/* HOW IT WORKS SECTION */
/* 🌟 COME FUNZIONA SECTION */
.how-section {
  background: #fff;
  text-align: center;
  padding: 30px 15px;
}
.how-section h2 {
  font-size: 1.8rem;
  margin-bottom: 35px;
  color: #000;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Steps container */
.how-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: nowrap;
}

/* Individual step cards */
.step {
  flex: 1;
  max-width: 180px;
  background: #fff;
  border-radius: 10px;
  padding: 20px 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s ease;
}
.step:hover {
  transform: translateY(-4px);
}
.step i {
  font-size: 32px;
  color: #ff4d4f;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 1rem;
  color: #111;
  font-weight: 600;
}

/* 📱 Mobile: shrink icons + text so all 3 fit in one line */
@media (max-width: 768px) {
  .how-steps {
    gap: 10px;
  }
  .step {
    padding: 10px 5px;
    max-width: 110px;
  }
  .step i {
    font-size: 22px;
    margin-bottom: 5px;
  }
  .step h3 {
    font-size: 0.8rem;
    line-height: 1.1;
  }
  .how-section h2 {
    font-size: 1.4rem;
  }
}



/* PROFILE GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}
.profile-card {
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease;
}
.profile-card:hover {
  transform: translateY(-4px);
}
.profile-img img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.profile-info {
  padding: 16px;
  text-align: center;
}
.online-status {
  color: #2ecc71;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.online-status i {
  font-size: 8px;
  margin-right: 4px;
}
.profile-info h3 {
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 4px;
}
.profile-info .city {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.profile-btn {
  background: #ff4d4f;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.profile-btn:hover {
  background: #e33c3f;
}

/* LOAD MORE BUTTON */
.load-more {
  background: #f0f0f0;
  color: #000;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  margin-bottom: 60px;
}
.load-more:hover {
  background: #e4e4e4;
}
