/* ==========================================================================
   1. STYLE TELEFON
   ========================================================================== */
body {
    background-color: #a3b19b;
    color: #2b3a22; 
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;   
}
html, body {
    cursor: url('zdjecia/foxgif.gif'), auto;
}

a, button, .interest-item, .lang-badge, .send-comment-btn {
    cursor: url('zdjecia/foxgif.gif'), pointer;
}

main {
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

header {
    width: 100%;
    max-width: 450px;
    margin-bottom: 40px;
}

header nav ul {
    list-style: none;          
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px;                 
}

header nav a {
    text-decoration: none;     
    color: #2b3a22;
    font-weight: bold;
    padding: 10px 20px;       
    border-radius: 12px;      
    display: inline-block;
    background-color: transparent; 
    transition: all 0.25s ease;    
}

header nav a:hover, 
header nav a.active {
    background-color: #2b3a22;
    color: #a3b19b;
}

header nav a:hover {
    transform: translateY(-2px);   
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

.about-section h2, .comments-section h2 {
    font-size: 26px;
    color: #1e3312;
    margin-bottom: 15px;
}

.about-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #1e3312; 
    margin-bottom: 30px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.25);
    border-left: 4px solid #1e3312; 
    border-radius: 4px 12px 12px 4px; 
    box-sizing: border-box;
}

.about-intro::first-line {
    font-weight: bold;
    color: #1e3312;
}
.interests-container,
.lang-container {
    list-style: none; 
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px; 
}

.interests-container {
    margin-bottom: 35px;
}

.interest-item,
.lang-badge {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 15px;
    color: #2b3a22;
    background-color: rgba(255, 255, 255, 0.25); 
    border: 1px solid rgba(43, 58, 34, 0.15); 
    box-sizing: border-box; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.interest-text,
.lang-badge {
    line-height: 1.4;
}

.interest-text strong,
.lang-badge strong {
    margin-right: 4px;
    color: #1e3312; 
}

.flag-sub {
    font-size: 11px;
    opacity: 0.75;
    text-transform: uppercase;
    margin-left: 2px;
}

.interest-item:hover,
.lang-badge:hover {
    background-color: rgba(255, 255, 255, 0.4); 
    transform: translateY(-3px); 
    box-shadow: 0 6px 12px rgba(43, 58, 34, 0.15);
    border-color: rgba(43, 58, 34, 0.3);
}

.interest-item::before,
.lang-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg); 
}

.interest-item:hover::before,
.lang-badge:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    100% {
        left: 150%;
    }
}

.lang-badge {
    border-left-width: 5px; 
}

.lang-badge.fluent {
    border-left-color: #1e3312; 
}

.lang-badge.basics {
    border-left-color: #4a633c;
}

.lang-badge.learning {
    border-left-color: #738a64;
}

.about-section h3 {
    color: #1e3312;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 20px;
}

.comments-section {
    width: 100%;
    margin-top: 40px;
}

.comment-box-container {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(43, 58, 34, 0.15);
    padding: 20px;
    border-radius: 12px;
    box-sizing: border-box;
    margin-bottom: 25px;
}

#comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#comment-form input, 
#comment-form textarea {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(43, 58, 34, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #1e3312;
    font-family: sans-serif;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#comment-form input:focus, 
#comment-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #1e3312;
    box-shadow: 0 0 8px rgba(30, 51, 18, 0.1);
}

#comment-form textarea {
    resize: none;
    height: 80px;
}

.send-comment-btn {
    background-color: #2b3a22;
    color: #a3b19b;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.send-comment-btn:hover {
    background-color: #1e3312;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}
.comments-list::-webkit-scrollbar-thumb {
    background-color: rgba(43, 58, 34, 0.3);
    border-radius: 10px;
}

.comment-card {
    background-color: #2b3a22;
    color: #a3b19b;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    animation: postFade 0.3s ease-out;
}

@keyframes postFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    border-bottom: 1px solid rgba(163, 177, 155, 0.2);
    padding-bottom: 4px;
}

.comment-author {
    font-weight: bold;
    color: #ffffff;
    font-size: 14px;
}

.comment-date {
    opacity: 0.6;
}

.comment-body {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.loading-comments, .no-comments {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    padding: 20px;
    color: #1e3312;
}

/* ==========================================================================
   2. STYLE DLA KOMP 
   ========================================================================== */
@media (min-width: 992px) {
    .main-layout {
        display: flex;
        flex-direction: row;  
        justify-content: center; 
        align-items: flex-start; 
        gap: 35px;
    }

    main, header, footer {
        max-width: 1200px; 
        margin: 0 auto;
    }

    main {
        margin-top: 20px;
    }

    .profile-section {
        width: 260px;
        flex-shrink: 0;
        position: sticky;
        top: 40px;
    }

    .about-section {
        flex: 1.2;
    }

    .comments-section {
        width: 340px;
        flex-shrink: 0;
        margin-top: 0;
        position: sticky;
        top: 40px;
    }
}

/* ==========================================================================
   3. PFP
   ========================================================================== */
.profile-card {
    background-color: #2b3a22;
    color: #a3b19b;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    width: 110px;
    height: 110px;
    background-color: #a3b19b;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    position: relative; 
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; 
    cursor: url('zdjecia/foxgif.gif'), pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-placeholder:hover img {
    transform: scale(1.08) rotate(4deg);
}

.avatar-status {
    position: absolute;
    bottom: -5px;        
    right: -45px;        
    font-size: 11px;      
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #a3b19b;  
    color: #2b3a22;       
    padding: 6px 12px;
    border-radius: 10px;  
    line-height: 1.2;
    white-space: nowrap;  
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(43, 58, 34, 0.2);
    transform-origin: bottom left;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-status::after {
    content: '';
    position: absolute;
    bottom: 7px;
    left: -6px;          
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #a3b19b; 
}

.avatar-placeholder:hover .avatar-status {
    transform: scale(1.1) rotate(-3deg);
}

.profile-card h3 {
    margin: 10px 0 5px 0;
    font-size: 22px;
}

.profile-subtitle {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.8;
}

.click-counter-text {
    font-size: 13px;
    color: rgba(163, 177, 155, 0.9); 
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: 500;
}

.profile-divider {
    border: 0;
    border-top: 1px solid rgba(163, 177, 155, 0.3);
    margin-bottom: 15px;
}

.dm-status {
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-btn {
    display: inline-block;
    background-color: #a3b19b;
    color: #2b3a22;
    padding: 10px 20px;
    border-radius: 25px; 
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease; 
}

.contact-btn:hover {
    background-color: #1e3312;
    color: #a3b19b;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   4. ANIMACJE STRON
   ========================================================================== */
.page-content {
    display: none; 
}

.page-content.active {
    display: block;
    animation: fadeUp 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.heart-beat {
    animation: pulse 0.4s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.4); }
}

.avatar-bounce {
    animation: avatarJump 0.4s ease-in-out;
}

@keyframes avatarJump {
    0% { transform: scale(1) translateY(0); }
    30% { transform: scale(1.08, 0.92) translateY(0); }
    60% { transform: scale(0.95, 1.05) translateY(-8px); }
    100% { transform: scale(1) translateY(0); }
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
footer {
    width: 100%;
    max-width: 450px;
    margin-top: 50px; 
    margin-bottom: 20px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    footer { max-width: 1200px; }
}

.footer-content {
    background-color: #2b3a22; 
    color: rgba(163, 177, 155, 0.7); 
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   6. MUSIC 
   ========================================================================== */

.music-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.spotify-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1ed760;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.spotify-profile-btn:hover {
    background-color: #1db954;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.spotify-icon {
    width: 14px;
    height: 14px;
}

.music-top-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.music-intro {
    margin-bottom: 0 !important;
}

.now-playing-link-wrapper {
    text-decoration: none;
    display: block;
}

.now-playing-container {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(43, 58, 34, 0.15);
    padding: 12px 16px;
    border-radius: 12px;
    box-sizing: border-box;
    position: relative;
    transition: all 0.2s ease;
}

.now-playing-link-wrapper:hover .now-playing-container {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(43, 58, 34, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 58, 34, 0.1);
}

.now-playing-status {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #2b3a22;
    color: #a3b19b;
    padding: 3px 8px;
    border-radius: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.offline { background-color: #738a64; }
.status-dot.online {
    background-color: #2ecc71;
    animation: statusPulse 1.5s infinite alternate;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}

.now-playing-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.track-cover-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: #2b3a22;
}

.track-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    padding-right: 85px;
}

.track-title {
    font-size: 14px;
    font-weight: bold;
    color: #1e3312;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: #2b3a22;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-columns-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.music-column {
    flex: 1;
}

.music-column h3 {
    font-size: 18px;
    color: #1e3312;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(43, 58, 34, 0.15);
    padding-bottom: 5px;
}

.fav-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fav-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(43, 58, 34, 0.12);
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.fav-track-item:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(43, 58, 34, 0.08);
    border-color: rgba(43, 58, 34, 0.25);
}

.fav-track-cover {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fav-track-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fav-track-title {
    font-size: 13px;
    font-weight: bold;
    color: #1e3312;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-track-artist {
    font-size: 11px;
    color: #2b3a22;
    opacity: 0.75;
}

.fav-artists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.fav-artist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(43, 58, 34, 0.08);
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.fav-artist-item:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(43, 58, 34, 0.08);
    border-color: rgba(43, 58, 34, 0.25);
}

.fav-artist-img-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    background-color: #2b3a22;
}

.fav-artist-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-artist-name {
    font-size: 12px;
    font-weight: bold;
    color: #1e3312;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   7. TOP ALBUMS
   ========================================================================== */
.music-albums-section {
    margin-top: 35px;
}

.music-albums-section h3 {
    font-size: 18px;
    color: #1e3312;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(43, 58, 34, 0.15);
    padding-bottom: 5px;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.album-item {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(43, 58, 34, 0.08);
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.album-item:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(43, 58, 34, 0.08);
    border-color: rgba(43, 58, 34, 0.25);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.album-title {
    font-size: 13px;
    font-weight: bold;
    color: #1e3312;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-artist {
    font-size: 11px;
    color: #2b3a22;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .music-top-row {
        flex-direction: row;
        align-items: center;
    }
    .music-columns-container {
        flex-direction: row;
        gap: 35px;
    }
    .music-intro { flex: 1 !important; }
    .now-playing-link-wrapper { flex: 1 !important; }
}

@media (max-width: 440px) {
    .now-playing-status {
        position: static;
        margin-bottom: 10px;
        justify-content: center;
        width: fit-content;
    }
    .track-info { padding-right: 0; }
    .albums-grid { grid-template-columns: repeat(2, 1fr); }
}
