/* --- Global Layout --- */
html, body {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    background: #f8fafc;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
}

#app {
    width: 100%;
}

/* --- Standalone PWA Mode (Uygulama Modu) --- */
body.is-standalone {
    height: 100vh;
    height: -webkit-fill-available;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body.is-standalone #app {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* --- UI Styling --- */
/* Hide Scrollbar for PWA */
body.is-standalone #app::-webkit-scrollbar {
    display: none;
}
body.is-standalone #app {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Screen Transitions */
.screen-fade {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Install Prompt Animation */
#install-prompt {
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}
