/* community.css */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Inter,sans-serif;
  background:#f5f6f8;
  color:#111;
}

/* NAVBAR */

.navbar{
  position:fixed;
  top:0;
  width:100%;
  z-index:999;

  padding:22px 60px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  background:rgba(5,10,20,.75);
  backdrop-filter:blur(18px);
}

.logo{
  color:#fff;
  text-decoration:none;
  font-size:36px;
  font-weight:800;
}

.nav-links{
  display:flex;
  gap:34px;
}

.nav-links a{
  color:#d5d5d5;
  text-decoration:none;
  font-size:15px;
}

.nav-links a.active,
.nav-links a:hover{
  color:#fff;
}

.nav-right{
  display:flex;
  gap:16px;
  align-items:center;
}

.nav-right a{
  text-decoration:none;
  color:#fff;
  font-size:14px;
}

.join-btn{
  background:#fff;
  color:#111 !important;

  padding:11px 20px;
  border-radius:14px;
  font-weight:600;
}

.ai-btn{
  background:rgba(255,255,255,.08);

  padding:11px 18px;
  border-radius:14px;
}

/* HERO */

.hero-section{
  position:relative;
  height:520px;
  overflow:hidden;
}

.hero-bg{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay{
  position:absolute;
  inset:0;

  background:rgba(0,0,0,.5);
}

.hero-content{
  position:absolute;
  inset:0;

  z-index:2;

  padding:150px 70px 0;
}

.hero-content h1{
  font-size:72px;
  color:#fff;
  margin-bottom:12px;
}

.hero-content p{
  color:#f1f1f1;
  font-size:19px;
  line-height:1.6;
  max-width:600px;
}

/* STATS */

.stats-grid{
  margin-top:40px;

  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.stat-card{
  background:rgba(17,24,39,.72);
  backdrop-filter:blur(14px);

  border-radius:20px;

  padding:26px;

  display:flex;
  align-items:center;
  gap:18px;

  color:#fff;

  box-shadow:0 10px 40px rgba(0,0,0,.18);
}

.stat-card i{
  width:60px;
  height:60px;

  border-radius:16px;

  background:#fff;

  color:#111;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:24px;
}

.stat-card h2{
  font-size:38px;
}

.stat-card span{
  color:#e0e0e0;
}

/* SECTION */

.section{
  padding:60px 70px;
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;

  margin-bottom:28px;
}

.section-header h2{
  font-size:36px;
  margin-bottom:10px;
}

.section-header p{
  color:#666;
}

.section-header a{
  text-decoration:none;
  color:#111;
  font-weight:600;
}

/* CREATORS */

.creators-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:20px;
}

.creator-card{
  border-radius:24px;
  overflow:hidden;

  position:relative;
  height:310px;

  background:#111;
  color:#fff;

  text-decoration:none;
}

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

.creator-overlay{
  position:absolute;
  inset:0;

  background:linear-gradient(
    to top,
    rgba(0,0,0,.88),
    rgba(0,0,0,.1)
  );

  padding:18px;

  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.rank-badge{
  width:34px;
  height:34px;

  border-radius:12px;

  background:#eab308;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight:700;
}

.creator-profile{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.creator-avatar{
  width:92px;
  height:92px;

  border-radius:50%;
  border:4px solid rgba(255,255,255,.6);

  object-fit:cover;

  margin-bottom:16px;
}

.creator-profile h3{
  font-size:26px;
  margin-bottom:8px;
}

.creator-profile p{
  color:#ddd;
}

.creator-stats{
  margin-top:22px;

  display:flex;
  justify-content:space-between;
}

/* TWO COLUMN */

.two-column{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
}

.featured-box,
.ranking-box{
  background:#fff;
  border-radius:28px;
  padding:26px;

  box-shadow:0 5px 20px rgba(0,0,0,.05);
}

.box-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;

  margin-bottom:26px;
}

.box-header h2{
  font-size:32px;
  margin-bottom:8px;
}

.box-header p{
  color:#666;
}

.box-header a{
  color:#111;
  text-decoration:none;
  font-weight:600;
}

.box-header select{
  height:48px;
  border-radius:14px;
  border:1px solid #ddd;

  padding:0 14px;
}

/* FEATURED */

.featured-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.featured-item{
  position:relative;
  height:110px;
  border-radius:20px;
  overflow:hidden;
}

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

.featured-overlay{
  position:absolute;
  inset:0;

  background:rgba(0,0,0,.45);

  padding:20px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  color:#fff;
}

.follow-btn{
  height:42px;
  padding:0 20px;

  border:none;
  border-radius:999px;

  background:#111;
  color:#fff;

  cursor:pointer;
}

/* RANKINGS */

.ranking-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.ranking-item{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:18px;
  border:1px solid #eee;

  border-radius:18px;
}

.rank-left{
  display:flex;
  align-items:center;
  gap:18px;
}

.rank-number{
  width:40px;
  height:40px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#f3f4f6;
  font-weight:700;
}

.rank-user{
  display:flex;
  align-items:center;
  gap:14px;
}

.rank-user img{
  width:50px;
  height:50px;
  border-radius:50%;
}

.leaderboard-btn{
  margin-top:20px;

  height:58px;

  border-radius:18px;

  border:1px solid #ddd;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  text-decoration:none;
  color:#111;
  font-weight:600;
}

/* UPLOADS */

.uploads-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.upload-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;

  text-decoration:none;
  color:#111;

  box-shadow:0 5px 20px rgba(0,0,0,.05);
}

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

.upload-content{
  padding:18px;
}

.upload-content h3{
  margin-bottom:12px;
}

.upload-meta{
  display:flex;
  justify-content:space-between;
  color:#666;
  font-size:14px;
}

/* FOOTER */

.footer{
  background:#0b1120;
  padding:80px 70px 30px;
  color:#fff;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr 2fr;
  gap:50px;
}

.footer-grid h2{
  font-size:40px;
  margin-bottom:12px;
}

.footer-grid h4{
  margin-bottom:18px;
  color:#9ca3af;
}

.footer-grid a{
  display:block;
  margin-bottom:14px;

  color:#fff;
  text-decoration:none;
}

.newsletter{
  display:flex;
  margin-top:20px;
}

.newsletter input{
  flex:1;
  height:54px;

  border:none;
  outline:none;

  border-radius:14px 0 0 14px;

  padding:0 16px;
}

.newsletter button{
  width:60px;
  border:none;
  background:#fff;

  border-radius:0 14px 14px 0;
}

.socials{
  display:flex;
  gap:14px;
  margin-top:22px;
}

.socials a{
  width:42px;
  height:42px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  background:rgba(255,255,255,.08);
}

.footer-bottom{
  margin-top:50px;
  padding-top:24px;

  border-top:1px solid rgba(255,255,255,.08);

  display:flex;
  justify-content:space-between;

  color:#aaa;
}

/* RESPONSIVE */

@media(max-width:1200px){

  .creators-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .uploads-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .stats-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

@media(max-width:768px){

  .navbar{
    padding:20px;
  }

  .nav-links{
    display:none;
  }

  .hero-content{
    padding:140px 20px 0;
  }

  .hero-content h1{
    font-size:52px;
  }

  .stats-grid,
  .creators-grid,
  .uploads-grid,
  .two-column,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .section{
    padding:40px 20px;
  }

  .footer{
    padding:60px 20px 30px;
  }

  .footer-bottom{
    flex-direction:column;
    gap:12px;
  }

}

.uploads-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fill,minmax(260px,1fr));

  gap:24px;

}

.upload-card{

  display:block;

  overflow:hidden;

  border-radius:24px;

  text-decoration:none;

  background:#111827;

}

.upload-card img{

  width:100%;

  height:280px;

  object-fit:cover;

  display:block;

  transition:.3s;

}

.upload-card:hover img{

  transform:scale(1.05);

}

.creators-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(260px,1fr));

  gap:24px;

}

.creator-card{

  background:#fff;

  border-radius:24px;

  padding:24px;

  text-align:center;

  text-decoration:none;

  color:#111827;

  transition:.3s;

  border:1px solid #e5e7eb;

}

.creator-card:hover{

  transform:translateY(-4px);

}

.creator-card img{

  width:90px;
  height:90px;

  border-radius:50%;

  object-fit:cover;

  margin-bottom:16px;

}

.creator-card h3{

  margin-bottom:12px;

}

.creator-stats{

  display:flex;

  flex-direction:column;

  gap:8px;

  color:#6b7280;

  font-size:14px;

}

.featured-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.featured-user{

  display:flex;
  align-items:center;
  gap:16px;

  background:#fff;

  padding:18px;

  border-radius:20px;

  text-decoration:none;

  color:#111827;

  border:1px solid #e5e7eb;

  transition:.3s;
}

.featured-user:hover{
  transform:translateY(-3px);
}

.featured-user img{

  width:70px;
  height:70px;

  border-radius:50%;

  object-fit:cover;
}

.featured-info{
  flex:1;
}

.featured-info h3{
  margin-bottom:4px;
}

.featured-info p{
  color:#6b7280;
  margin-bottom:6px;
}

.featured-info span{
  font-size:13px;
  color:#9ca3af;
}

.featured-badge{

  background:#111827;
  color:#fff;

  padding:8px 14px;

  border-radius:999px;

  font-size:12px;
  font-weight:600;
}

.ranking-list{

  display:flex;

  flex-direction:column;

  gap:14px;

}

.ranking-item{

  display:flex;

  align-items:center;

  justify-content:space-between;

  padding:18px;

  border-radius:18px;

  background:#fff;

  border:1px solid #e5e7eb;

}

.ranking-left{

  display:flex;

  align-items:center;

  gap:16px;

}

.rank-number{

  width:48px;
  height:48px;

  border-radius:14px;

  background:#111827;

  color:#fff;

  display:flex;

  align-items:center;

  justify-content:center;

  font-weight:700;

}

.ranking-left h4{

  margin-bottom:4px;

}

.ranking-left span{

  color:#6b7280;

  font-size:13px;

}

.ranking-score{

  font-weight:700;

  font-size:18px;

}

.challenges-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(260px,1fr));

  gap:24px;

}

.challenge-card{

  background:#fff;

  border:1px solid #e5e7eb;

  border-radius:24px;

  padding:24px;

  transition:.3s;

}

.challenge-card:hover{

  transform:translateY(-4px);

}

.challenge-card h3{

  margin-bottom:12px;

}

.challenge-card p{

  color:#6b7280;

  margin-bottom:14px;

}

.challenge-card span{

  display:inline-block;

  background:#111827;

  color:#fff;

  padding:8px 14px;

  border-radius:999px;

  font-size:12px;

}