@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    background: url('Images/background.avif') no-repeat center center fixed;
    background-size: cover;
}

.coin-display {
    position: fixed;
    top: 45px;
    right: 45px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 14px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    z-index: 1000;
}

.coin-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    transition: transform 0.3s ease-in-out;
}

.coin-icon:hover {
    transform: scale(1.2);
}

.coin-count {
    color: #fff;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

.coin-info-modal {
    display: none; /* versteckt anfangs */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    color: #fff;
    box-shadow: 0 0 20px #9d57ae80;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.modal-content h2 {
    color: #9d57ae;
    margin-bottom: 12px;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.modal-content ul li {
    margin-bottom: 8px;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: #9d57ae;
}

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

header {
    z-index: 10;
    position: fixed;
    top: 20px;
    left: 0; right: 0;
    padding: 5px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 60%;
    margin: 0 auto;
    position: fixed;
    background: rgba(255, 0, 157, 0.089);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.089);
    border-top: 1px solid rgba(255, 255, 255, 0.212);
    border-left: 1px solid rgba(255, 255, 255, 0.219);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #9d57ae;
    text-shadow: 0 0 12px #9d57ae91;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.4) rotate(5deg);
}

.avatar-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #9d57ae;
    box-shadow: 0 0 10px #9d57aeaa;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.avatar-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

header ul {
    display: flex;
}

header ul li {
    list-style: none;
    margin: 0 10px;
    display: flex;
    align-items: center;
}

header ul li a {
    text-decoration: none;
    font-weight: 300;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.2s ease-in-out;
}

header ul li a:hover,
header ul li a.active {
    color: #9d57ae;
    text-decoration: underline;
    text-underline-offset: 5px;
}

header .login-btn {
    padding: 9px 24px;
    background-color: #9d57ae44;
    border: 2px solid #9d57ae;
    border-radius: 25px;
    color: #9d57ae;
    font-weight: 500;
    box-shadow: 0px 0px 10px #000000;
}
header .login-btn:hover{
    background-color: #9d57ae79;
    box-shadow: 0px 0px 10px #9d57ae;
    text-decoration: none;
}

.discord-icon {
    vertical-align: middle;
    transition: transform 0.3s ease-in-out;
}

.login-btn:hover .discord-icon {
  transform: rotate(15deg) scale(1.3);
  color: #7289da; /* Discord-Blau */
}

section{
    padding: 0 14%;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: grid;
    color: #9d57ae;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: 200px;
}

.hero-text h1{
    font-size: 6.6rem;
    font-weight: 900;
    margin: 15px 0;
    text-shadow: 0 0 10px #9d57ae91;
    -webkit-text-stroke: 2px;
    -webkit-text-stroke-color: #9d57ae;
    color: transparent;
}

.hero-text h5{
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.39);
    min-height: 1.5em;
    display: block;
    white-space: nowrap;
    position: relative;
}

.rabbid-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    pointer-events: none;
}

.rabbid-img {
    opacity: 0.8;
    width: 210px;
    animation: floatRabbid 4s ease-in-out infinite;
}

@keyframes floatRabbid {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wrapper {
    width: 90%;
    max-width: 1536px;
    margin-inline: auto;
    position: relative;
    height: 100px;
    margin-bottom: 5rem;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0)
    );
}

@keyframes scrollleft {
    to {
        left: -200px;
    }
}

.item {
    font-weight: 600;
    font-size: large;
    color: white;
    text-shadow: 2px 2px 3px black;
    width: 200px;
    height: 100px;
    background-color: rgb(211, 105, 202);
    border-radius: 6px;
    position: absolute;
    left: max(calc(200px * 8), 99%);
    animation-name: scrollleft;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertikal */
}

.item img {
    width: 80%;
    display: block;
}

.item1 {
    animation-delay: calc(15s / 8 * (8 - 1) * -1);
}

.item2 {
    animation-delay: calc(15s / 8 * (8 - 2) * -1);
}

.item3 {
    animation-delay: calc(15s / 8 * (8 - 3) * -1);
}

.item4 {
    animation-delay: calc(15s / 8 * (8 - 4) * -1);
}

.item5 {
    animation-delay: calc(15s / 8 * (8 - 5) * -1);
}

.item6 {
    animation-delay: calc(15s / 8 * (8 - 6) * -1);
}

.item7 {
    animation-delay: calc(15s / 8 * (8 - 7) * -1);
}

.item8 {
    animation-delay: calc(15s / 8 * (8 - 8) * -1);
}

.avatar-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 80px; /* unter dem Avatar */
    right: 0;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid #9d57ae;
    border-radius: 10px;
    padding: 10px 0;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: background 0.2s ease-in-out;
}

.dropdown-menu a:hover {
    background-color: #9d57ae44;
    color: #9d57ae;
}

/* Dropdown beim Hover anzeigen */
.avatar-dropdown:hover .dropdown-menu {
    display: block;
}

.profile-menu-wrapper {
    position: relative;
    display: inline-block;
}

.profile-menu-wrapper:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown {
    position: absolute;
    top: 80px; /* unterhalb des Profilbilds */
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 0 10px #9d57aeaa;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.089);
    border-top: 1px solid rgba(255, 255, 255, 0.212);
    border-left: 1px solid rgba(255, 255, 255, 0.219);
}

.profile-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
}

.notification-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    cursor: pointer;
}

.notification-icon {
    font-size: 28px;
    color: #fff;
    transition: color 0.3s ease;
}

.notification-wrapper:hover .notification-icon {
    color: #9d57ae;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #cf2c2c;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 50%;
    box-shadow: 0 0 5px #cf2c2caa;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 350px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 0 20px #9d57ae80;
    color: #fff;
    z-index: 1500;
    backdrop-filter: blur(6px);
}

.notification-wrapper:hover .notification-dropdown {
    display: block;
}

.notification-dropdown h4 {
    margin-bottom: 10px;
    color: #9d57ae;
    font-weight: 600;
}

.notification-dropdown ul {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    padding: 0;
    margin-bottom: 10px;
}

.notification-dropdown ul li {
    padding: 8px 0;
    border-bottom: 1px solid #9d57ae33;
    font-size: 14px;
}

.notification-dropdown ul li:last-child {
    border-bottom: none;
}

.notification-dropdown ul li small {
    color: #bbb;
    font-size: 12px;
}

.more-notifications-btn {
    display: block;
    text-align: center;
    padding: 8px 0;
    color: #9d57ae;
    text-decoration: none;
    font-weight: 600;
    border-top: 1px solid #9d57ae33;
    transition: background 0.2s ease-in-out;
    border-radius: 0 0 16px 16px;
}

.more-notifications-btn:hover {
    background: #9d57ae22;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    width: 90%;
    border-bottom: 1px solid #ccc;
}

.mark-read-btn {
    background: #f0f0f0;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.mark-read-btn:hover {
    background-color: #ddd;
}

.notification-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* ========================
   MOBILE STYLES
   ======================== */
@media (max-width: 768px) {
  header {
    width: 100%;
    margin: 0 auto;
    padding: 8px 20px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    border-radius: 20px;
  }

  .logo-container {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  .logo-text {
    font-size: 18px;
  }

  .avatar-icon {
    width: 50px;
    height: 50px;
  }

  header ul {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  header ul li {
    margin: 0;
    width: 100%;
  }

  header ul li a {
    width: 100%;
    display: block;
    text-align: left;
    padding: 10px;
  }

  .login-btn {
    width: 100%;
    text-align: center;
  }

  .coin-display {
    top: 100px;
    right: 20px;
    padding: 6px 12px;
  }

  .coin-icon {
    width: 30px;
    height: 30px;
  }

  .coin-count {
    font-size: 14px;
  }

  .hero-text h1 {
    font-size: 3.8rem;
    text-align: center;
  }

  .hero-text h5 {
    font-size: 14px;
    text-align: center;
    white-space: normal;
  }

  .notification-dropdown,
  .profile-dropdown,
  .dropdown-menu {
    width: 90vw;
    right: auto;
    left: 5vw;
    top: 90px;
  }

  .notification-dropdown ul,
  .profile-dropdown ul {
    max-height: 200px;
  }

  .item {
    width: 140px;
    height: 80px;
    font-size: 14px;
  }

  .rabbid-img {
    width: 150px;
  }

  section {
    padding: 0 5%;
  }
}

@media (max-width: 768px) {
  header {
    width: 90%;
    margin: 10px auto 0 auto;
    flex-direction: column;
    padding: 10px 20px;
  }
}

@media (max-width: 1237px) {
  header {
    width: 90%;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;
  }

  header ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  header ul li {
    margin: 5px 10px;
  }
}

/* Grundstyle Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  z-index: 20;
}

.burger-bar {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s linear;
}

.burger-btn.active .burger-bar:nth-child(1) {
  transform: rotate(50deg) translate(9px, 5px);
}

.burger-btn.active .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-btn.active .burger-bar:nth-child(3) {
  transform: rotate(-50deg) translate(9px, -5px);
}

/* Mobile: Burger anzeigen */
@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }

  header ul.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  /* Menü sichtbar, wenn active */
  header ul.nav-links.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  .dropdown-menu,
  .profile-dropdown {
    width: 250px;
    right: 20px;
    top: 70px;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 14px;
  }

  .dropdown-menu a,
  .profile-dropdown a {
    padding: 6px 15px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .notification-dropdown {
    width: 250px;
    right: 20px;
    top: 70px;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
  }

  .notification-dropdown h4 {
    font-size: 16px;
  }

  .notification-dropdown ul li {
    font-size: 13px;
    padding: 6px 0;
  }

  .more-notifications-btn {
    padding: 6px 0;
    font-size: 14px;
  }
}
