/* Ank Mobilya Loading Animasyonu Stilleri */
.kp-loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #fafafa 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.kp-loading-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

.kp-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kp-loading-logo-container {
    position: relative;
    margin-bottom: 40px;
}

.kp-loading-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    animation: logoFloat 3s infinite ease-in-out;
}

/* Mobilya parçaları animasyonu */
.kp-milk-drops {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
}

.kp-milk-drop {
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 4px;
    animation: dropFall 2s infinite ease-in;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
    transform: rotate(45deg);
}

.kp-milk-drop:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.kp-milk-drop:nth-child(2) {
    left: 50%;
    animation-delay: 0.5s;
}

.kp-milk-drop:nth-child(3) {
    left: 80%;
    animation-delay: 1s;
}

/* Ana loader container */
.kp-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

/* Mobilya ikonu animasyonu */
.kp-milk-glass {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 8px;
    animation: fillGlass 2s infinite ease-in-out;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kp-milk-glass::before {
    content: '🏠';
    font-size: 32px;
    animation: iconPulse 1.5s infinite ease-in-out;
}

/* Mobilya ikonları */
.kp-farm-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.kp-farm-icon {
    position: absolute;
    font-size: 24px;
    animation: rotateAround 8s infinite linear;
    filter: drop-shadow(0 2px 4px rgba(44, 62, 80, 0.2));
}

.kp-farm-icon:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.kp-farm-icon:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: -2s;
}

.kp-farm-icon:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -4s;
}

.kp-farm-icon:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: -6s;
}

/* Loading metni */
.kp-loading-text {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: textPulse 2s infinite ease-in-out;
}

.kp-loading-subtitle {
    color: #e67e22;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

/* Progress bar */
.kp-progress-container {
    width: 200px;
    height: 4px;
    background-color: rgba(44, 62, 80, 0.2);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.kp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2c3e50, #e67e22, #2c3e50);
    border-radius: 2px;
    animation: progressMove 2s infinite ease-in-out;
}

/* Animasyonlar */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes dropFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(60px) scale(0.5);
    }
}

@keyframes fillGlass {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        box-shadow: 0 6px 16px rgba(230, 126, 34, 0.5);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes rotateAround {
    0% {
        transform: rotate(0deg) translateX(40px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(40px) rotate(-360deg);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

@keyframes progressMove {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobil cihazlar için responsive tasarım */
@media (max-width: 768px) {
    .kp-loading-logo {
        width: 140px;
    }
    
    .kp-loader {
        width: 80px;
        height: 80px;
    }
    
    .kp-milk-glass {
        width: 50px;
        height: 65px;
    }
    
    .kp-loading-text {
        font-size: 16px;
    }
    
    .kp-loading-subtitle {
        font-size: 12px;
    }
    
    .kp-progress-container {
        width: 160px;
    }
    
    .kp-farm-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .kp-loading-logo {
        width: 120px;
    }
    
    .kp-loader {
        width: 70px;
        height: 70px;
    }
    
    .kp-loading-text {
        font-size: 14px;
    }
    
    .kp-progress-container {
        width: 140px;
    }
} 