/* ==================== GLOBAL ==================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('images/background.png') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ==================== CONTAINER ==================== */
.container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: filter 0.3s ease;
}

/* ==================== RECTANGLE CARD ==================== */
.rectangle {
  width: 600px;
  min-height: 450px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* ==================== AVATAR & INFO ==================== */
.avatar-section {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.name {
  font-size: 32px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.6);
  margin: 0;
}

.description {
  font-size: 22px;
  color: rgba(255,255,255,0.9);
  margin: 5px 0 0;
  display: flex;
  align-items: center;
}

/* ==================== LINKS GRID ==================== */
.links-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.link-card:hover::before {
  left: 100%;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.link-card i {
  font-size: 24px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.link-card span {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.link-card:hover i {
  transform: scale(1.2);
}

/* Social gradients */
.youtube:hover { background: linear-gradient(135deg, rgba(255,0,0,0.3), rgba(255,0,0,0.1)); border-color:#ff0000; }
.instagram:hover { background: linear-gradient(135deg, rgba(225,48,108,0.3), rgba(225,48,108,0.1)); border-color:#e1306c; }
.discord:hover { background: linear-gradient(135deg, rgba(114,137,218,0.3), rgba(114,137,218,0.1)); border-color:#7289da; }
.spotify:hover { background: linear-gradient(135deg, rgba(30,215,96,0.3), rgba(30,215,96,0.1)); border-color:#1DB954; }
.steam:hover { background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1)); border-color:#171a21; }
.tiktok:hover { background: linear-gradient(135deg, rgba(225,48,108,0.3), rgba(225,48,108,0.1)); border-color:#e1306c; }

/* ==================== FOOTER ==================== */
.footer-text {
  text-align: center;
  margin-top: 10px;
  padding: 8px 15px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.footer-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.8s;
}

.footer-text:hover::before { left: 100%; }

.footer-text p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.footer-text:hover .footer-icon { transform: scale(1.1); opacity:1; }

.separator { color: rgba(255,255,255,0.5); margin:0 4px; font-weight:300; }

.footer-rights {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}

/* ==================== CURSOR ==================== */
.cursor {
  font-weight: bold;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity:0; } }

/* ==================== ENTER OVERLAY ==================== */
#enter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enter-rectangle {
  max-width: 420px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.enter-btn {
  margin-top: 20px;
  padding: 10px 28px;
  font-size: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(6px);
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  width: auto;
}

.enter-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* blokada strony przy overlay */
body.enter-locked .container {
  filter: blur(10px);
  pointer-events: none;
}

/* animacja fade */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==================== MUSIC INFO ==================== */
#music-info {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 15px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  color: white;
  cursor: pointer;
  backdrop-filter: blur(5px);
  font-weight: bold;
  z-index: 10000;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width:768px) {
  .rectangle { width: 90%; height:auto; min-height:420px; }
  .links-grid { grid-template-columns: repeat(2,1fr); gap:10px; }
  .avatar { width:80px; height:80px; }
  .name { font-size:24px; }
  .description { font-size:18px; }
}

/* ==================== SNOW ==================== */
#snow {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  overflow:hidden;
  z-index:9999;
}

.snowflake {
  position:absolute;
  top:-10px;
  color:white;
  opacity:0.8;
  user-select:none;
  animation:fall linear;
}

.footer-text a {
    color: white;
    text-decoration: none; /* usuwa podkreÅ›lenie, jeÅ›li chcesz */
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #ffd; /* opcjonalny efekt hover, np. lekko Å¼Ã³Å‚ty */
}

@keyframes fall { to { transform:translateY(110vh); } }