/* Import Czcionki */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

body {
    font-family: "Outfit", sans-serif;
    background-color: #09090b; /* Głęboki, matowy Zinc 950 */
    color: #fafafa;
    overflow-x: hidden;
}

/* Tło Dot Matrix */
.bg-dots {
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.06) 1px,
        transparent 1px
    );
    background-size: 24px 24px;
}

/* Wielkie rozmyte światła w tle */
.bg-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, 0.05) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    z-index: -1;
    pointer-events: none;
}
.bg-glow-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(
        circle,
        rgba(168, 85, 247, 0.05) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    z-index: -1;
    pointer-events: none;
}

/* -----------------------------------------
   ANIMOWANY GRADIENT BENTO BOX
------------------------------------------ */
.bento-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 1px; /* To grubość naszej świecącej kreski */
    overflow: hidden;
    z-index: 1;
    background: rgba(24, 24, 27, 0.5); /* Tło jeśli animacja by nie działała */
}

/* Obracający się gradient w tle wrappera */
.bento-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    /* Standardowy kolor kreski: błękitny/cyjan */
    background: conic-gradient(
        from 0deg,
        transparent 70%,
        #0ea5e9 80%,
        #00f2fe 100%
    );
    transform: translate(-50%, -50%);
    animation: spin-border 4s linear infinite;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Wzmocnienie świecenia przy najechaniu myszką */
.bento-wrapper:hover::before {
    opacity: 1;
}

/* Wewnętrzne tło kafelka (zakrywa środek, zostawia krawędź) */
.bento-inner {
    position: relative;
    background: rgba(15, 15, 18, 0.95); /* Ciemny środek (Zinc 900) */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 23px; /* O 1px mniej niż wrapper */
    height: 100%;
    width: 100%;
    z-index: 2;
    overflow: hidden;
}

/* Wersja CZERWONA dla Właścicieli (Paqlio & Maqio) */
.bento-wrapper-red::before {
    background: conic-gradient(
        from 0deg,
        transparent 70%,
        #ef4444 80%,
        #f87171 100%
    );
}

/* -----------------------------------------
   ANIMACJE I EFEKTY TEKSTOWE
------------------------------------------ */
.text-gradient {
    background: linear-gradient(to right, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

.text-gradient-red {
    background: linear-gradient(to right, #ef4444, #f87171, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}
@keyframes spin-border {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Zielona, pulsująca kropka graczy online */
.dot-live {
    box-shadow: 0 0 10px 2px rgba(34, 197, 94, 0.5);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Animacje obracających się kółek w Hero */
.spin-circle-slow {
    animation: spin 30s linear infinite;
}
.spin-circle-fast {
    animation: spin-reverse 20s linear infinite;
}
.spin-avatar-ring {
    animation: spin 6s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}
