/**
 * Ceylani Ajanda - Apple iOS Light Glass (Buz Cam) Arayüz Stilleri.
 * design.html referans alınarak monokrom mimariyle optimize edilmiştir.
 */

:root {
    --ios-bg: #f2f2f7;
    --ios-text-dark: #1c1c1e;
    --ios-text-muted: #8e8e93;
    --ios-text-secondary: #6c6c70;
    --z-backdrop: 900;
    --z-drawer: 950;
    --z-modal: 1000;
    --z-alert: 2000;
    --z-toast: 3000;
}

/* Donanım Hızlandırma ve Pürüzsüzleştirme */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--ios-bg);
    color: var(--ios-text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}

.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* iOS Frosted Light Glass Zeminleri */
.ios-glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.ios-glass-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

.ios-glass-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
}

.ios-glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-1.5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Yumuşak Apple Squircle Köşe Радиusları */
.squircle-sm { border-radius: 10px; }
.squircle-md { border-radius: 14px; }
.squircle-lg { border-radius: 20px; }
.squircle-xl { border-radius: 28px; }

/* Buton Etkileşim Sınıfları */
.ios-btn-primary {
    background: #1c1c1e;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ios-btn-primary:hover {
    background: #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transform: translateY(-0.5px);
}
.ios-btn-primary:active { transform: scale(0.97); }

.ios-btn-glass {
    background: rgba(255, 255, 255, 0.85);
    color: #1c1c1e;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.ios-btn-glass:hover {
    background: #ffffff;
    color: #000000;
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.ios-btn-glass:active { transform: scale(0.97); }

/* Form Girdileri */
.ios-input {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.10);
    color: #1c1c1e;
    border-radius: 12px;
    padding: 8px 12px;
    outline: none;
    transition: all 0.2s ease;
}
.ios-input:focus {
    background: #ffffff;
    border-color: #1c1c1e;
    box-shadow: 0 0 0 3px rgba(28, 28, 30, 0.08);
}

/* Durum Rozetleri (Badges) */
.badge-available {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.badge-meeting {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.badge-busy {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.badge-neutral {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* Telsiz Mesaj Balonları */
.bubble-in {
    background: rgba(255, 255, 255, 0.95);
    color: #1c1c1e;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.bubble-out {
    background: #e5e5ea;
    color: #1c1c1e;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Özel Kaydırma Çubuğu */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); }

/* Canlı Nabız Animasyonu */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.18); }
}
.pulse-dot {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Sürükle-Bırak Kuyruk Efektleri */
.is-dragging {
    opacity: 0.45 !important;
    transform: scale(0.98) !important;
    border: 2px dashed #007aff !important;
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.15) !important;
}
.drag-over-top {
    border-top: 2px solid #007aff !important;
}
.drag-over-bottom {
    border-bottom: 2px solid #007aff !important;
}
.cursor-grab {
    cursor: grab;
}
.cursor-grab:active {
    cursor: grabbing;
}

/* Sabit Makam Bildirim Dalga (Ripple) Efekti */
@keyframes alertRipple {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--alert-color-rgb, 245, 158, 11), 0.75), 0 20px 45px rgba(0,0,0,0.18);
    }
    70% {
        box-shadow: 0 0 0 32px rgba(var(--alert-color-rgb, 245, 158, 11), 0), 0 20px 45px rgba(0,0,0,0.18);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--alert-color-rgb, 245, 158, 11), 0), 0 20px 45px rgba(0,0,0,0.18);
    }
}
.alert-card-ripple {
    animation: alertRipple 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
