/* wwwroot/css/site.css - thejasp.space inspired design */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #050508;
    --card-bg: rgba(30, 32, 40, 0.85);
    --card-border: rgba(60, 65, 80, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #a0a3b1;
    --accent-glow: rgba(102, 126, 234, 0.15);
    --accent-color: #667eea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--text-primary);
}

/* --- MAIN LAYOUT --- */
.main-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- BACKGROUND EFFECTS --- */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 750px;
    background: radial-gradient(circle,
            rgba(102, 126, 234, 0.2) 0%,
            rgba(118, 75, 162, 0.1) 30%,
            transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.bg-ring {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: rotateRing 20s linear infinite;
}

.bg-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

@keyframes rotateRing {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.dust-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.dust {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 4s ease-in-out infinite;
}

.dust:nth-child(3n) {
    width: 2px;
    height: 2px;
    animation-duration: 3s;
}

.dust:nth-child(5n) {
    background: var(--accent-color);
    box-shadow: 0 0 4px var(--accent-color);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* --- TITLE with Metallic Effect --- */
.site-title {
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    user-select: none;
    background: linear-gradient(135deg,
            #667eea 0%,
            #a8b4f0 25%,
            #ffffff 50%,
            #a8b4f0 75%,
            #667eea 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metalShine 3s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

@keyframes metalShine {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

/* --- PROFILE CARD --- */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 25px;
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2d38;
}

.status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    background-color: #747f8d;
}

.status-online {
    background-color: #3ba55c;
}

.status-idle {
    background-color: #faa61a;
}

.status-dnd {
    background-color: #ed4245;
}

.status-offline {
    background-color: #747f8d;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.username {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-status i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.custom-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* --- SOCIAL BUTTONS --- */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* --- ACTIVITIES SECTION --- */
.activities-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    align-items: center;
}

.act-image-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.act-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    background: #2a2d38;
}

.act-sub-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--card-bg);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
}

.act-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.act-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 2px;
}

.act-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 3px;
    font-family: 'Consolas', monospace;
}

/* --- FOOTER --- */
.site-footer {
    position: relative;
    margin-top: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    user-select: none;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablets */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }

    .bg-glow,
    .bg-ring {
        width: 400px;
        height: 400px;
    }

    .site-footer {
        font-size: 0.55rem;
        margin-top: 20px;
    }
}

/* Mobile */
@media (max-width: 500px) {
    .main-wrapper {
        padding: 15px;
    }

    .site-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
        letter-spacing: 0.1em;
    }

    .profile-card {
        width: 100%;
        max-width: 100%;
        padding: 14px 16px;
        border-radius: 12px;
    }

    .profile-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    .avatar-wrapper {
        width: 42px;
        height: 42px;
    }

    .status-dot {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .username {
        font-size: 0.95rem;
    }

    .activity-status {
        font-size: 0.75rem;
    }

    .custom-status {
        font-size: 0.7rem;
    }

    .social-buttons {
        padding-top: 10px;
        gap: 6px;
    }

    .social-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .activities-section {
        margin-top: 10px;
        padding-top: 10px;
    }

    .activity-item {
        padding: 8px;
        gap: 8px;
        border-radius: 8px;
    }

    .act-image-wrap {
        width: 40px;
        height: 40px;
    }

    .act-title {
        font-size: 0.8rem;
    }

    .act-desc {
        font-size: 0.7rem;
    }

    .act-time {
        font-size: 0.6rem;
    }

    .bg-glow,
    .bg-ring {
        width: 280px;
        height: 280px;
    }

    .site-footer {
        font-size: 0.5rem;
        margin-top: 12px;
        letter-spacing: 0.15em;
    }

    /* Skills compact */
    .skills-section {
        margin-top: 10px;
        padding-top: 10px;
    }

    .section-header {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .skill-item {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .skill-item img {
        width: 18px;
        height: 18px;
    }

    /* Recent songs compact */
    .recent-songs-section {
        margin-top: 10px;
        padding-top: 10px;
    }

    .recent-song-item {
        padding: 6px 8px;
    }

    .recent-song-img {
        width: 30px;
        height: 30px;
    }

    .recent-song-name {
        font-size: 0.7rem;
    }

    .recent-song-artist {
        font-size: 0.6rem;
    }

    /* Typing section compact */
    .typing-section {
        padding: 8px 0;
        margin-top: 8px;
    }

    .typing-text {
        font-size: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 350px) {
    .site-title {
        font-size: 1.6rem;
    }

    .profile-card {
        padding: 12px 14px;
    }

    .avatar-wrapper {
        width: 38px;
        height: 38px;
    }

    .skill-item {
        width: 30px;
        height: 30px;
    }

    .skill-item img {
        width: 16px;
        height: 16px;
    }
}

/* --- TYPING ANIMATION --- */
.typing-section {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 10px;
}

.typing-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.typing-cursor {
    color: #667eea;
    animation: blink 1s infinite;
    font-weight: 100;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* --- SKILLS SECTION --- */
.skills-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 100%;
}

.skill-item {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    flex-shrink: 0;
}

.skill-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.skill-item:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Text-based skill icons */
.skill-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Skill icon colors on hover */
.skill-item[title="C#"]:hover {
    background: rgba(104, 33, 122, 0.2);
    border-color: #68217a;
    color: #68217a;
}

.skill-item[title="Python"]:hover {
    background: rgba(55, 118, 171, 0.2);
    border-color: #3776ab;
    color: #3776ab;
}

.skill-item[title="Git"]:hover {
    background: rgba(240, 80, 51, 0.2);
    border-color: #f05033;
    color: #f05033;
}

.skill-item[title="JavaScript"]:hover {
    background: rgba(247, 223, 30, 0.2);
    border-color: #f7df1e;
    color: #f7df1e;
}

.skill-item[title="HTML5"]:hover {
    background: rgba(227, 79, 38, 0.2);
    border-color: #e34f26;
    color: #e34f26;
}

.skill-item[title="CSS3"]:hover {
    background: rgba(21, 114, 182, 0.2);
    border-color: #1572b6;
    color: #1572b6;
}

.skill-item[title="Tailwind CSS"]:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

.skill-item[title="MSSQL"]:hover {
    background: rgba(204, 41, 54, 0.2);
    border-color: #cc2936;
    color: #cc2936;
}

.skill-item[title=".NET"]:hover {
    background: rgba(81, 43, 212, 0.2);
    border-color: #512bd4;
    color: #512bd4;
}

.skill-item[title="Discord.js"]:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865f2;
    color: #5865f2;
}

/* --- RECENT SONGS SECTION --- */
.recent-songs-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.recent-songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.recent-song-item:hover {
    background: rgba(29, 185, 84, 0.1);
    border-color: rgba(29, 185, 84, 0.3);
}

.recent-song-img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    background: #2a2d38;
}

.recent-song-info {
    flex: 1;
    min-width: 0;
}

.recent-song-name {
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-song-artist {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide empty images */
img[src=""],
img:not([src]) {
    display: none;
}