* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1c1c1c; /* Ciemnoszare tło */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin: 0 auto 1.5rem; /* wyśrodkuj poziomo */
    display: block; /* zapewnia działanie margin auto */
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.transparent-window {
    background: rgba(255, 255, 255, 0.01); /* Bardziej przezroczyste */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Delikatniejsza ramka */
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px); /* zmniejszony blur */
    box-shadow: none; /* wyłączony cień */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Dodane, aby wyśrodkować zawartość w pionie */
    width: 720px; /* szersze okno */
    height: 600px; /* wyższe okno */
    position: relative;
    animation: none; /* wyłączona animacja poświaty */
}

.transparent-window::before {
    display: none; /* ukryty pseudo-element z poświatą */
}

@keyframes borderPulse {
    0% {
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), 0 0 40px rgba(255, 255, 255, 0.5);
    }
    25% {
        border-color: rgba(200, 200, 200, 0.95);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), 0 0 50px rgba(200, 200, 200, 0.45);
    }
    50% {
        border-color: rgba(255, 255, 255, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), 0 0 60px rgba(255, 255, 255, 0.6);
    }
    75% {
        border-color: rgba(200, 200, 200, 0.95);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), 0 0 50px rgba(200, 200, 200, 0.45);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), 0 0 40px rgba(255, 255, 255, 0.5);
    }
}

.name {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 2rem; /* Zwiększony margines, aby zrobić miejsce */
    animation: none;
    text-shadow: none;
    background-color: transparent;
    padding: 0;
    border: none;
}

@media (max-width: 768px) {
    .transparent-window {
        padding: 2rem;
        width: 95%;
        height: auto; /* Zapewnia responsywną wysokość na mobilnych */
    }
} 

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover; /* Zapewnia, że wideo pokrywa cały ekran bez zniekształceń */
}

#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

#enter-text {
    color: white;
    font-size: 3rem;
    font-weight: 500;
    animation: pulse 2s infinite ease-in-out;
}

.video-controls-top {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.video-controls-top i {
    color: white;
    font-size: 1rem;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    transition: opacity 0.2s;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.video-controls {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Zmieniono z 'right' na 'left' */
    display: flex;
    flex-direction: row-reverse; /* Odwraca kolejność: przyciski, potem tytuł */
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

#song-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.video-controls .buttons {
    display: flex;
    gap: 0.5rem;
}

#sound-toggle, #skip-button, #skip-back-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

#sound-toggle:hover, #skip-button:hover, #skip-back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.status {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: transparent; /* usunięte tło */
    border: none; /* usunięta obwódka */
    transition: all 0.3s ease;
    max-width: 400px;
    word-wrap: break-word;
}

.status[contenteditable="false"]:hover {
    background: transparent; /* brak tła na hover */
    border: none; /* brak obwódki na hover */
}

.status:focus {
    outline: none;
    background: transparent; /* brak tła na focus */
    border: none; /* brak obwódki na focus */
    box-shadow: none; /* brak cienia na focus */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
}

.social-link[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-link[data-tooltip]:hover::before {
    opacity: 1;
} 

.social-link.tooltip-top[data-tooltip]::before {
    bottom: auto;
    top: -40px; /* pokaz nad ikonką */
} 

/* Discord presence */
.presence {
    display: flex;
    align-items: flex-start; /* Zmieniam na flex-start żeby elementy były wyrównane do góry */
    gap: 16px; /* Zwiększam gap między avatar a informacjami */
    color: #ffffff;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.8); /* Ciemniejsze tło dla lepszej czytelności */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Jaśniejsza ramka */
    padding: 16px; /* Zwiększam padding */
    border-radius: 16px; /* Zwiększam border-radius */
    min-width: 280px; /* Zmieniam na min-width żeby się rozciągał */
    max-width: 600px; /* Zwiększam max-width jeszcze bardziej */
    min-height: 120px; /* Dodaję minimalną wysokość */
    max-height: none; /* Usuwam ograniczenie wysokości */
    overflow: visible; /* Zmieniam na visible żeby długie teksty były widoczne */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); /* Cień dla lepszego kontrastu */
}

.presence-avatar {
    width: 52px; /* Zwiększam rozmiar avatara */
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Zapobiega zmniejszaniu avatara */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Dodaję ramkę do avatara */
}

.presence-info {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Zwiększam gap między elementami */
    min-width: 0; /* Pozwala na zawijanie tekstu */
    flex: 1;
    max-width: none; /* Usuwam max-width żeby tekst mógł się rozciągnąć */
    overflow: visible; /* Zmieniam na visible */
    min-height: 0; /* Pozwala na rozciąganie w wysokość */
}

.presence-name {
    font-size: 1.1rem; /* Zwiększam rozmiar nazwy */
    color: #ffffff;
    font-weight: 600; /* Grubsza czcionka */
    white-space: nowrap; /* Nazwa w jednej linii */
    overflow: visible; /* Zmieniam na visible */
    text-overflow: clip; /* Usuwam ellipsis */
    min-width: 0; /* Pozwala na rozciąganie */
}

.presence-status {
    font-size: 0.9rem;
    color: #d1d5db;
    white-space: nowrap; /* Status w jednej linii */
    overflow: visible; /* Zmieniam na visible */
    text-overflow: clip; /* Usuwam ellipsis */
    padding: 4px 8px; /* Dodaję padding */
    background: rgba(255, 255, 255, 0.1); /* Tło dla statusu */
    border-radius: 8px; /* Zaokrąglone rogi */
    display: inline-block;
    width: fit-content; /* Automatyczna szerokość */
    min-width: 0; /* Pozwala na rozciąganie */
}

.presence-activity {
    display: flex;
    align-items: flex-start; /* Zmieniam na flex-start żeby elementy były wyrównane do góry */
    gap: 12px; /* Zwiększam gap */
    max-width: none; /* Usuwam max-width */
    overflow: visible; /* Zmieniam na visible */
    padding: 8px 12px; /* Dodaję padding */
    background: rgba(255, 255, 255, 0.08); /* Tło dla aktywności */
    border-radius: 10px; /* Zaokrąglone rogi */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Delikatna ramka */
    min-width: 0; /* Pozwala na rozciąganie */
    flex-wrap: wrap; /* Pozwala na zawijanie elementów */
    min-height: 0; /* Pozwala na rozciąganie w wysokość */
}

.presence-art {
    width: 40px; /* Zmniejszam rozmiar okładki */
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    display: none; /* pokazujemy, gdy jest Spotify */
    flex-shrink: 0;
    margin-top: 2px; /* Wyrównanie z tekstem */
} 

.presence-game {
    width: 40px; /* Zmniejszam rozmiar logo gry */
    height: 40px;
    border-radius: 50%; /* okrągłe logo gry */
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7); /* delikatna obwódka */
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.35); /* lekki cień jak na przykładzie */
    display: none; /* pokazujemy, gdy jest aktywność gry */
    flex-shrink: 0;
    margin-top: 2px; /* Wyrównanie z tekstem */
} 

/* Custom status Discord w popoverze */
.custom-status-container {
    margin-top: 8px; /* Zwiększam margines */
    padding: 10px 12px; /* Zwiększam padding */
    background: rgba(0, 0, 0, 0.6); /* Ciemniejsze tło */
    border-radius: 12px; /* Zwiększam border-radius */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Jaśniejsza ramka */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none; /* Usuwam max-width żeby się rozciągał */
    overflow: visible; /* Zmieniam na visible */
    min-width: 0; /* Pozwala na rozciąganie */
    min-height: 0; /* Pozwala na rozciąganie w wysokość */
}

.custom-status-text {
    max-width: none; /* Usuwam max-width */
    overflow: visible; /* Zmieniam na visible */
    text-overflow: clip; /* Usuwam ellipsis */
    /* Usuwam white-space: nowrap żeby custom status był w pełni widoczny */
    word-wrap: break-word;
    line-height: 1.4; /* Zwiększam line-height */
    font-size: 0.9rem; /* Zwiększam rozmiar czcionki */
    color: #e5e7eb; /* Jaśniejszy kolor tekstu */
    text-align: center;
    min-width: 0; /* Pozwala na rozciąganie */
    min-height: 0; /* Pozwala na rozciąganie w wysokość */
}

/* Dodaję style dla tekstu aktywności */
.presence-activity-text {
    flex: 1;
    min-width: 0;
    min-height: 0; /* Pozwala na rozciąganie w wysokość */
    overflow: visible;
    white-space: normal; /* Pozwala na zawijanie tekstu */
    word-wrap: break-word;
    line-height: 1.3;
    padding: 2px 0; /* Dodaję padding w pionie */
}

/* Gdy nie ma custom statusu */
.custom-status-text:empty::before {
    content: "Brak statusu";
    color: #6b7280;
    font-style: normal;
}

.presence-trigger {
    position: relative;
}

/* Popover Discord - ograniczenia względem głównego okna */
.presence-popover {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 60px; /* pod ikonką Discord */
    display: none;
    z-index: 20;
    max-width: 280px; /* Ograniczam szerokość żeby nie wychodził poza główne okno */
    width: max-content;
    overflow: hidden; /* Ukrywa treść która wychodzi poza granice */
}

/* Responsywne pozycjonowanie popovera */
@media (max-width: 768px) {
    .presence-popover {
        left: auto;
        right: 0;
        transform: none;
        max-width: calc(100vw - 40px);
    }
    
    .presence-popover::after {
        left: auto;
        right: 20px;
        transform: none;
    }
    
    .presence {
        max-width: 250px;
    }
}

/* Popover dla małych ekranów - pozycjonowanie w lewo */
@media (max-width: 480px) {
    .presence-popover {
        left: 0;
        right: auto;
    }
    
    .presence-popover::after {
        left: 20px;
        right: auto;
    }
}

.presence-trigger:hover .presence-popover {
    display: block;
}

.presence-popover::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -8px; /* strzałka nad popoverem wskazująca w górę */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.06); /* odwrócona strzałka */
}

/* Sprawdź czy popover nie wychodzi poza lewą stronę */
.presence-popover.left-aligned {
    left: 0; /* wyrównaj do lewej strony ikony */
    transform: none;
}

.presence-popover.left-aligned::after {
    left: 20px;
    transform: none;
}

/* Sprawdź czy popover nie wychodzi poza prawą stronę */
.presence-popover.right-aligned {
    left: auto;
    right: 0; /* wyrównaj do prawej strony ikony */
    transform: none;
}

.presence-popover.right-aligned::after {
    left: auto;
    right: 20px;
    transform: none;
}

/* Ograniczenia szerokości dla różnych elementów w popoverze */
.presence {
    max-width: 260px; /* Mniejsza szerokość niż popover */
    overflow: hidden;
}

.presence-info {
    max-width: 100%;
    overflow: hidden;
}

.presence-name,
.presence-status,
.presence-activity {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-status-container {
    max-width: 100%;
    overflow: hidden;
}

.custom-status-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Usuwam white-space: nowrap żeby custom status był w pełni widoczny */
    word-wrap: break-word;
    line-height: 1.3;
}


 

/* Contact Button Styles */
.contact-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.contact-button {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-button:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.contact-button:active {
    transform: translateY(0);
}

/* Hidden Contact Form Styles */
.contact-form-hidden {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    z-index: 999;
    font-family: 'Inter', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-form-hidden.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-form-hidden .form-group {
    margin-bottom: 1rem;
}

.contact-form-hidden #sender-name-hidden,
.contact-form-hidden #message-text-hidden {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    resize: vertical;
}

.contact-form-hidden #sender-name-hidden::placeholder,
.contact-form-hidden #message-text-hidden::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-hidden #sender-name-hidden:focus,
.contact-form-hidden #message-text-hidden:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form-hidden #message-text-hidden {
    min-height: 100px;
}

.contact-form-hidden .send-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.contact-form-hidden .send-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.contact-form-hidden .send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.contact-form-hidden .form-status {
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

.contact-form-hidden .form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-form-hidden .form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive design for hidden contact form */
@media (max-width: 768px) {
    .contact-form-hidden {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        top: 70px;
    }
} 

