/* collections.css */

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

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

/* NAVBAR */

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

  padding:22px 60px;

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

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

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

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

.nav-links a{
  color:#d8d8d8;
  text-decoration:none;
  font-size:15px;
  transition:.3s;
}

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

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

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

.join-btn{
  padding:11px 20px;
  border-radius:14px;
  background:#fff;
  color:#111;
  text-decoration:none;
  font-weight:600;
}

.ai-btn{
  padding:11px 18px;
  border-radius:14px;
  text-decoration:none;
  background:rgba(255,255,255,.08);
  color:#fff;
}

/* HERO */

.collections-hero{
  position:relative;
  height:440px;
  overflow:hidden;
}

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

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.55),
    rgba(0,0,0,.55)
  );
}

.hero-content{
  position:absolute;
  inset:0;
  z-index:10;

  padding:140px 80px 0;
}

.hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

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

.hero-content p{
  color:#e5e5e5;
  font-size:18px;
}

.create-btn{
  display:flex;
  align-items:center;
  gap:10px;

  padding:16px 24px;
  border-radius:18px;

  background:#fff;
  color:#111;
  text-decoration:none;
  font-weight:600;
}
.collection-modal{
  position:fixed;
  inset:0;

  background:rgba(3,7,18,.75);
  backdrop-filter:blur(12px);

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

  padding:24px;

  z-index:99999;
}

.collection-modal.show{
  display:flex;
}

.collection-modal-content{

  width:100%;
  max-width:760px;

  background:#ffffff;

  border-radius:32px;

  padding:38px;

  position:relative;

  box-shadow:
    0 30px 80px rgba(0,0,0,.18);

  animation:modalIn .25s ease;
}

@keyframes modalIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.close-modal{

  position:absolute;

  top:22px;
  right:22px;

  width:44px;
  height:44px;

  border:none;

  border-radius:50%;

  background:#f3f4f6;

  color:#111827;

  cursor:pointer;

  transition:.25s;
}

.close-modal:hover{
  background:#e5e7eb;
}

.modal-header{
  margin-bottom:30px;
}

.modal-header h2{
  font-size:38px;
  font-weight:800;
  color:#111827;

  margin-bottom:8px;
}

.modal-header p{
  color:#6b7280;
  font-size:16px;
  line-height:1.6;
}

.cover-upload{

  border:2px dashed #dbe2ea;

  border-radius:24px;

  padding:28px;

  margin-bottom:28px;

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

  background:linear-gradient(
    180deg,
    #fbfcfd,
    #f8fafc
  );
}

.cover-preview{
  display:flex;
  align-items:center;
  gap:16px;
}

.cover-preview i{
  font-size:34px;
  color:#0f172a;
}

.cover-preview span{
  font-size:18px;
  font-weight:700;
  color:#111827;
}

.upload-cover-btn{

  height:52px;

  border:none;

  background:#0f172a;
  color:#fff;

  padding:0 22px;

  border-radius:16px;

  font-weight:600;

  cursor:pointer;

  transition:.25s;
}

.upload-cover-btn:hover{
  transform:translateY(-2px);
}

.form-group{
  margin-bottom:22px;
}

.form-group label{

  display:block;

  margin-bottom:10px;

  font-size:14px;
  font-weight:700;

  color:#374151;
}

.form-group input,
.form-group textarea,
.form-group select{

  width:100%;

  background:#f8fafc;

  border:1px solid #e2e8f0;

  border-radius:16px;

  padding:16px 18px;

  font-size:15px;

  font-family:inherit;

  transition:.25s;
}

.form-group input{
  height:58px;
}

.form-group textarea{
  min-height:120px;
  resize:none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{

  outline:none;

  background:#fff;

  border-color:#0f172a;

  box-shadow:
    0 0 0 4px rgba(15,23,42,.06);
}

.form-group select{
  height:58px;
  cursor:pointer;
}

.modal-actions{

  margin-top:32px;

  display:flex;
  gap:16px;
}

.cancel-btn{

  flex:1;

  height:58px;

  border:1px solid #e5e7eb;

  background:#fff;

  border-radius:16px;

  font-weight:600;

  cursor:pointer;

  transition:.25s;
}

.cancel-btn:hover{
  background:#f9fafb;
}

.create-collection-submit{

  flex:2;

  height:58px;

  border:none;

  border-radius:16px;

  background:#0f172a;

  color:#fff;

  font-size:15px;
  font-weight:700;

  cursor:pointer;

  transition:.25s;
}

.create-collection-submit:hover{
  transform:translateY(-2px);
}

.search-bar{
  margin-top:42px;

  background:#fff;
  border-radius:22px;

  height:80px;

  display:flex;
  align-items:center;

  padding:0 18px;
}

.search-bar i{
  font-size:20px;
  color:#8b8b8b;
  margin-right:16px;
}

.search-bar input{
  flex:1;
  border:none;
  outline:none;
  font-size:18px;
}

.search-bar button{
  width:140px;
  height:54px;
  border:none;
  border-radius:18px;

  background:#111827;
  color:#fff;

  font-size:16px;
  cursor:pointer;
}

/* SECTION */

.collections-section{
  padding:60px 80px;
}

.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:34px;
}

.tabs{
  display:flex;
  gap:30px;
}

.tab{
  border:none;
  background:none;
  cursor:pointer;

  font-size:16px;
  font-weight:600;
  color:#808080;

  padding-bottom:12px;
}

.tab.active{
  color:#111;
  border-bottom:2px solid #111;
}

.filter-actions{
  display:flex;
  gap:14px;
}

#sortSelect{
  height:48px;
  padding:0 18px;

  border-radius:14px;
  border:1px solid #e4e4e4;
  background:#fff;
}

.filter-btn{
  height:48px;
  padding:0 18px;

  border-radius:14px;
  border:none;
  background:#fff;

  cursor:pointer;
}

/* GRID */

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

.collection-card{
  background:#fff;
  border-radius:24px;
  overflow:hidden;

  transition:.3s;
  cursor:pointer;

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

.collection-card:hover{
  transform:translateY(-6px);
}

.card-image{
  position:relative;
  height:300px;
}

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

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

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

  padding:22px;

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

.card-overlay h3{
  color:#fff;
  font-size:28px;
  margin-bottom:10px;
}

.meta{
  display:flex;
  gap:10px;
  align-items:center;
}

.meta span{
  color:#fff;
  font-size:14px;
}

.badge{
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
}

.card-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:18px 22px;
}

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

.user img{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
}

.bookmark{
  font-size:20px;
  color:#555;
}

.load-more-wrap{
  display:flex;
  justify-content:center;
  margin-top:50px;
}

.load-more-btn{
  border:none;
  background:#fff;

  height:58px;
  padding:0 30px;

  border-radius:18px;

  font-size:15px;
  cursor:pointer;

  box-shadow:0 5px 15px rgba(0,0,0,.06);
}

/* 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:1100px){

  .image-grid{
    column-count:2;
  }

  .footer-links{
    grid-template-columns:1fr 1fr;
  }

}


@media(max-width:768px){

  .navbar{
    padding:20px;
  }

  .nav-links{
    display:none;
  }

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

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

  .hero-top{
    flex-direction:column;
    gap:24px;
  }

  .collections-section{
    padding:40px 20px;
  }

  .collections-grid{
    grid-template-columns:1fr;
  }

  .top-bar{
    flex-direction:column;
    gap:20px;
    align-items:flex-start;
  }

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

  .footer-grid{
    grid-template-columns:1fr;
  }

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

}