/* Whisper Modern AI Portfolio - Core Styling */

/* ============================================
   Özel Mouse İmleci — Sadece Desktop
   ============================================ */

/* Varsayılan imleci gizle (sadece gerçek fare olan cihazlarda) */
@media (pointer: fine) {
    * { cursor: none !important; }
}

/* Cursor elementleri — her zaman var ama JS yoksa sol üst köşede gizli kalır */
#custom-cursor,
#custom-cursor-ring {
    display: none; /* JS aktif edince block olacak */
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647; /* max z-index */
}

#custom-cursor {
    width: 8px;
    height: 8px;
    background: #00f0ff;
    box-shadow:
        0 0 0 2px rgba(0, 240, 255, 0.25),
        0 0 10px 3px rgba(0, 240, 255, 0.7),
        0 0 22px 5px rgba(0, 240, 255, 0.2);
    transition: width .15s ease, height .15s ease, background .15s ease, box-shadow .15s ease;
}

#custom-cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 240, 255, 0.45);
    background: transparent;
    transition: width .2s ease, height .2s ease, border-color .2s ease;
}

/* Tıklama */
#custom-cursor.clicking {
    width: 5px;
    height: 5px;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0,240,255,.5), 0 0 18px 6px rgba(0,240,255,.9);
}
#custom-cursor-ring.clicking {
    width: 50px;
    height: 50px;
    border-color: rgba(0,240,255,.12);
}

/* Hover (link/buton üzeri) */
#custom-cursor.hovering {
    width: 12px;
    height: 12px;
    background: #bd00ff;
    box-shadow: 0 0 0 2px rgba(189,0,255,.3), 0 0 14px 4px rgba(189,0,255,.8), 0 0 28px 8px rgba(189,0,255,.2);
}
#custom-cursor-ring.hovering {
    width: 44px;
    height: 44px;
    border-color: rgba(189,0,255,.5);
}


/* ============================================
   Site İçi Bildirim Sistemi - Sol Üst
   ============================================ */
#site-notification {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-left: 4px solid #00f0ff;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 240, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Başlangıç: gizli, sol dışarıda */
    transform: translateX(calc(-100% - 40px));
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease;
}

#site-notification.visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#site-notification.warning {
    border-left-color: #ecb2ff;
    border-color: rgba(236, 178, 255, 0.3);
    box-shadow:
        0 0 0 1px rgba(236, 178, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(236, 178, 255, 0.12);
}

#site-notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #00f0ff;
    margin-top: 1px;
}

#site-notification.warning #site-notification-icon {
    color: #ecb2ff;
}

#site-notification-icon svg {
    width: 100%;
    height: 100%;
}

#site-notification-body {
    flex: 1;
    min-width: 0;
}

#site-notification-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #00f0ff;
    text-transform: uppercase;
    margin-bottom: 5px;
}

#site-notification.warning #site-notification-label {
    color: #ecb2ff;
}

#site-notification-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #e5e2e1;
    margin: 0;
}

#site-notification-close {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.3);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    margin-top: 2px;
}

#site-notification-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

#site-notification-close svg {
    width: 100%;
    height: 100%;
}

/* Progress bar alt kısmında */
#site-notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #00f0ff, transparent);
    border-radius: 0 0 12px 12px;
    transform-origin: left;
    animation: none;
}

#site-notification.visible::after {
    animation: notif-progress 6s linear forwards;
}

@keyframes notif-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0e0e0e;
}
::-webkit-scrollbar-thumb {
    background: #201f1f;
    border-radius: 4px;
    border: 2px solid #0e0e0e;
}
::-webkit-scrollbar-thumb:hover {
    background: #00f0ff;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0e0e0e;
    overflow-x: hidden;
    color: #e5e2e1;
}

/* Background Effects */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.grain-overlay {
    background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuBzfLXZOmkaN7zCO86hKNfP2-7sFn-thA0UOOJWiEBU62wZIbwXsxfCOBTwXAyz_vUurOdYNcFrIlu__iTGXtDA7KKJX4GcpT6_7v4vN_tDAOlwIyE6dz_N23r_MyGz9LrwSQQlxCsF_8K_t6dZnaPTsdPOGKCOGizp1rMH8QQHDvrqCniBA2MOdJt1V9T27lYz7_ekEplxXZ0-g6MSp5Bu_4KGk1a6uB1HtlDO7KxJMktIIdyhMA_rRw06k34wuLyHiP6L7ccf3uSM');
    filter: contrast(150%) brightness(100%);
    opacity: 0.08;
    pointer-events: none;
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 5;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 240, 255, 0.03) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.2;
    position: fixed;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

/* Neon Glows */
.neon-glow {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.neon-glow-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.neon-glow-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.neon-glow-btn:hover::after {
    transform: translateX(100%);
}

.neon-glow-btn:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    border-color: rgba(0, 240, 255, 0.5);
}

/* Glass Cards with Parallax Tilt support */
.glass-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: transform 0.1s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 1px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
    opacity: 0.3;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 10px 40px -10px rgba(0, 240, 255, 0.2);
}

/* Intersection Observer Reveal effect */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Data Stream side panel text */
.data-stream {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #00f0ff;
    opacity: 0.3;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    pointer-events: none;
    letter-spacing: 2px;
}

/* Subtle border glow for inputs */
input:focus, textarea:focus {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Custom Toast Notification System */
#custom-toast-container {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100vw - 64px);
    pointer-events: none;
}

.custom-toast {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.custom-toast.success {
    border-left: 4px solid #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.custom-toast.warning {
    border-left: 4px solid #ecb2ff;
    border-color: rgba(236, 178, 255, 0.2);
    box-shadow: 0 0 25px rgba(236, 178, 255, 0.15);
}
