/* ==========================================================================
   emirzm.rsy - Dark Anime & Gaming Theme with "hi" Intro & White Glow
   Ultra-Optimized Lightweight Stylesheet
   ========================================================================== */

/* --- Renk ve Tasarım Değişkenleri --- */
:root {
    --bg-black: #050608;
    --white-primary: #ffffff;
    --white-glow: rgba(255, 255, 255, 0.75);
    
    --glass-bg: rgba(14, 16, 22, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Temel Sıfırlamalar & Scroll Önleme --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: var(--bg-black);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

@media (min-height: 680px) and (min-width: 641px) {
    html, body {
        overflow: hidden; /* Masaüstünde dikey/yatay kaydırma çubuğunu önler */
    }
}

/* --- 1. AÇILIŞ EKRANI / INTRO (SADECE "hi") --- */
.intro-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    background: rgba(4, 5, 8, 0.45);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s ease;
}

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

.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.intro-text {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.95),
        0 0 35px rgba(255, 255, 255, 0.7),
        0 0 70px rgba(255, 255, 255, 0.45);
    animation: introGlowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes introGlowPulse {
    0% {
        transform: scale(0.98);
        opacity: 0.9;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.6);
    }
    100% {
        transform: scale(1.02);
        opacity: 1;
        text-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 55px rgba(255, 255, 255, 0.85), 0 0 90px rgba(255, 255, 255, 0.5);
    }
}

/* --- 2. ÖZEL BEYAZ YILDIZ MOUSE CURSOR --- */
@media (pointer: fine) {
    * {
        cursor: none !important;
    }
}

.custom-star-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
    transition: transform 0.05s ease-out, color 0.2s ease, filter 0.2s ease;
    will-change: transform, left, top;
}

.custom-star-cursor.hovering {
    transform: translate(-50%, -50%) scale(1.35) rotate(45deg);
    color: #ffffff;
    filter: drop-shadow(0 0 8px #ffffff) drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));
}

#cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;
}

/* --- 3. ARKA PLAN KATMANLARI & VİDEO BLUR (16px -> 0px) --- */
.bg-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#background-video, .background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    filter: blur(16px) brightness(0.65) contrast(1.05);
    transform: scale(1.05);
    transition: filter 1.2s ease;
    will-change: filter;
}

#background-video.playing, .background-video.playing {
    filter: blur(0px) brightness(0.65) contrast(1.05);
}

.bg-fallback-image {
    position: absolute;
    inset: 0;
    background: url('profile.jpg') center center / cover no-repeat;
    filter: blur(10px) brightness(0.25);
    z-index: 0;
}

.bg-dot-matrix {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
    background-size: 6px 6px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.75;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at center, rgba(6, 7, 10, 0.4) 0%, rgba(3, 4, 6, 0.85) 100%),
        linear-gradient(180deg, rgba(3, 4, 6, 0.25) 0%, rgba(3, 4, 6, 0.65) 100%);
    z-index: 3;
}

/* --- 4. SOL ÜST MUTE BUTONU --- */
.top-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
}

.icon-glass-btn {
    width: 42px;
    height: 42px;
    background: rgba(20, 22, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.icon-glass-btn:hover {
    background: rgba(30, 32, 45, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    transform: scale(1.06);
}

/* --- 5. ANA PROFİL KONTEYNERİ (SMOOTH FADE-IN) --- */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 16px 24px 16px;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
    will-change: opacity, transform;
}

.main-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.profile-wrapper {
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

/* --- 6. PROFİL ÜST BİLGİLERİ (BEYAZ GLOW & EMIRZM.RSY) --- */
.profile-header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Beyaz Profil Glow'u (Yumuşak & Premium) */
.avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.15) 55%, transparent 75%);
    opacity: 0.55;
    filter: blur(16px);
    z-index: 1;
    animation: avatarWhitePulse 3.5s infinite ease-in-out;
}

@keyframes avatarWhitePulse {
    0%, 100% { opacity: 0.45; transform: scale(1); filter: blur(14px); }
    50% { opacity: 0.8; transform: scale(1.06); filter: blur(20px); }
}

.profile-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 50px rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    background-color: #0b0c10;
    transition: var(--transition-bounce);
}

.avatar-container:hover .profile-image {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-username {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.35);
}

/* --- 7. SOSYAL MEDYA İKON BUTONLARI (BEYAZ NEON HOVER GLOW) --- */
.social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(18, 20, 28, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-bounce);
}

/* BEYAZ NEON GLOW & Büyüme Hover Efekti */
.social-icon-btn:hover {
    transform: translateY(-4px) scale(1.15);
    background: rgba(30, 32, 45, 0.85);
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.75), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.social-icon-btn svg {
    transition: transform 0.2s ease;
}

.social-icon-btn:hover svg {
    transform: scale(1.1);
}

/* Tooltip */
.social-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: rgba(10, 11, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    z-index: 30;
}

.social-icon-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    bottom: -36px;
}

/* --- 8. SADE ZİYARETÇİ SAYACI --- */
.visitor-section {
    display: flex;
    justify-content: center;
}

.visitor-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 17, 24, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 4px 14px;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.visitor-pill i {
    color: #ffffff;
    font-size: 0.82rem;
}

.visitor-pill:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* --- 9. MODERN MÜZİK OYNATICI VE SES KONTROLÜ --- */
.music-player-bar {
    width: 100%;
    max-width: 500px;
    background: rgba(14, 16, 24, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 
        0 16px 36px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.music-player-bar:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 255, 255, 0.08);
}

.player-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 110px;
    flex-shrink: 0;
}

.player-album-cover {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.player-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.player-album-cover:hover img {
    transform: scale(1.12);
}

.music-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-album-cover:hover .music-play-overlay {
    opacity: 1;
}

.music-play-overlay i {
    color: #fff;
    font-size: 0.8rem;
}

.player-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
}

.song-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Orta Taraf: İlerleme Çubuğu & Süre */
.player-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 28px;
}

.seek-bar-container {
    flex: 1;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.seek-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.seek-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffffff, #e2e8f0);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.seek-handle {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.seek-bar-container:hover .seek-handle {
    opacity: 1;
}

/* Sağ Taraf: Oynatma & Volume Slider Kutusu */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

.ctrl-btn.play-pause-btn {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #050608;
    border-radius: 50%;
    font-size: 0.82rem;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.ctrl-btn.play-pause-btn:hover {
    background: #f1f5f9;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    transform: scale(1.12);
}

/* Ses Düzeyi (Volume Slider) Açılır Alanı */
.volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-popup {
    width: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.volume-wrapper:hover .volume-popup,
.volume-wrapper.active .volume-popup {
    width: 65px;
    opacity: 1;
    margin-left: 6px;
}

#volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    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;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: transform 0.15s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* --- 10. TOAST BİLDİRİM BALONU --- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(14, 16, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    color: #fff;
    padding: 8px 20px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast i {
    color: #ffffff;
    font-size: 0.95rem;
}

/* --- 11. RESPONSIVE (MOBİL & TABLET) --- */
@media (max-width: 640px) {
    .main-container {
        padding: 30px 12px 20px 12px;
    }

    .top-nav {
        top: 14px;
        left: 14px;
    }

    .icon-glass-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .main-username {
        font-size: 1.85rem;
    }

    .avatar-container, .profile-image {
        width: 110px;
        height: 110px;
    }

    .social-row {
        gap: 8px;
    }

    .social-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .music-player-bar {
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
    }

    .player-left {
        width: 100%;
        justify-content: flex-start;
    }

    .player-center {
        width: 100%;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
}
