/* Mobil Özel Stiller */

/* Mobil için gelişmiş animasyonlar */
@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mobileFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobil için özel loading spinner */
.mobile-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobil için pull-to-refresh indicator */
.pull-to-refresh {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: top 0.3s ease;
    z-index: 1000;
}

.pull-to-refresh.show {
    top: 20px;
}

/* Mobil için swipe indicators */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-indicator.left {
    left: 10px;
}

.swipe-indicator.right {
    right: 10px;
}

.swipe-indicator.show {
    opacity: 1;
}

/* Mobil için toast notifications */
.mobile-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mobile-toast.error {
    background-color: rgba(255, 107, 107, 0.9);
}

.mobile-toast.success {
    background-color: rgba(34, 197, 94, 0.9);
}

/* Mobil için haptic feedback simulation */
.haptic-light {
    animation: hapticLight 0.1s ease;
}

.haptic-medium {
    animation: hapticMedium 0.15s ease;
}

.haptic-heavy {
    animation: hapticHeavy 0.2s ease;
}

@keyframes hapticLight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes hapticMedium {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes hapticHeavy {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Mobil için gelişmiş scroll indicators */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Mobil için floating action button */
.mobile-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #ff6b6b;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.mobile-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.6);
}

.mobile-fab.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobil için dark mode toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobil için improved touch targets */
@media (max-width: 768px) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .touch-target::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        border-radius: inherit;
    }
}

/* Mobil için gesture hints */
.gesture-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #666;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Mobil için improved focus states */
@media (max-width: 768px) {
    *:focus {
        outline: 2px solid #ff6b6b;
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    .focus-visible {
        outline: 2px solid #ff6b6b;
        outline-offset: 2px;
    }
}

/* Mobil için safe area support */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    nav {
        padding-top: max(10px, env(safe-area-inset-top));
    }
}

/* Mobil için reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobil için high contrast support */
@media (prefers-contrast: high) {
    .container {
        border: 2px solid #fff;
    }
    
    nav a {
        border: 1px solid #fff;
        margin: 2px;
    }
    
    .portfolio-item,
    .project-card,
    .skill-card {
        border: 2px solid #fff;
    }
}