/* umut <3 — Sayfa Yükleme Ekranı */
html.page-loading,
html.page-loading body {
    overflow: hidden !important;
    height: 100%;
}

html.page-loading body > *:not(#page-loader) {
    visibility: hidden;
}

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #060608;
    overflow: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
}

#page-loader.loader-exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(236, 72, 153, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 70%, rgba(88, 101, 242, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 212, 255, 0.08), transparent 60%);
    animation: meshShift 6s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.08) rotate(2deg); opacity: 0.85; }
}

.loader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.loader-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.loader-particle {
    position: absolute;
    font-size: 1.1rem;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(20px) scale(0.5); }
    20% { opacity: 0.7; }
    80% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-80px) scale(1); }
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: min(400px, 90vw);
}

.loader-avatar-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 2rem;
}

.loader-orbit {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ec4899;
    border-right-color: rgba(236, 72, 153, 0.2);
    animation: orbitSpin 1.4s linear infinite;
}

.loader-orbit:nth-child(2) {
    inset: -22px;
    border-top-color: #5865F2;
    border-right-color: rgba(88, 101, 242, 0.15);
    animation-duration: 2.2s;
    animation-direction: reverse;
}

.loader-orbit:nth-child(3) {
    inset: -30px;
    border-top-color: #00d4ff;
    opacity: 0.4;
    animation-duration: 3s;
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.loader-avatar {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #5865F2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow:
        0 0 60px rgba(236, 72, 153, 0.45),
        0 0 100px rgba(88, 101, 242, 0.25);
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.loader-name {
    font-size: clamp(3rem, 12vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff 0%, #fbcfe8 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.4));
    animation: nameGlow 2.5s ease-in-out infinite alternate;
}

@keyframes nameGlow {
    from { filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.3)); }
    to { filter: drop-shadow(0 0 40px rgba(88, 101, 242, 0.5)); }
}

.loader-heart {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 0.5rem;
    animation: heartBeat 1.2s ease-in-out infinite;
}

.loader-heart .heart-icon {
    color: #f472b6;
    font-size: 1.2em;
    display: inline-block;
    animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

.loader-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.loader-progress-wrap {
    margin-bottom: 1rem;
}

.loader-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #5865F2, #00d4ff);
    background-size: 200% 100%;
    animation: barShine 2s linear infinite;
    transition: width 0.35s ease;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

@keyframes barShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.loader-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.65rem;
    font-size: 0.75rem;
}

.loader-status {
    color: rgba(255,255,255,0.4);
    font-family: 'JetBrains Mono', monospace;
}

.loader-percent {
    color: #f472b6;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}