/* RESET & BASICS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-bg: #0b120d;
  --secondary-bg: #111e14;
  --accent: #19ff69;
  --accent-hover: #0bf550;
  --glass-bg: rgba(17, 30, 20, 0.75);
  --text-main: #eaffea;
  --text-secondary: #a3dfb6;
  --card-bg: #152619;
  --border-glow: rgba(25, 255, 105, 0.15);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --discord-color: #5865F2;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: radial-gradient(circle at top, #142a1b 0%, #0b120d 100%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* GLOW EFFECT TEXT */
.text-glow {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(25, 255, 105, 0.6);
}

/* MENU / STICKY HEADER */
.menu-container {
  background: rgba(11, 18, 13, 0.9);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glow);
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-item {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item:hover {
  color: var(--accent);
  background: rgba(25, 255, 105, 0.08);
}

.menu-item.external-link {
  border: 1px dashed var(--accent);
  color: var(--accent);
}

.menu-item.external-link:hover {
  background: var(--accent);
  color: var(--primary-bg);
}

/* SECTION CONTAINER GENERAL */
.section-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* HERO / ABOUT SECTION */
.hero-section {
  margin: 60px auto;
  max-width: 850px;
  padding: 60px 40px;
  text-align: center;
  border-radius: 24px;
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
}

.avatar-container {
  width: 80px;
  height: 80px;
  background: rgba(25, 255, 105, 0.1);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px rgba(25, 255, 105, 0.2);
}

.avatar-placeholder {
  font-size: 2rem;
  color: var(--accent);
}

.hero-section h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-section .subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-weight: 500;
}

.bio-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #c2ecd0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--primary-bg);
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(25, 255, 105, 0.3);
}

.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 255, 105, 0.5);
}

/* SKILLS SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.skills-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(25, 255, 105, 0.05);
  box-shadow: var(--shadow);
}

.skills-card h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.25rem;
  border-bottom: 1px solid rgba(25, 255, 105, 0.1);
  padding-bottom: 8px;
}

.highlight-card {
  border: 1px solid rgba(25, 255, 105, 0.3);
  box-shadow: 0 0 15px rgba(25, 255, 105, 0.05);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(25, 255, 105, 0.07);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(25, 255, 105, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag i {
  color: var(--accent);
}

/* HUB GRIDS (GAMES & TOOLS) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.hub-card {
  background: var(--card-bg);
  border: 1px solid rgba(25, 255, 105, 0.05);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(25, 255, 105, 0.25);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6), 0 0 15px rgba(25, 255, 105, 0.05);
}

.hub-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.hub-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.hub-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Popycha przycisk na sam dół karty */
}

.card-btn {
  display: block;
  text-align: center;
  background: rgba(25, 255, 105, 0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.card-btn:hover {
  background: var(--accent);
  color: var(--primary-bg);
  box-shadow: 0 4px 12px rgba(25, 255, 105, 0.2);
}

.special-card {
  border: 1px dashed rgba(25, 255, 105, 0.4);
}

.special-card .card-icon {
  text-shadow: 0 0 10px rgba(25, 255, 105, 0.3);
}

/* CONTACT SECTION */
.contact-section {
  background: var(--secondary-bg);
  padding: 45px 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-glow);
  max-width: 750px;
}

.contact-section h2 {
  color: var(--accent);
  margin-bottom: 15px;
}

.contact-methods {
  margin: 25px 0;
}

.mail-link {
  color: var(--accent);
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(25, 255, 105, 0.05);
  border: 1px solid transparent;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mail-link:hover {
  border-color: var(--accent);
  background: rgba(25, 255, 105, 0.1);
}

.social-buttons {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2f3136;
  padding: 12px 24px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.social-button.discord:hover {
  background: var(--discord-color);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 20px;
  background: #060a07;
  margin-top: 100px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-glow);
}

/* MEDIA QUERIES (RESPONSIVENESS) */
@media (max-width: 768px) {
  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px;
  }
  
  .menu-item {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .hero-section {
    padding: 35px 20px;
    margin: 30px 15px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .section-container {
    margin: 50px auto;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
/* Pływający przycisk wsparcia */
.buycoffee-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e293b; /* Kolor Twoich kart */
    border: 1px solid #334155;
    padding: 10px 16px;
    border-radius: 50px; /* Zaokrąglona pigułka */
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Ikona kawy ze specjalnym, ciepłym podświetleniem */
.buycoffee-btn .coffee-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: #f59e0b; /* Bursztynowy / kawowy akcent */
    color: #0f172a;
    border-radius: 50%;
    font-size: 14px;
    transition: transform 0.3s;
}

/* Chowanie tekstu na małych ekranach (zostaje sama ikona, żeby nie zasłaniać UI) */
@media (max-width: 480px) {
    .buycoffee-btn {
        padding: 8px;
        bottom: 15px;
        right: 15px;
    }
    .buycoffee-btn .coffee-text {
        display: none;
    }
}

/* Efekty Hover (Najechanie myszką) */
.buycoffee-btn:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.buycoffee-btn:hover .coffee-icon {
    transform: rotate(15deg) scale(1.1);
}


/* =====================================
   ACCOUNT SYSTEM
===================================== */

.account-container {
    max-width: 520px;
    margin: 35px auto;
}

.account-card {
    background: rgba(20, 25, 38, 0.96);
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.08);
    text-align: left;
}

.account-card h3 {
    color: white;
    margin-bottom: 22px;
}

.account-card form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.account-card input,
.account-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #303b50;
    background: #101827;
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s;
}

.account-card textarea {
    min-height: 120px;
    resize: vertical;
}

.account-card input:focus,
.account-card textarea:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0,191,255,0.2);
}

.account-card label {
    color: #b9c5d8;
    font-size: 14px;
}

.account-card .cta-btn {
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.account-tab {
    flex: 1;
    padding: 13px;
    border: 1px solid #303b50;
    border-radius: 8px;
    background: #101827;
    color: #b9c5d8;
    cursor: pointer;
    transition: 0.2s;
}

.account-tab.active,
.account-tab:hover {
    background: #007da8;
    color: white;
    border-color: #00bfff;
}

.account-panel[hidden] {
    display: none !important;
}

.account-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.account-message.success {
    background: rgba(40, 200, 120, 0.12);
    border: 1px solid #28c878;
    color: #55e6a0;
}

.account-message.error {
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid #ff5555;
    color: #ff7777;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.profile-header h3 {
    margin: 0 0 6px;
}

.profile-header p {
    color: #00bfff;
    margin: 0;
}

.profile-avatar {
    font-size: 55px;
    color: #00bfff;
}

.profile-info {
    background: #101827;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #b9c5d8;
    overflow-wrap: anywhere;
}

.profile-public-info {
    margin-top: 25px;
    padding: 15px;
    background: #101827;
    border-radius: 8px;
    color: #b9c5d8;
    overflow-wrap: anywhere;
}

.profile-public-info p {
    white-space: pre-wrap;
}

.account-card a {
    color: #00bfff;
}

.logout-btn {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    background: transparent;
    border: 1px solid #ff5555;
    border-radius: 8px;
    color: #ff6666;
    cursor: pointer;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #ff5555;
    color: white;
}

.account-note {
    color: #8995a8;
    font-size: 12px;
    margin-top: 20px;
}

@media(max-width: 600px) {
    .account-card {
        padding: 20px;
    }

    .account-container {
        padding: 0 10px;
    }
}
