:root {
  --background-color: #111118;
  --primary-color: #1c1c24;
  --border-color: #2a2a38;
  --text-color: #e8e8f0;
  --text-color-muted: #8a8a9e;
  --accent-color: #9c4dff;
  --accent-hover-color: #823ae0;
  --discord-color: #5865F2;
  --kakobuy-color: #e53935;
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --transition-speed: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


*, *::before, *::after { box-sizing: border-box; }

body { 
  margin: 0; 
  background-color: var(--background-color);
  background-image: radial-gradient(circle at 15% 25%, rgba(156, 77, 255, 0.1), transparent 40%),
                    radial-gradient(circle at 85% 75%, rgba(156, 77, 255, 0.1), transparent 40%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; 
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

.background-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; background: linear-gradient(45deg, rgba(156, 77, 255, 0.2), rgba(156, 77, 255, 0.05)); filter: blur(120px); animation: moveShape 30s infinite alternate ease-in-out; }
.shape-1 { width: 500px; height: 500px; top: -10%; left: -10%; }
.shape-2 { width: 400px; height: 400px; bottom: -15%; right: -5%; animation-duration: 40s; animation-delay: -5s; }
.shape-3 { width: 300px; height: 300px; bottom: 30%; left: 10%; animation-duration: 35s; }
@keyframes moveShape { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(100px, 50px) rotate(90deg); } }

.header-wrapper { position: sticky; top: 0; z-index: 1000; padding: 16px 32px; transition: var(--transition-speed); }
.main-header { max-width: 1400px; margin: 0 auto; background-color: var(--primary-color); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); border-radius: 14px; padding: 0 24px; height: 70px; display: flex; align-items: center; justify-content: space-between; transition: var(--transition-speed); position: relative; }
.main-header.scrolled { background-color: rgba(28, 28, 36, 0.7); backdrop-filter: blur(12px); }
.header-title { font-size: 24px; font-weight: 800; user-select: none; color: var(--text-color); text-decoration: none; transition: color var(--transition-speed); z-index: 10; }
.header-title:hover { color: var(--accent-color); }

/* --- NOWA, POPRAWIONA LOGIKA NAWIGACJI --- */
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a { font-size: 15px; font-weight: 400; color: var(--text-color-muted); text-decoration: none; transition: color var(--transition-speed); }
.header-nav a:hover { color: var(--text-color); }

.desktop-nav { display: flex; align-items: center; gap: 32px; }
.mobile-nav { display: none; }
.mobile-nav-toggle { display: none; }

.nav-dropdown-container { position: relative; }
.nav-dropdown-toggle { background: none; border: none; color: var(--text-color-muted); font-family: inherit; font-size: 15px; font-weight: 400; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: color var(--transition-speed); padding: 0; }
.nav-dropdown-toggle:hover { color: var(--text-color); }
.nav-dropdown-toggle svg { transition: transform var(--transition-speed); }
.nav-dropdown-container.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 12px); left: 50%; background-color: var(--primary-color); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 180px; opacity: 0; transform: translateX(-50%) translateY(-10px); transition: opacity 0.2s ease, transform 0.2s ease; z-index: 100; }
.nav-dropdown-container.open .nav-dropdown-menu { display: block; opacity: 1; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a { display: block; color: var(--text-color-muted); text-decoration: none; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.nav-dropdown-menu a:hover { background-color: var(--border-color); color: var(--text-color); }

.hero-section { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: calc(100vh - 120px); padding: 0 24px; }
.hero-title { font-size: clamp(3rem, 12vw, 8rem); font-weight: 800; margin: 0 0 40px 0; background: linear-gradient(90deg, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: fadeInDown 1s ease-out; }
.hero-buttons { display: flex; gap: 24px; animation: fadeInUp 1s ease-out 0.3s; animation-fill-mode: both; }

.hero-title {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-style: normal;
}

.btn { border: none; padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 16px; cursor: pointer; color: white; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition-speed); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-discord { background-color: var(--discord-color); }
.btn-discord:hover { background-color: #4a56d5; }
.btn-kakobuy { background-color: var(--kakobuy-color); }
.btn-kakobuy:hover { background-color: #c4322f; }

.page-section { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: calc(100vh - 102px); padding: 32px; }
.page-content { width: 100%; max-width: 700px; }
.page-title { font-size: clamp(2rem, 10vw, 4rem); font-weight: 700; margin: 0 0 16px 0; animation: fadeInDown 1s ease-out; }
.page-subtitle { font-size: 1.1rem; font-weight: 300; color: var(--text-color-muted); margin: 0 0 40px 0; max-width: 450px; margin-left: auto; margin-right: auto; animation: fadeInDown 1s ease-out 0.2s; animation-fill-mode: both; }
.form-container { display: flex; gap: 12px; width: 100%; animation: fadeInUp 1s ease-out 0.4s; animation-fill-mode: both; }
.input-field { flex-grow: 1; height: 50px; background-color: var(--primary-color); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-color); padding: 0 20px; font-size: 16px; transition: var(--transition-speed); }
.input-field:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(156, 77, 255, 0.2); }
.btn-accent { background-color: var(--accent-color); padding: 0 32px; height: 50px; }
.btn-accent:hover { background-color: var(--accent-hover-color); }

#results-container { width: 100%; max-width: 700px; margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.result-button { background-color: var(--primary-color); border: 1px solid var(--border-color); color: var(--text-color); display: flex; align-items: center; padding: 12px 20px; border-radius: 10px; font-size: 16px; font-weight: 500; text-decoration: none; transition: var(--transition-speed); opacity: 0; animation: fadeInUp 0.5s ease-out forwards; animation-delay: var(--delay); }
.result-button:hover { background-color: var(--border-color); transform: translateY(-2px); }
.result-button img { width: 24px; height: 24px; border-radius: 5px; margin-right: 16px; }

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

/* --- SEKCJA DLA URZĄDZEŃ MOBILNYCH --- */
@media (max-width: 768px) {
  .header-wrapper { padding: 12px 16px; }
  .main-header { height: 60px; padding: 0 16px; }
  .header-title { font-size: 20px; }

  /* Ukryj nawigację desktopową i pokaż przycisk "hamburger" */
  .desktop-nav { display: none; }
  .mobile-nav-toggle { display: block; background: none; border: none; color: var(--text-color); font-size: 28px; line-height: 1; cursor: pointer; z-index: 10; }

  /* Kiedy menu mobilne jest otwarte (JS dodaje klasę 'is-open') */
  .mobile-nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    animation: fadeInDown 0.3s ease-out;
  }
  
  .mobile-nav a {
    text-align: left;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
  }
  .mobile-nav a:hover {
    background-color: var(--border-color);
  }

  .hero-buttons, .form-container { flex-direction: column; }
  .page-title { font-size: clamp(2rem, 12vw, 3rem); }
}

/* --- STYLE DLA IKON NAWIGACJI --- */

/* Ustawienie linków i przycisku jako flex-container dla wyrównania */
.desktop-nav a,
.nav-dropdown-toggle,
.mobile-nav a,
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px; /* Odstęp między ikoną a tekstem */
}

/* Stylizacja samych ikon */
.nav-icon {
    width: 18px;
    height: 18px;
    /* Kolor ikony dziedziczony po kolorze tekstu, 
       dzięki czemu zmienia się też przy najechaniu myszką */
    fill: currentColor;
    flex-shrink: 0; /* Zapobiega kurczeniu się ikony */
}

/* Poprawka dla przycisku Narzędzia, aby zachować odstęp od strzałki */
.nav-dropdown-toggle span {
    margin-right: 2px;
}
