/* ================================================================
  PROJECT  : MERM- ULTIMATE UI (Bacişime Özel)
  DEVELOPER: @NEMEXULTRA
  VERSION  : 4.0.2672-STABLE
  THEME    : CYBER-GLITCH & NEON-GLASS
  ================================================================
*/

/* 1. KAPSAMLI DEĞİŞKEN SİSTEMİ */
:root {
    --primary-pink: #ff2d75;
    --primary-purple: #9c27b0;
    --accent-blue: #00d2ff;
    --neon-green: #39ff14;
    --bg-black: #050505;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-heavy: rgba(10, 10, 10, 0.85);
    --font-main: 'Poppins', sans-serif;
    --font-accent: 'Orbitron', sans-serif;
    --font-love: 'Dancing Script', cursive;
    --shadow-pink: 0 0 20px rgba(255, 45, 117, 0.5);
    --shadow-blue: 0 0 20px rgba(0, 210, 255, 0.5);
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET VE SİSTEM AYARLARI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* 3. ARKA PLAN KATMANI (METEOR & CANVASES) */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at center, #150a1f 0%, #050505 100%);
}

#meteor-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(0.5px);
}

#floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* 4. APP CONTAINER (MASTER LAYOUT) */
.app-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* 5. GÖRSEL EFEKTLER: BLUR & OVERLAY */
.app-container::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* 6. HEADER VE PROFİL SİSTEMİ (ULTRA 3D) */
.main-header {
    text-align: center;
    margin-top: 2vh;
    margin-bottom: 4vh;
    perspective: 1000px; /* 3D derinlik için */
}

.avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    transform-style: preserve-3d;
    transition: var(--transition-slow);
}

.avatar-wrapper:hover {
    transform: rotateY(10deg) rotateX(10deg);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid var(--primary-pink);
    box-shadow: 0 0 35px rgba(255, 45, 117, 0.4), inset 0 0 15px rgba(255, 45, 117, 0.3);
    position: relative;
    z-index: 5;
}

/* Çevrimiçi halkası ve animasyonu */
.pulse-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-pink);
    border-radius: 50%;
    animation: ring-pulse 3s infinite;
    z-index: 1;
}

@keyframes ring-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0; }
}

.online-indicator {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 22px;
    height: 22px;
    background: var(--bg-black);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.online-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4caf50;
}

/* 7. BAŞLIK VE STATUS ETİKETİ */
.glow-text {
    font-family: var(--font-love);
    font-size: 3.8rem;
    background: linear-gradient(45deg, var(--primary-pink), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 45, 117, 0.5));
    margin-bottom: 5px;
}

.status-tag {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    color: #ddd;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}

.active-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0.3; transform: scale(0.8); }
}

/* 8. GLASSMORPHISM V2 (GELİŞMİŞ CAM KARTLAR) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    transition: var(--transition-fast);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 45, 117, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.icon-quote {
    font-size: 2rem;
    color: var(--primary-pink);
    opacity: 0.6;
    margin-bottom: 20px;
}

#dynamic-quote {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    color: #f1f1f1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.divider {
    width: 40px;
    height: 3px;
    background: var(--primary-pink);
    margin: 20px auto;
    border-radius: 2px;
    box-shadow: var(--shadow-pink);
  }

/* 9. 3D ETKİLEŞİMLİ MENÜ SİSTEMİ (MASTER) */
.action-menu {
    margin-top: 20px;
    perspective: 1500px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.menu-item {
    position: relative;
    height: 110px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-item:hover {
    transform: rotateY(15deg) rotateX(10deg) translateZ(10px);
}

.item-inner {
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.menu-item:hover .item-inner {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-pink);
    box-shadow: 0 0 20px rgba(255, 45, 117, 0.3);
}

.menu-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px currentColor);
}

.menu-item span {
    font-size: 0.75rem;
    font-family: var(--font-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 10. GELİŞMİŞ OYUN VE MODÜL ARAYÜZÜ */
.full-screen-module {
    position: fixed;
    top: 0;
    left: 100%; /* Gizli başlangıç */
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    z-index: 2000;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.full-screen-module.active {
    left: 0;
}

.module-header {
    padding: 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.module-title {
    font-family: var(--font-accent);
    font-size: 1rem;
    margin-left: 20px;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.game-wrapper {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

.game-card-3d {
    width: 100%;
    max-width: 350px;
    background: var(--glass-heavy);
    border-top: 4px solid var(--primary-pink);
    border-radius: 25px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,1);
    animation: proSlideUp 0.6s ease;
}

@keyframes proSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.pro-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    border: none;
    padding: 18px;
    border-radius: 15px;
    color: #fff;
    font-family: var(--font-accent);
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 45, 117, 0.4);
    transition: 0.3s;
}

.pro-btn:active {
    transform: scale(0.95);
}

/* 11. ULTRA FOOTER (CREDITS) */
.ultra-footer {
    margin-top: auto;
    padding: 60px 0 20px;
    text-align: center;
}

.footer-glow-line {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
    margin: 0 auto 30px;
    box-shadow: 0 0 15px var(--primary-pink);
}

.credits-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.credit-item .label {
    font-family: var(--font-accent);
    font-size: 0.6rem;
    color: #666;
    letter-spacing: 4px;
}

.credit-item .name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider-diamond {
    color: var(--primary-pink);
    font-size: 12px;
    opacity: 0.5;
    margin: 10px 0;
}

.system-version {
    margin-top: 30px;
    font-size: 0.5rem;
    font-family: var(--font-accent);
    color: #333;
    letter-spacing: 2px;
  }
