*{
  box-sizing:border-box;
}

:root{
  color-scheme:dark;
  --bg:#070914;
  --panel:#0e1220;
  --panel2:#111729;
  --border:rgba(255,255,255,.08);
  --text:#f6f5ff;
  --muted:#8e94aa;
  --purple:#8b6cff;
  --purple2:#b27aff;
}

html,
body{
  margin:0;
  min-height:100%;
  background:#070914;
  color:var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body{
  min-height:100vh;
}

.community-bg{
  position:fixed;
  inset:0;
  pointer-events:none;

  background:
    radial-gradient(
      circle at 28% 5%,
      rgba(103,73,230,.16),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 35%,
      rgba(92,64,210,.13),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #070914,
      #090b17 50%,
      #0d0e20
    );

  z-index:0;
}

.community-nav{
  position:relative;
  z-index:5;

  height:86px;

  display:grid;
  grid-template-columns:
    minmax(190px,1fr)
    auto
    minmax(190px,1fr);

  align-items:center;

  max-width:1460px;
  margin:0 auto;

  padding:0 34px;
}

.community-brand{
  display:block;
  width:190px;
}

.community-brand img{
  display:block;
  width:100%;
  height:auto;
}

.community-nav-center{
  display:flex;
  justify-content:center;
}

.nav-active{
  font-size:14px;
  font-weight:800;
  color:#fff;
}

.open-app-btn{
  justify-self:end;

  text-decoration:none;

  color:#fff;

  font-weight:800;
  font-size:13px;

  padding:13px 18px;

  border:
    1px solid rgba(166,137,255,.25);

  border-radius:13px;

  background:
    rgba(123,94,215,.12);

  transition:.2s ease;
}

.open-app-btn:hover{
  background:
    rgba(134,102,238,.20);

  transform:
    translateY(-1px);
}

.community-page{
  position:relative;
  z-index:2;

  width:min(1280px,calc(100% - 48px));

  margin:
    45px auto 90px;
}

.community-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:35px;

  padding:
    30px 4px 48px;
}

.community-kicker,
.section-kicker,
.login-kicker{
  display:block;

  font-size:11px;
  letter-spacing:.16em;

  font-weight:900;

  color:#a692ff;

  margin-bottom:10px;
}

.community-heading h1{
  margin:0;

  font-size:
    clamp(42px,5vw,72px);

  letter-spacing:-.045em;

  line-height:.98;
}

.community-heading p{
  max-width:600px;

  margin:
    18px 0 0;

  color:var(--muted);

  line-height:1.65;

  font-size:15px;
}

.community-search{
  width:min(360px,100%);
  min-width:290px;

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

  padding:0 15px;

  height:48px;

  background:
    rgba(17,21,38,.88);

  border:
    1px solid var(--border);

  border-radius:14px;
}

.community-search svg{
  width:18px;
  height:18px;

  fill:none;
  stroke:#858ca5;
  stroke-width:1.8;
}

.community-search input{
  flex:1;

  min-width:0;

  border:0;
  outline:0;

  background:transparent;

  color:#fff;

  font:inherit;
}

.community-search input::placeholder{
  color:#687086;
}

.community-section{
  margin-top:26px;
}

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

  margin-bottom:17px;

  padding:0 3px;
}

.section-head h2{
  margin:0;
  font-size:21px;
}

.section-kicker{
  margin-bottom:6px;
}

.server-count{
  min-width:34px;
  height:29px;

  display:grid;
  place-items:center;

  padding:0 9px;

  border-radius:10px;

  background:
    rgba(139,108,255,.10);

  border:
    1px solid rgba(139,108,255,.15);

  font-size:12px;
  font-weight:900;

  color:#c2b3ff;
}

.community-grid{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:17px;
}

.community-card{
  position:relative;

  overflow:hidden;

  min-height:295px;

  border:
    1px solid var(--border);

  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      rgba(17,22,39,.96),
      rgba(11,15,28,.98)
    );

  box-shadow:
    0 20px 60px rgba(0,0,0,.17);

  transition:
    transform .2s ease,
    border-color .2s ease;
}

.community-card:hover{
  transform:
    translateY(-3px);

  border-color:
    rgba(151,121,255,.30);
}

.community-banner{
  height:120px;

  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(139,94,255,.30),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #14152a,
      #21194c
    );

  background-position:center;
  background-size:cover;
}

.community-card-body{
  position:relative;

  padding:
    0 18px 18px;
}

.community-avatar{
  width:58px;
  height:58px;

  margin-top:-29px;

  display:grid;
  place-items:center;

  overflow:hidden;

  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      #7454ff,
      #3c2b8e
    );

  border:
    4px solid #0e1220;

  box-shadow:
    0 9px 25px rgba(0,0,0,.30);

  font-size:22px;
  font-weight:900;
}

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

.community-card-title{
  display:flex;
  align-items:center;
  gap:8px;

  margin-top:13px;
}

.community-card-title h3{
  min-width:0;

  margin:0;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  font-size:17px;
}

.vip-chip{
  flex:none;

  padding:4px 7px;

  border-radius:7px;

  background:
    rgba(145,100,255,.15);

  border:
    1px solid rgba(168,126,255,.20);

  font-size:9px;
  font-weight:900;

  color:#c9b7ff;
}

.community-meta{
  display:flex;
  gap:10px;

  margin-top:8px;

  color:#858da3;

  font-size:12px;
}

.community-meta span{
  display:flex;
  align-items:center;
  gap:5px;
}

.community-actions{
  display:flex;

  margin-top:17px;
}

.community-join{
  width:100%;

  border:0;

  border-radius:11px;

  height:40px;

  cursor:pointer;

  color:#fff;

  font-size:12px;
  font-weight:900;

  background:
    linear-gradient(
      135deg,
      #795cff,
      #9671ff
    );

  box-shadow:
    0 9px 25px
    rgba(105,70,255,.17);

  transition:.2s ease;
}

.community-join:hover{
  filter:brightness(1.08);
}

.community-join:disabled{
  opacity:.65;
  cursor:wait;
}

.community-empty{
  grid-column:1/-1;

  padding:50px 20px;

  text-align:center;

  border:
    1px dashed rgba(255,255,255,.08);

  border-radius:17px;

  color:#747d94;
}

.login-overlay{
  position:fixed;
  inset:0;

  z-index:100;

  display:grid;
  place-items:center;

  padding:20px;

  background:
    rgba(3,5,12,.76);

  backdrop-filter:
    blur(15px);
}

.login-overlay.hidden{
  display:none;
}

.login-card{
  position:relative;

  width:min(420px,100%);

  padding:
    34px 30px 28px;

  text-align:center;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius:22px;

  background:
    linear-gradient(
      180deg,
      #121628,
      #0b0e1a
    );

  box-shadow:
    0 30px 100px rgba(0,0,0,.50);
}

.login-close{
  position:absolute;
  right:14px;
  top:12px;

  border:0;
  background:transparent;

  color:#868ea5;

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

.login-logo{
  width:62px;
  height:62px;

  object-fit:contain;

  margin-bottom:17px;
}

.login-card h2{
  margin:0;

  font-size:25px;
}

.login-card p{
  margin:
    13px auto 23px;

  max-width:330px;

  color:#8b93a9;

  font-size:13px;

  line-height:1.65;
}

.google-login{
  height:46px;

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

  text-decoration:none;

  border-radius:12px;

  background:#fff;

  color:#151515;

  font-size:13px;
  font-weight:800;
}

.google-mark{
  display:grid;
  place-items:center;

  width:23px;
  height:23px;

  border-radius:50%;

  border:
    1px solid #ddd;

  font-weight:900;
}

.cancel-login{
  margin-top:10px;

  width:100%;
  height:42px;

  border:
    1px solid rgba(255,255,255,.07);

  border-radius:11px;

  background:
    rgba(255,255,255,.025);

  color:#929aaf;

  cursor:pointer;
}

@media(max-width:950px){

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

  .community-heading{
    align-items:stretch;
    flex-direction:column;
  }

  .community-search{
    width:100%;
    min-width:0;
  }

}

@media(max-width:680px){

  .community-nav{
    height:72px;

    grid-template-columns:
      1fr auto;

    padding:
      0 18px;
  }

  .community-brand{
    width:145px;
  }

  .community-nav-center{
    display:none;
  }

  .open-app-btn{
    font-size:11px;

    padding:
      10px 12px;
  }

  .community-page{
    width:
      calc(100% - 28px);

    margin-top:25px;
  }

  .community-heading{
    padding-top:15px;
  }

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

}


/* =========================================================
   CHATTER HALL COMMUNITY NAV V3
========================================================= */

.community-nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:38px;
}

.community-nav-link{
  position:relative;

  color:#a3a6b5;

  text-decoration:none;

  font-size:13px;
  font-weight:800;

  transition:
    color .18s ease,
    opacity .18s ease;
}

.community-nav-link:hover{
  color:#fff;
}

.community-nav-link.active{
  color:#fff;
}

.community-nav-link.active::after{
  content:"";

  position:absolute;

  left:50%;
  bottom:-10px;

  width:20px;
  height:2px;

  transform:translateX(-50%);

  border-radius:10px;

  background:
    linear-gradient(
      90deg,
      #7657ff,
      #ac86ff
    );

  box-shadow:
    0 0 10px
    rgba(143,103,255,.55);
}


/* Sunucuya katıl butonu biraz daha net */

.community-join{
  letter-spacing:.01em;
}


/* TABLET */

@media(max-width:800px){

  .community-nav-links{
    gap:22px;
  }

  .community-nav-link{
    font-size:12px;
  }

}


/* MOBILE */

@media(max-width:680px){

  .community-nav{
    grid-template-columns:
      auto 1fr auto;

    gap:12px;
  }

  .community-nav-center{
    display:flex !important;
  }

  .community-nav-links{
    gap:14px;
  }

  .community-nav-link{
    font-size:10px;
    white-space:nowrap;
  }

  .community-nav-link.active::after{
    bottom:-7px;
  }

}


@media(max-width:520px){

  .community-nav{
    padding:
      0 12px;
  }

  .community-brand{
    width:118px;
  }

  .community-nav-links{
    gap:10px;
  }

  .community-nav-link{
    font-size:9px;
  }

  .open-app-btn{
    padding:
      9px 9px;

    font-size:9px;
  }

}

/* =========================================================
   CHATTER HALL COMMUNITY NAV V3 END
========================================================= */
