/**
 * assets/css/ios-glass.css - iOS Light Glass (Monokrom Buzlu Cam) Tasarım Sistemi
 * Referans: design.html
 */

/* Modern Font Düzeltme ve Donanım Hızlandırma */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

body {
    background-color: #f2f2f7;
    color: #1c1c1e;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

/* iOS Ultra-Pure Light Frosted Glass (Buz Cam Efekti) */
.ios-glass {
    background: rgba(255, 255, 255, 0.70);
    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-card {
    background: rgba(255, 255, 255, 0.78);
    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 20px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
}

.ios-glass-card:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* iOS Squircles */
.squircle-xl { border-radius: 28px; }
.squircle-lg { border-radius: 20px; }
.squircle-md { border-radius: 14px; }
.squircle-sm { border-radius: 10px; }

/* iOS Monokrom Toggle Switch */
.ios-switch {
    position: relative;
    width: 48px;
    height: 28px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(120, 120, 128, 0.20);
    border-radius: 30px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.ios-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20), 0 1px 1px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-switch:checked {
    background: #1c1c1e;
}

.ios-switch:checked::after {
    transform: translateX(20px);
}

/* Buton Etkileşim Sınıfları */
.ios-btn-primary {
    background: #1c1c1e;
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ios-btn-primary:hover {
    background: #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20);
}

.ios-btn-primary:active {
    transform: scale(0.96);
}

.ios-btn-glass {
    background: rgba(255, 255, 255, 0.85);
    color: #1c1c1e !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ios-btn-glass:hover {
    background: #ffffff;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ios-btn-glass:active {
    transform: scale(0.96);
}

/* Sürükle-Bırak Dropzone */
.ios-dropzone {
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ios-dropzone:hover, .ios-dropzone.dragover {
    border-color: #1c1c1e;
    background: rgba(0, 0, 0, 0.05);
}

/* Segmented Control Bar */
.ios-segmented {
    display: inline-flex;
    padding: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    gap: 4px;
}

.ios-segmented-item {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #8e8e93;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ios-segmented-item.active {
    background: #1c1c1e;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Özel Çerçeve ve Rozetler (iOS Light Glass) */
.badge-today {
    background: #d70015;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(215, 0, 21, 0.3);
}

.badge-tomorrow {
    background: #34c759;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3);
}

.frame-kocaeli {
    border: 1.5px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

.frame-today {
    border: 2px solid #d70015 !important;
    box-shadow: 0 8px 24px rgba(215, 0, 21, 0.15) !important;
}

.frame-tomorrow {
    border: 2px solid #34c759 !important;
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.15) !important;
}

/* Özel Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.30); }
