﻿:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-samurai: 'Cinzel', serif;

    --accent-purple: #9d4edd;
    --accent-cyan: #00f0ff;
    --accent-blue: #4361ee;
    --accent-riot: #ff4655;
    --accent-glow: rgba(157, 78, 221, 0.35);
    
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-bg-hover: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.18);
    --card-border-glow: rgba(168, 85, 247, 0.35);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(114, 9, 183, 0.15);
    --blur-strength: blur(22px);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --status-online: #23a55a;
    --status-ingame: #00f0ff;
    --widget-bg: rgba(15, 15, 25, 0.65);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: #030305;
    user-select: none;
}

.samurai-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s ease, visibility 0.7s;
}

.samurai-intro.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.samurai-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: grayscale(100%) contrast(140%) brightness(40%);
    z-index: 0;
    pointer-events: none;
}

.samurai-ink-mist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 10, 15, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

.samurai-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    z-index: 1;
}

.samurai-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding: 2rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.samurai-intro.slashing .samurai-content {
    transform: scale(1.15);
    opacity: 0;
}

.samurai-title {
    font-family: var(--font-samurai);
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 16px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 50px rgba(255, 255, 255, 0.2);
    margin-left: 16px;
}

.click-to-enter {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: lowercase;
    animation: textPulse 2s infinite ease-in-out;
    transition: all 0.3s ease;
}

.samurai-intro:hover .click-to-enter {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: scale(1.08);
}

.cross-slash-line {
    position: absolute;
    width: 250%;
    height: 3px;
    background: linear-gradient(90deg, transparent 10%, #ffffff 50%, #00f0ff 70%, transparent 90%);
    box-shadow: 0 0 25px #ffffff, 0 0 45px #00f0ff;
    opacity: 0;
    z-index: 10005;
    pointer-events: none;
}

.slash-1 {
    transform: rotate(-35deg) scaleX(0);
}

.slash-2 {
    transform: rotate(35deg) scaleX(0);
}

.slash-flash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0;
    z-index: 10004;
    pointer-events: none;
}

.samurai-intro.slashing .slash-1 {
    animation: katanaXSlash1 0.5s ease-out forwards;
}

.samurai-intro.slashing .slash-2 {
    animation: katanaXSlash2 0.5s ease-out forwards 0.05s;
}

.samurai-intro.slashing .slash-flash-overlay {
    animation: slashFlash 0.5s ease-out forwards;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080811;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-cyan);
    border-right: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite, glowPulse 2s ease-in-out infinite alternate;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    animation: pulse 1.5s ease-in-out infinite;
}

.bg-parallax {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

.bg-image {
    width: 100%;
    height: 100%;
    background: url('assets/background.jpg') center center / cover no-repeat;
    filter: brightness(0.85) contrast(1.05);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 20, 0.6) 0%,
        rgba(15, 10, 30, 0.45) 50%,
        rgba(5, 5, 15, 0.7) 100%
    );
}

.bg-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.85);
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.main-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.25rem;
    perspective: 1000px;
}

.tilt-container {
    width: 100%;
    max-width: 570px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
}

.profile-card {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: var(--blur-strength);
    -webkit-backdrop-filter: var(--blur-strength);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    padding: 2.25rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.profile-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px var(--accent-glow);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    z-index: 1;
}

.avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan), var(--accent-blue));
    filter: blur(8px);
    opacity: 0.75;
    animation: rotateGlow 6s linear infinite;
}

.avatar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background: #1a1a2e;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-wrapper:hover .avatar-inner img {
    transform: scale(1.1) rotate(3deg);
}

.status-indicator-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #12121f;
    background-color: var(--status-online);
    box-shadow: 0 0 10px var(--status-online);
}

.user-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
}

.username {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #ffffff 40%, #c4b5fd 80%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

.badge {
    font-size: 1rem;
    -webkit-text-fill-color: initial;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: scale(1.2) rotate(10deg);
}

.badge.verified {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.badge.spark {
    color: #ffd166;
    filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.6));
}

.description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.description span {
    color: #e2e8f0;
    font-weight: 500;
}

.riot-status-card {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--widget-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
    text-align: left;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.riot-status-card:hover {
    background: rgba(25, 25, 42, 0.85);
    border-color: rgba(255, 70, 85, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 70, 85, 0.2);
}

.riot-avatar-mini {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.riot-avatar-mini img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-status-dot.in-game {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #141423;
    background-color: var(--status-ingame);
    box-shadow: 0 0 8px var(--status-ingame);
}

.riot-info {
    flex: 1;
    min-width: 0;
}

.riot-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.riot-account-name {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.riot-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.riot-tag {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.riot-badge {
    font-size: 0.72rem;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #eb0029, #ff4655);
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.4);
}

.riot-activity {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
}

.activity-icon {
    color: var(--accent-riot);
    font-size: 0.82rem;
}

.activity-title {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
}

.social-links {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.social-btn.facebook:hover {
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.7);
    border-color: #1877f2;
    background: #1877f2;
}

.social-btn.discord:hover {
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.7);
    border-color: #5865f2;
    background: #5865f2;
}

.social-btn.github:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
    background: #24292e;
}

.social-btn.tiktok:hover {
    box-shadow: 0 0 20px rgba(254, 44, 85, 0.7);
    border-color: #fe2c55;
    background: #010101;
}

.social-btn.youtube:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    border-color: #ff0000;
    background: #ff0000;
}

.card-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.view-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.eye-icon {
    color: var(--accent-cyan);
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-badge i {
    color: #f87171;
}

.music-player {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: var(--blur-strength);
    -webkit-backdrop-filter: var(--blur-strength);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    padding: 0.9rem 1.25rem;
    display: grid;
    grid-template-columns: 1.2fr 2fr 0.8fr;
    align-items: center;
    gap: 1rem;
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    transition: all 0.3s ease;
}

.music-player:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.music-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.vinyl-disc {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, #2d124d 20%, #150a26 60%, #0d0617 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s linear;
}

.vinyl-disc.playing {
    animation: rotateDisc 4s linear infinite;
}

.song-meta {
    overflow: hidden;
}

.song-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-ctrl {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-ctrl:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.btn-play {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.8rem;
    box-shadow: 0 0 12px rgba(157, 78, 221, 0.3);
}

.btn-play:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 18px var(--accent-purple);
    transform: scale(1.1);
}

.progress-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-wrapper .time {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    min-width: 28px;
}

.progress-bar-container {
    flex: 1;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 4px;
    transition: width 0.1s linear;
}

.music-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.btn-volume {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.btn-volume:hover {
    color: var(--text-primary);
}

.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 6px var(--accent-cyan);
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px var(--accent-cyan);
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.5;
        letter-spacing: 3px;
    }
    50% {
        opacity: 0.95;
        letter-spacing: 5px;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

@keyframes katanaXSlash1 {
    0% {
        transform: rotate(-35deg) scaleX(0);
        opacity: 0;
    }
    40% {
        transform: rotate(-35deg) scaleX(1.8);
        opacity: 1;
    }
    100% {
        transform: rotate(-35deg) scaleX(2.5);
        opacity: 0;
    }
}

@keyframes katanaXSlash2 {
    0% {
        transform: rotate(35deg) scaleX(0);
        opacity: 0;
    }
    40% {
        transform: rotate(35deg) scaleX(1.8);
        opacity: 1;
    }
    100% {
        transform: rotate(35deg) scaleX(2.5);
        opacity: 0;
    }
}

@keyframes slashFlash {
    0% { opacity: 0; }
    30% { opacity: 0.85; }
    100% { opacity: 0; }
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateDisc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px var(--accent-purple); }
    100% { box-shadow: 0 0 25px var(--accent-cyan); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (max-width: 620px) {
    .samurai-title {
        font-size: 2.2rem;
        letter-spacing: 10px;
        margin-left: 10px;
    }

    .click-to-enter {
        font-size: 0.8rem;
    }

    .profile-card {
        padding: 1.75rem 1.25rem 1.25rem 1.25rem;
    }

    .username {
        font-size: 1.55rem;
    }

    .description {
        font-size: 0.85rem;
    }

    .music-player {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .music-left {
        justify-content: center;
    }

    .music-right {
        justify-content: center;
    }

    .volume-slider {
        width: 100px;
    }
}
