/************************************************************************
   LASTFM CARD - LA FEL CU PROBLEME !!
*************************************************************************/

.lastfm-card {
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.lastfm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.lastfm-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.lastfm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lastfm-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #d51007;
    animation: lastfm-pulse 2s ease-in-out infinite;
}

@keyframes lastfm-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.lastfm-title {
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.lastfm-tracks-container {
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    margin-right: 0;
    scrollbar-gutter: stable;
}

.lastfm-tracks-container::-webkit-scrollbar {
    width: 6px;
}

.lastfm-tracks-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.lastfm-tracks-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.lastfm-tracks-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lastfm-track {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lastfm-track:last-child {
    margin-bottom: 0;
}

.lastfm-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.lastfm-track:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.6);
}

.lastfm-track.now-playing {
    border-color: rgba(213, 16, 7, 0.3);
    background: linear-gradient(135deg, rgba(213, 16, 7, 0.08) 0%, rgba(10, 10, 10, 0.6) 100%);
}

.lastfm-track.now-playing::before {
    background: linear-gradient(90deg, transparent, rgba(213, 16, 7, 0.3), transparent);
}

.lastfm-track-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #888888;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    transition: all 0.3s ease;
}

.lastfm-track:hover .lastfm-track-number {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.lastfm-track.now-playing .lastfm-track-number {
    background: rgba(213, 16, 7, 0.15);
    border-color: rgba(213, 16, 7, 0.3);
    color: #d51007;
    font-size: 0;
}

.lastfm-track.now-playing .lastfm-track-number::after {
    content: '♪';
    font-size: 12px;
    animation: music-note 1.5s ease-in-out infinite;
}

@keyframes music-note {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.lastfm-album-container {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.lastfm-album-art {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lastfm-track:hover .lastfm-album-art {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lastfm-track.now-playing .lastfm-album-art {
    border-color: rgba(213, 16, 7, 0.4);
    box-shadow: 0 0 12px rgba(213, 16, 7, 0.2);
}

.lastfm-track-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lastfm-track-name {
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lastfm-track-artist {
    font-size: 11px;
    color: #cccccc;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lastfm-track-date {
    font-size: 10px;
    color: #666666;
    font-family: 'Inter', monospace;
    margin-top: 2px;
}

.lastfm-loading {
    text-align: center;
    padding: 24px;
    color: #888888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lastfm-loading .loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(213, 16, 7, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.lastfm-error {
    text-align: center;
    padding: 20px;
    color: #f04747;
    font-size: 13px;
    background: rgba(240, 71, 71, 0.05);
    border: 1px solid rgba(240, 71, 71, 0.2);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .lastfm-card {
        padding: 18px;
        margin-bottom: 16px;
    }
    
    .lastfm-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    
    .lastfm-title {
        font-size: 13px;
    }
    
    .lastfm-tracks-container {
        max-height: 360px;
        padding-right: 6px;
        margin-right: -6px;
    }
    
    .lastfm-track {
        padding: 10px;
        margin-bottom: 8px;
        gap: 10px;
    }
    
    .lastfm-track-number {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .lastfm-album-art {
        width: 32px;
        height: 32px;
    }
    
    .lastfm-track-name {
        font-size: 13px;
    }
    
    .lastfm-track-artist {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .lastfm-card {
        padding: 16px;
        margin-bottom: 8px;
    }
    
    .lastfm-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .lastfm-title {
        font-size: 12px;
    }
    
    .lastfm-tracks-container {
        max-height: 340px;
        padding-right: 4px;
        margin-right: -4px;
    }
    
    .lastfm-track {
        padding: 10px;
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .lastfm-track-number {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .lastfm-album-art {
        width: 38px;
        height: 38px;
    }
    
    .lastfm-track-name {
        font-size: 13px;
    }
    
    .lastfm-track-artist {
        font-size: 11px;
    }
    
    .lastfm-track-date {
        font-size: 9px;
    }
}

/************************************************************************
   SKILLS CSS - FACUT DE DEUSA 2.1
*************************************************************************/

.skills-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.skills-section-title i {
    font-size: 18px;
    color: rgb(var(--accent));
}

#skills .skills-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#skills .skills-search-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#skills .skills-search-label {
    font-size: 26px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d8deea;
    font-weight: 700;
}

#skills .skills-search-input {
    min-height: 50px;
    border-radius: 10px;
}

#skills .skills-search-count {
    font-size: 13px;
    color: #9aa1b0;
}

#skills .skills-meta-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#skills .skills-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #d5dbeb;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
}

#skills .skills-pill i {
    color: #9ca9ff;
}

#skills .skills-group {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(10, 12, 18, 0.9) 0%, rgba(8, 10, 14, 0.86) 100%);
    padding: 16px;
    margin-bottom: 0;
}

#skills .skills-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

#skills .skills-group-count {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #e3e7f2;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

#skills .skills-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#skills .skills-section-title i {
    font-size: 18px;
    color: rgb(var(--accent));
}

#skills .languages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

#skills .language-card {
    background: linear-gradient(150deg, rgba(12, 14, 20, 0.84), rgba(10, 12, 18, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

#skills .language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

#skills .language-card:hover {
    transform: translateY(-3px);
    border-color: rgb(var(--accent) / 0.34);
    background: linear-gradient(150deg, rgba(14, 17, 24, 0.9), rgba(11, 13, 20, 0.84));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

#skills .language-icon {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 11px;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

#skills .language-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
    transition: filter 0.22s ease, transform 0.22s ease;
}

#skills .language-card:hover .language-icon {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgb(var(--accent) / 0.36);
}

#skills .language-card:hover .language-icon img {
    transform: scale(1.03);
    filter: drop-shadow(0 0 10px rgb(var(--accent) / 0.25));
}

#skills .language-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-align: left;
}

#skills .discord-card[hidden],
#skills .skills-group[hidden] {
    display: none !important;
}

#skills .language-card[hidden],
#projects .project-card[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    #skills .skills-search-label {
        font-size: 20px;
    }

    #skills .languages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #skills .language-card {
        padding: 11px 12px;
    }

    #skills .language-icon {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 520px) {
    #skills .languages-grid {
        grid-template-columns: 1fr;
    }

    #skills .skills-meta-pills {
        gap: 8px;
    }

    #skills .skills-pill {
        font-size: 11px;
        padding: 8px 12px;
    }
}

.about-card {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:last-child {
    margin-bottom: 0;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.about-card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.6);
}

.about-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: rgb(var(--accent) / 0.12);
    border: 2px solid rgb(var(--accent) / 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgb(var(--accent));
    transition: all 0.3s ease;
}

.about-card:hover .about-icon {
    transform: scale(1.05) rotate(5deg);
    background: rgb(var(--accent) / 0.18);
    border-color: rgb(var(--accent) / 0.5);
}

.about-content {
    flex: 1;
    text-align: left;
}

.about-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.about-content p {
    font-size: 12px;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.about-fact-card {
    margin-top: 16px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgb(var(--accent) / 0.28);
    background: linear-gradient(145deg, rgba(14, 16, 22, 0.92) 0%, rgba(10, 12, 16, 0.78) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.about-fact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% -25%, rgb(var(--accent) / 0.25), transparent 48%);
    pointer-events: none;
}

.about-fact-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.about-fact-badge {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgb(var(--accent));
    padding: 6px 10px;
    border-radius: 999px;
    background: rgb(var(--accent) / 0.14);
    border: 1px solid rgb(var(--accent) / 0.3);
}

.about-fact-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: all 0.25s ease;
}

.about-fact-btn:hover {
    border-color: rgb(var(--accent) / 0.5);
    background: rgb(var(--accent) / 0.16);
    transform: translateY(-1px);
}

.about-fact-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.about-fact-text {
    font-size: 13px;
    line-height: 1.65;
    color: #f0f0f0;
    margin: 0;
    min-height: 52px;
}

.about-fact-chip {
    align-self: flex-start;
    font-size: 11px;
    color: #d9d9d9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    letter-spacing: 0.2px;
}

.about-fact-card.fact-animate .about-fact-text,
.about-fact-card.fact-animate .about-fact-chip {
    animation: about-fact-reveal 0.45s ease;
}

@keyframes about-fact-reveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-final-card {
    background: linear-gradient(135deg, rgb(var(--accent) / 0.1) 0%, rgba(15, 15, 15, 0.8) 100%);
    border-color: rgb(var(--accent) / 0.25);
    margin-top: 24px;
}

.skills-final-card::before {
    background: linear-gradient(90deg, transparent, rgb(var(--accent) / 0.3), transparent);
}

.final-card-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.final-icon {
    font-size: 36px;
    width: 72px;
    height: 72px;
    background: rgb(var(--accent) / 0.15);
    border: 2px solid rgb(var(--accent) / 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgb(var(--accent));
    transition: all 0.3s ease;
}

.skills-final-card:hover .final-icon {
    transform: scale(1.05) rotate(-8deg);
    background: rgb(var(--accent) / 0.25);
    border-color: rgb(var(--accent) / 0.6);
}

.final-text {
    flex: 1;
    text-align: left;
}

.final-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.final-text p {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .language-card {
        padding: 20px 16px;
    }

    .language-icon {
        width: 72px;
        height: 72px;
    }

    .language-name {
        font-size: 12px;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .about-icon {
        margin: 0 auto;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h3 {
        font-size: 12px;
    }

    .about-content p {
        font-size: 13px;
    }

    .about-fact-card {
        padding: 18px;
        margin-top: 14px;
    }

    .about-fact-top {
        flex-wrap: wrap;
        margin-bottom: 8px;
    }

    .about-fact-text {
        font-size: 12px;
        min-height: 0;
    }

    .final-card-content {
        flex-direction: column;
        text-align: center;
    }

    .final-icon {
        margin: 0 auto;
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .final-text {
        text-align: center;
    }

    .final-text h3 {
        font-size: 18px;
    }

    .final-text p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .skills-section-title {
        font-size: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .languages-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .language-card {
        padding: 20px 16px;
    }

    .language-icon {
        width: 68px;
        height: 68px;
    }

    .language-name {
        font-size: 12px;
    }

    .about-card {
        padding: 16px;
        margin-bottom: 8px;
    }

    .about-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .about-content h3 {
        font-size: 13px;
    }

    .about-content p {
        font-size: 13px;
    }

    .about-fact-card {
        padding: 16px;
    }

    .about-fact-btn {
        width: 100%;
        justify-content: center;
    }

    .about-fact-text {
        font-size: 13px;
    }

    .skills-final-card {
        padding: 20px;
        margin-top: 20px;
    }

    .final-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .final-text h3 {
        font-size: 17px;
    }

    .final-text p {
        font-size: 13px;
    }
}

