/* ============================================================
   Root Variables (Dark Theme Applied)
============================================================ */
:root {
    --primary-color: #5b82a1;
    --secondary-color: #42a5f5;
    --accent-color: #f48fb1;
    --dark-color: #121212;
    --light-color: #1e1e1e;
    --success-color: #66bb6a;
    --error-color: #ef5350;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    --transition: all 0.2s ease;
}

/* ============================================================
   Reset & Base Styles
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: var(--dark-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ============================================================
   Header & Navigation
============================================================ */
.main-header {
  background-color: #1e1e1e;
  color: #e0e0e0;
  padding: 0;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 9998;
  transition: var(--transition);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 700;
  transition: var(--transition);
}

.logo span {
  color: var(--accent-color);
}

.nav-toggle {
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}


@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    text-align: center;
    border-top: 1px solid #333;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 1rem 0;
  }
}


/* ============================================================
   Buttons
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.submit-btn {
    background-color: #fff;
    color: #121212;
}

.btn-discord-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background-color: #5865F2;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.4);
}

.btn-discord-login:hover {
    background-color: #4752C4;
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(88, 101, 242, 0.6);
}

.btn-discord-login svg {
    flex-shrink: 0;
}

.topggbtn {
    background-color: #ff3366;
    color: #262627;
}

.submit-btn:hover {
    background-color: #e6e3e3;
}

.support-btn {
    background-color: #0099ff;
    color: #121212;
}

.support-btn:hover {
    background-color: rgb(47, 120, 180);
    transform: translateY(-2px);
}

.invite-btn {
    background-color: #e283a3;
    color: #ffffff;
}

.invite-btn:hover {
    cursor: pointer;
    background-color: rgb(177, 102, 127);
    transform: translateY(-2px);
    color: #fff
}

.logout-btn {
    background-color: #ef5350;
    color: #121212;
}

.logout-btn:hover {
    background-color: #c0423f;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ============================================================
   Hero Section
============================================================ */
.hero {
    z-index: 100;
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(144, 202, 249, 0.1) 0%, rgba(244, 143, 177, 0.1) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #ccc;
    transition: var(--transition);
}

/* ============================================================
   Profile Section
============================================================ */
.profile-section {

    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.avatar-container {
    z-index: 100;

    position: relative;
    transition: transform 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.profile-info {
    flex: 1;
}

.username {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.tooltip {
  position: absolute;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}



/* ============================================================
   Language Form
============================================================ */
.lang-form {
    position: relative;
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 1.5rem;
    z-index: 100;
    max-width: 500px;
}

.form-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-group {
    display: flex;
    gap: 0.5rem;
}

select {
    flex: 1;
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

select:hover {
    border-color: var(--primary-color);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(144, 202, 249, 0.3);
}

/* ============================================================
   Content Section
============================================================ */
.content-section {
    position: relative;
    z-index: 100;
    background: #1e1e1e;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    color: #e0e0e0;
    border: 1px solid #333;
    transition: var(--transition);
}

/* ============================================================
   Footer
============================================================= */
.main-footer {
    background-color: #1a1a1a;
    color: #ddd;
    padding: 2rem 1rem;
    margin-top: auto;
    z-index: 100;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    flex: 1 1 200px;
    min-width: 220px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        width: 100%;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}




/* ============================================================
   Responsive
============================================================ */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .lang-form {
        margin: 1.5rem auto 0;
    }

    .form-group {
        flex-direction: column;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.star {
    position: absolute;
    /*  
    width: 20px;  
    height: 20px; 
    background-image: url('/assets/snow.png'); 
    background-size: cover;
    */
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;

    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 0;
    }
}

/* ============================================================
   Splash Screen
============================================================ */
#splash-screen {
    position: fixed;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-content {
    font-family: monospace;
    text-align: center;
    color: #fff;
    animation: fadeIn 1s ease-in-out;
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

#splash-screen.hidden {
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}
