@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Poiret+One&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400");

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  color: white;
  font-family: "Poiret One", sans-serif;
  width: 100%;
  height: 100%;
  background-color: #352f44;
}

::selection{
  background-color: rgb(190, 159, 225);
}

:root {
  --color-bg1: rgb(108, 0, 162);
  --color-bg2: rgb(0, 17, 82);
  --color1: 190, 159, 225;
  --color2: 190, 173, 250;
  --color3: 225, 204, 236;
  --color4: 223, 204, 251;
  --color5: 201, 182, 228;
  --color-interactive: 241, 241, 246;
  --circle-size: 80%;
  --blending: hard-light;
  --primary-color: rgb(234, 192, 255);
  --primary-color-alt: hsl(28, 72%, 83%);
  --second-color: #3e537c;
  --second-color-alt: hsla(220, 33%, 36%, 65%);
  --third-color: hsl(220, 36%, 28%);
  --white-color: #fbfbfb;
  --white-color-alt: hsl(12, 14%, 93%);
  --dark-color: #2a2438;
}

/* ---- Bakcground Animaition ---- */

#gradient-bg {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #000;
  top: 0;
  left: 0;
}
.custom-svg {
  display: none;
}

.gradients-container {
  filter: url(#goo) blur(40px) ;
  width: 100%;
  height: 100%;
 }

.gradient1 {
   position: absolute;
   background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
   mix-blend-mode: var(--blending);
   width: var(--circle-size);
   height: var(--circle-size);
   top: calc(50% - var(--circle-size) / 2);
   left: calc(50% - var(--circle-size) / 2);
   transform-origin: calc(50% - 200px);
   animation: moveInCircle 30s ease infinite;
   opacity: 1;
}

.gradient2{
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: moveHorizontal 30s infinite;
  opacity: 1;
}

.gradient3 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 90s linear infinite;
  opacity: 1;
}

.gradient4 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 90s ease infinite;
  opacity: 0.7;
}

.gradient5 {
  position: absolute;
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  width: calc(var(--circle-size));
  height: calc(var(--circle-size)*2);
  top: calc(50% - var(--circle-size));
  left: calc(150% - var(--circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveVertical 50s reverse infinite;
  opacity: 1;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}

/* --------- Form ----------- */

#login-form-container{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 400px;
  height: 500px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
   border-radius: 20px;
   border:1px solid rgba(255, 255, 255, 0.18);
   box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  overflow: hidden;
  padding: 20px;
}

#register-form-container{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 400px;
  height: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
   border-radius: 20px;
   border:1px solid rgba(255, 255, 255, 0.18);
   box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  overflow: hidden;
  padding: 20px;
}

/* -----  Form content  ------ */
.title{
  font-weight: 800;
  font-size: 40pt;
}
.msg{
  margin: 10px;
}
.custom-input{
  background-color: transparent;
  border: none;
  height: 30px;
  width: 90%;
  border-bottom: solid 2px #fff;
  margin: 10px;
  font-size: 16px;
  color: #fff;
}
.custom-a{
  color: rgb(190, 173, 250);
  text-decoration: none;
  font-weight: 800;
  transition: opacity 0.3s;
}

.custom-a-logo{
    text-decoration: none;
  }
.label{
  margin-top: 20px;
}
.submit{
  margin-top: 70px;
  color: #fff;
  height: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
   border-radius: 5px;
   border:1px solid rgba(255, 255, 255, 0.18);
   box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.custom-input:focus{
    border-bottom: 2px solid #fff;
    outline: none;
    font-size: 16px;
    color: #fff;
}
.submit:hover{
  background-color: rgb(255, 255, 255);
  color: #000;
}
.custom-a:hover{
  opacity: 0.5;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .input-pair {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
  }

  .input-container {
    width: 48%;
  }

  .submit {
    width: 100%;
    margin-top: 30px;
  }
}


@font-face {
    font-family: 'Sifonn Pro';
    font-style: normal;
    font-weight: normal;
    src: local('Sifonn Pro'), url('../fonts/SIFONN_PRO.woff') format('woff');
    }

/* ================= BASE ==================== */
.custom-li-navbar {
  list-style: none;
}
.custom-a-navbar {
  text-decoration: none;
}

.bx {
  font-size: 2.5rem;
}
.container {
  padding: 0 2rem;
}


/* ================= HEADER ================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--dark-color);
  padding: 1rem 2rem;
}
.company-logo {
  font-size: 2.5rem;
  background: 
    #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Sifonn Pro;
  text-decoration: none;
}
.nav-items {
  display: flex;
}
.nav-item {
  margin: 0 2rem;
}
.nav-link {
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
  position: relative;
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.5;
}

.menu-toggle {
  display: none;
}
.bx-menu,
.bx-x {
  cursor: pointer;
  background: -webkit-linear-gradient(
    120deg,
    var(--primary-color-alt),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: none !important;
}

@media screen and (max-width: 768px) {

    /* ================= HEADER ================ */
    .custom-header {
      padding: 0.5rem 1rem;
    }
    .navbar {
        background-color: var(--dark-color);
        position: fixed;
        top: 3.5rem;
        right: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform 500ms;
        z-index: 1001;
      }
      .show-navbar {
        display: flex;
        transform: scaleY(1);
        transform-origin: top;
        transition: transform 300ms;
      }
      .nav-items {
        display: flex;
        flex-direction: column;
      }
      .nav-item {
        margin: 0.5rem 0;
      }
      .menu-toggle {
        display: block;
        z-index: 1002;
      }
      .bx-menu {
        display: block !important;
      }
      .show-bx {
        display: block !important;
      }
      .hide-bx {
        display: none !important;
      }
      .card-container {
        z-index: 1000;
      }
    }
  @media (min-width: 769px) {
    header {
      padding: 1rem 5rem;
    }
}
/* Custom styles for account section */
.account-section {
    display: flex;
    align-items: center;
    position: relative;
}
.account-name {
    margin-right: 10px;
    cursor: pointer;
    color: #fff;
}
.account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--dark-color);
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}
.dropdown-menu a:hover {
    opacity: 0.5;
}

/* Custom card styles */
.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    gap: 20px;
  }
  
  .custom-card {
    background-color: #2a2438;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    position: relative;
    line-height: 1.75rem;
  }
  
  .card-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .question-text {
    width: 80%;
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .card-answer-box {
    background-color: #1f1b2e;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .card-answer {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 15px;
  }
  
  .marketplace-icon img {
    width: 40px;
    height: 40px;
  }
  
  .timer {
    width: 20%;
    font-size: 0.9rem;
    color: #f0f0f0;
    text-align: right;
  }
  
  .question-date {
    font-size: 0.9rem;
    color: #f0f0f0;
  }
  
  .card-actions {
    display: flex;
    gap: 10px;
  }
  
  .card-actions .bx {
    font-size: 1.5rem;
    cursor: pointer;
    color: grey!important;
    transition: opacity 0.3s;
  }
  
  .card-actions .bx:hover {
    opacity: 0.5;
  }
  
  /* Pagination styles */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  
  .pagination a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #2a2438;
  }
  
  .pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
  }
  
  .pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
  }
  
  
  /* Eklenen CSS */
.copy-message {
  display: none;
  position: absolute;
  background-color: #4caf50;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-message.show {
  display: block;
  opacity: 1;
}

/* Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #2a2438;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-content textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    resize: none;
    background-color: #1f1b2e;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
}

.modal-content .submit {
    background-color: #6c00a2;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content .submit:hover {
    background-color: #520076;
}



