@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --accent-purple: #a855f7;
    --kick-green: #53fc18;
    --twitch-purple: #9146ff;
    --bg-card: rgba(22, 22, 26, 0.85);
    --text-dim: #94a3b8;
    --font-header: 'Rajdhani', sans-serif;
}

/* HEADER */
.player-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px; padding: 25px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; backdrop-filter: blur(10px);
}

.player-main-info { display: flex; align-items: center; gap: 20px; }
.player-avatar { position: relative; width: 110px; height: 110px; border-radius: 12px; border: 3px solid var(--accent-purple); }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* KROPKA STATUSU */
.live-dot { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #000; z-index: 10; }
.live-dot.is-live { background: var(--kick-green); box-shadow: 0 0 12px var(--kick-green); animation: pulse-live 1.5s infinite; }
.live-dot.is-offline { background: #ff4444; box-shadow: 0 0 8px #ff4444; animation: blink-offline 2s infinite; }

@keyframes pulse-live { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes blink-offline { 0% { opacity: 1; } 50% { opacity: 0.2; } 100% { opacity: 1; } }

/* FACEIT MINI STATS */
.faceit-mini-stats {
    display: flex; flex-direction: column; gap: 12px;
    padding: 0 30px; border-left: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1);
    min-width: 250px;
}
.faceit-row-main, .faceit-row-stats, .faceit-row-history { display: flex; align-items: center; justify-content: center; gap: 15px; }
.faceit-lvl-img { width: 32px !important; height: 32px !important; display: block !important; }
#faceit-elo { font-family: var(--font-header); font-weight: 700; color: var(--accent-purple); font-size: 18px; }

.h-stat { display: flex; align-items: center; gap: 6px; }
.h-stat span { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.h-stat strong { font-family: var(--font-header); font-size: 16px; color: white; }

.hist-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.header-history { display: flex; gap: 5px; }
.match-dot { width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; }
.match-win { background: rgba(83, 252, 24, 0.15); color: var(--kick-green); border: 1px solid var(--kick-green); }
.match-lose { background: rgba(255, 68, 68, 0.15); color: #ff4444; border: 1px solid #ff4444; }

/* PRZYCISKI */
.player-actions { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.btn-live-status, .btn-download-config { padding: 12px; border-radius: 8px; text-decoration: none; font-family: var(--font-header); font-weight: 700; text-align: center; transition: 0.3s; }
.btn-live-status { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.btn-live-status.is-live-btn { background: var(--kick-green); color: black; border: none; box-shadow: 0 0 15px rgba(83, 252, 24, 0.4); }
.btn-download-config { background: var(--accent-purple); color: white; box-shadow: 0 0 15px var(--accent-glow); }

/* GRID */
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.settings-container { background: var(--bg-card); padding: 20px; border-radius: 15px; border: 1px solid rgba(168,85,247,0.15); }
.setting-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.setting-row strong { color: var(--accent-purple); font-family: var(--font-header); }

.gear-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gear-item.mini { background: var(--bg-card); padding: 15px; border-radius: 10px; display: flex; align-items: center; gap: 12px; border-left: 3px solid var(--accent-purple); }
.pc-part { border-left-color: #6366f1 !important; }
.g-val { color: white; font-weight: 700; font-size: 13px; }
.g-lab { color: var(--text-dim); font-size: 9px; text-transform: uppercase; display: block; }


/* Aby ikona i ELO były w jednej linii */
.faceit-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

#lvl-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;  /* Wymuś szerokość */
    height: 32px; /* Wymuś wysokość */
    min-width: 32px; /* Zapobiega zgniataniu przez flexbox */
}

#lvl-icon-container {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    margin-right: 8px;
    vertical-align: middle;
}

#lvl-icon-container img {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.faceit-row-main {
    display: flex;
    align-items: center; /* Centruje ikonę i tekst w pionie */
    gap: 10px;           /* Robi odstęp między ikoną a ELO */
}

#lvl-icon-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lvl-icon-container img {
    max-width: 100%;
    height: auto;
}
#lvl-icon-container { min-width: 32px; min-height: 32px; display: inline-block; }


/* GŁÓWNY KONTENER SOCJALI */
.header-social-wrapper {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(168, 85, 247, 0.15) !important;
    clear: both;
}

/* IKONY - STYL "GLASS" */
.s-icon {
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    border-radius: 12px !important;
    color: #94a3b8 !important; /* Twój --text-dim */
    font-size: 20px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

/* EFEKTY PO NAJECHANIU */
.s-icon:hover {
    transform: translateY(-5px) !important;
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: #a855f7 !important; /* Twój --accent-purple */
    color: #fff !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4) !important;
}

/* KOLOR KICKA (DOPASOWANY DO TWOJEGO LIVE) */
.s-icon.ki:hover {
    border-color: #53fc18 !important;
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.4) !important;
    color: #53fc18 !important;
}


/* Ustawienia CS i sprzęt */ 


.section-title {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.1);
}

/* Świecący punkt pod ikoną */
.section-title i {
    color: var(--accent-purple);
    font-size: 20px;
    background: rgba(168, 85, 247, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* Animowany pasek pod tytułem */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
}

/* Animacja przesuwania paska */
@keyframes titleLineScan {
    0% { left: 0; width: 30px; opacity: 0.5; }
    50% { left: 50px; width: 100px; opacity: 1; }
    100% { left: 0; width: 30px; opacity: 0.5; }
}

/* Animacja pulsowania ikony w tytule */
@keyframes iconGlow {
    0% { box-shadow: 0 0 5px var(--accent-purple); }
    50% { box-shadow: 0 0 20px var(--accent-purple); }
    100% { box-shadow: 0 0 5px var(--accent-purple); }
}







.section-title {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 12px;
    /* Ciemniejsza linia bazowa na całą szerokość */
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.section-title i {
    color: var(--accent-purple);
    font-size: 20px;
    background: rgba(168, 85, 247, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    /* Animacja pulsowania ramki ikony */
    animation: iconGlow 3s infinite ease-in-out;
}

/* ANIMOWANY PASEK */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Dokładnie na linii border-bottom */
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    box-shadow: 0 0 15px var(--accent-purple);
    /* PRZYPISANIE ANIMACJI */
    animation: titleLineScan 4s infinite ease-in-out;
}

/* Dla sekcji Sprzęt zmieniamy kolor paska na niebieski, żeby pasował do PC Parts */
.gear-section .section-title::after {
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    box-shadow: 0 0 15px #6366f1;
}

.gear-section .section-title i {
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.3);
    animation: iconGlowPC 3s infinite ease-in-out;
}

@keyframes iconGlowPC {
    0% { box-shadow: 0 0 5px #6366f1; }
    50% { box-shadow: 0 0 20px #6366f1; }
    100% { box-shadow: 0 0 5px #6366f1; }
}









/* ustawienia cs2 i sprzęt */

.gear-item.mini {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid var(--accent-purple) !important; /* Mocniejszy akcent z boku */
    padding: 18px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Styl ikony wewnątrz gear-item */
.gear-item.mini i {
    font-size: 22px;
    color: var(--accent-purple);
    opacity: 0.8;
    transition: 0.3s;
}

.gear-item.mini:hover {
    transform: scale(1.02) translateX(5px);
    background: rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

.gear-item.mini:hover i {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-purple));
}

/* Specyficzny kolor dla części PC (Niebieskawy neon) */
.gear-item.pc-part {
    border-left-color: #6366f1 !important;
}
.gear-item.pc-part i {
    color: #6366f1;
}
.gear-item.pc-part:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}



/*licznik widzow kick*/

.viewer-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    border: 1px solid rgba(83, 252, 24, 0.3);
    color: #fff;
    vertical-align: middle;
}

.viewer-count i {
    color: #53fc18; /* Zielony kolor Kicka dla ikonki ludzika */
    font-size: 10px;
    margin-right: 4px;
}

/*licznik widzow twitch*/

.v-count {
    background: rgba(145, 70, 255, 0.2);
    border: 1px solid rgba(145, 70, 255, 0.4);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    margin-left: 10px;
    font-family: var(--font-header);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(145, 70, 255, 0.2);
    vertical-align: middle;
}

.v-count i {
    color: #a970ff;
    font-size: 10px;
}




/* Profil partnera - ONLINE / OFFLINE */


.status-badge-container {
    margin: 10px 0;
}

.status-badge {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* STYL DLA OFFLINE */
.status-badge.offline {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.2);
}

/* STYL DLA LIVE (Twitch) */
.status-badge.live {
    background: rgba(145, 70, 255, 0.15);
    color: #a970ff;
    border-color: rgba(145, 70, 255, 0.4);
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.3);
    animation: badgePulse 2s infinite ease-in-out;
}

/* Animacja pulsowania badge'a */
@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(145, 70, 255, 0.3); }
    50% { transform: scale(1.03); box-shadow: 0 0 20px rgba(145, 70, 255, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 5px rgba(145, 70, 255, 0.3); }
}

/* Ikona wewnątrz badge'a */
.status-badge i {
    font-size: 8px;
}