/* =====================================
   INDEX UI – PREMIUM HIGH-CTR VERSION
===================================== */

/* ---------- GLOBAL ---------- */
:root{
  --accent:#ff3d3d;
  --accent2:#ff0077;
  --bg:#0b0b0f;
  --card:rgba(255,255,255,0.05);
  --border:rgba(255,255,255,0.12);
  --text:#e5e5e5;
  --muted:#b5b5b5;
}

body{
  background: linear-gradient(135deg, #0b0b0f 0%, #1a1a2e 50%, #16213e 100%);
  color:var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 61, 61, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 119, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- NAVBAR POLISH ---------- */
nav{
  backdrop-filter: blur(10px);
  background:linear-gradient(
    135deg,
    rgba(10,10,18,.9),
    rgba(20,20,35,.9)
  );
  border-bottom:1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(255,61,61,0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

nav > div {
  display: flex;
  gap: 12px;
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-btn:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(255,61,61,0.5); }
  to { text-shadow: 0 0 20px rgba(255,61,61,0.8), 0 0 30px rgba(255,61,61,0.5); }
}

/* ---------- HERO ---------- */
.hero{
  text-align:center;
  padding:90px 20px 60px;
  animation: fadeInUp 0.8s ease;
}

.hero .badge{
  display:inline-block;
  padding:6px 16px;
  font-size:.75rem;
  letter-spacing:1px;
  border-radius:20px;
  background:rgba(255,61,61,.15);
  color:var(--accent);
  margin-bottom:18px;
}

.hero h1{
  font-size:2.7rem;
  max-width:760px;
  margin:0 auto 16px;
  line-height:1.2;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero p{
  max-width:650px;
  margin:0 auto 28px;
  font-size:1.05rem;
  line-height:1.7;
  color:var(--muted);
}

/* ---------- HERO BUTTONS ---------- */
.hero-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
  padding:13px 30px;
  border-radius:30px;
  font-weight:700;
  font-size:.9rem;
  cursor:pointer;
  transition:.25s ease;
  text-decoration:none;
}

.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff;
  box-shadow:0 10px 30px rgba(255,61,61,.4);
}

.btn-primary:hover{
  transform:translateY(-3px) scale(1.05);
}

.btn-secondary{
  background:transparent;
  border:1px solid var(--accent);
  color:var(--accent);
}

.btn-secondary:hover{
  background:var(--accent);
  color:#000;
}

/* ---------- TRUST STRIP ---------- */
.trust-strip{
  margin-top:22px;
  font-size:.8rem;
  color:#aaa;
  letter-spacing:.5px;
}

/* ---------- CARDS GRID ---------- */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
  max-width:1100px;
  margin:50px auto 0;
  padding:0 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* ---------- CARD ---------- */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius:18px;
  padding:22px;
  transition:.35s ease;
  backdrop-filter:blur(10px);
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    135deg,
    transparent,
    rgba(255,61,61,.12),
    transparent
  );
  opacity:0;
  transition:.35s;
}

.card:hover::before{opacity:1}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 50px rgba(255,61,61,.35);
  border-color: var(--accent);
}

.card h3{
  color:var(--accent);
  margin-bottom:10px;
  font-size:1.1rem;
  position: relative;
  z-index: 1;
}

.card p{
  font-size:.95rem;
  color:#ccc;
  line-height:1.6;
  position: relative;
  z-index: 1;
}

/* ---------- CARD ACTIONS ---------- */
.card .actions{
  display:flex;
  gap:12px;
  margin-top:16px;
}

.mega-link,
.profile-link{
  flex:1;
  text-align:center;
  padding:10px 0;
  border-radius:25px;
  font-weight:700;
  font-size:.85rem;
  cursor:pointer;
  text-decoration:none;
  transition:.25s;
}

.mega-link{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff;
}

.mega-link:hover{transform:scale(1.05)}

.profile-link{
  border:1px solid var(--accent);
  color:var(--accent);
}

.profile-link:hover{
  background:var(--accent);
  color:#000;
}

/* ---------- CONTENT CTA ---------- */
.content-cta {
  background: linear-gradient(135deg, var(--card), rgba(255,61,61,0.1));
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(255,61,61,0.3);
  animation: fadeInUp 0.8s ease 0.6s both;
  position: relative;
  overflow: hidden;
}

.content-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,61,61,0.2), transparent);
  animation: shine 3s infinite;
}

.content-cta h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.content-cta p {
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 13px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: .25s ease;
  box-shadow: 0 10px 30px rgba(255,61,61,.4);
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ---------- BLOG WRAP ---------- */
.blog-wrap {
  animation: fadeInUp 0.8s ease 0.4s both;
  max-width: 900px;
  margin: 60px auto;
  background: var(--card);
  padding: 60px 50px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.blog-wrap h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  text-align: center;
}

.blog-wrap .blog-warning {
  background: rgba(255,61,61,0.1);
  border-left: 4px solid var(--accent);
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 8px;
  color: var(--text);
}

.blog-wrap h2 {
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}

.blog-wrap p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text);
}

.blog-wrap .blog-end {
  font-style: italic;
  color: var(--muted);
  margin-top: 30px;
  text-align: center;
  font-weight: 600;
}

.blog-wrap .blog-note {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 500;
}

/* ---------- BIG CTA ---------- */
.big-cta{
  margin:70px auto;
  text-align:center;
  padding:40px 20px;
}

.big-cta h2{
  font-size:1.8rem;
  margin-bottom:14px;
  color:#fff;
}

.big-cta p{
  max-width:600px;
  margin:0 auto 22px;
  color:#bbb;
}

/* ---------- FOOTER ---------- */
footer{
  text-align:center;
  padding:25px 15px;
  font-size:.8rem;
  color:#888;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-content p {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  color: var(--accent2);
}

/* ---------- AGE GATE ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
}

.age-box {
  background: var(--card);
  color: var(--text);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(255,61,61,.5);
  border: 1px solid var(--border);
  animation: slideUp 0.3s ease;
}

.age-box h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.age-box p {
  margin-bottom: 30px;
  color: var(--muted);
}

.age-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-actions button {
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: .25s ease;
  border: none;
}

.age-actions button:first-child {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,61,61,.4);
}

.age-actions button:first-child:hover {
  transform: translateY(-3px) scale(1.05);
}

.age-actions button:last-child {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.age-actions button:last-child:hover {
  background: var(--accent);
  color: #000;
}

/* ---------- CHAT LAUNCHER ---------- */
#chatLauncher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 99998;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 20px rgba(255,61,61,0.5);
  transition: transform 0.3s ease;
}

#chatLauncher:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 4px 20px rgba(255,61,61,0.5); }
  50% { box-shadow: 0 4px 30px rgba(255,61,61,0.8); }
  100% { box-shadow: 0 4px 20px rgba(255,61,61,0.5); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- MOBILE ---------- */
@media(max-width:768px){
  nav {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  nav .logo {
    font-size: 1.3rem;
  }

  nav > div {
    width: 100%;
    justify-content: center;
  }

  .nav-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .hero{padding:70px 18px 50px}
  .hero h1{font-size:2.1rem}
  .hero p{font-size:.95rem}
}

@media(max-width:480px){
  nav .logo {
    font-size: 1.2rem;
  }

  .nav-btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .hero h1{font-size:1.9rem}
  .btn-primary,.btn-secondary{width:100%}
}

/* ---------- MOBILE FIXES: prevent overflow, tighten padding ---------- */
@media (max-width:768px) {
  /* Reduce blog card padding and margins for small screens */
  .blog-wrap {
    padding: 24px 16px !important;
    margin: 20px 12px !important;
    border-radius: 12px;
  }

  .cards { padding: 0 12px; gap: 14px; }

  /* Make CTAs and hero buttons stack and use full width */
  .hero-actions { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-secondary, .cta-btn, .mega-link, .profile-link { width: 100%; box-sizing: border-box; }

  /* Prevent ad iframes from forcing horizontal scroll */
  .banner-ad, .inline-ad { max-width: 100%; overflow: hidden; }
  .banner-ad iframe, .inline-ad iframe, .banner-ad > iframe, .inline-ad > iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile sticky CTA (make it visible but non-obtrusive) */
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    justify-content: center;
    z-index: 99999;
  }

  .mobile-sticky-cta a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 61, 61, 0.4);
    transition: all 0.3s ease;
    animation: ctaPulse 3s infinite;
    position: relative;
    overflow: hidden;
  }

  .mobile-sticky-cta a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
  }

  .mobile-sticky-cta a:hover::before {
    left: 100%;
  }

  .mobile-sticky-cta a:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(255, 61, 61, 0.6);
  }

  @keyframes ctaPulse {
    0%, 100% {
      box-shadow: 0 4px 15px rgba(255, 61, 61, 0.4);
    }
    50% {
      box-shadow: 0 4px 20px rgba(255, 61, 61, 0.7), 0 0 25px rgba(255, 61, 61, 0.3);
    }
  }

  /* Adjust chat launcher position on mobile to avoid overlap with sticky CTA */
  @media (max-width: 768px) {
    #chatLauncher {
      bottom: 80px; /* Move up to avoid overlapping with mobile sticky CTA */
      width: 50px;
      height: 50px;
      font-size: 20px;
    }
  }
}
