/* Animation Styles */
.tracking-animation-container {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1/2;
    margin-top: 20px; /* Telefon görselini biraz aşağıya kaydırdık */
}

/* MacBook ekranları için özel ayarlar */
@media screen and (min-width: 1280px) and (max-width: 1440px) {
    .tracking-animation-container {
        margin-top: 30px; /* MacBook ekranlarında biraz daha fazla boşluk */
    }
}

.map-container {
    width: 100%;
    height: 100%;
    background-image: url('../img/map.png');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 12px solid #333;
    border-radius: 30px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

.phone-frame:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background-color: #333;
    border-radius: 0 0 15px 15px;
}

.map-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    animation: pulse 2s infinite;
}

.location-signal {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.location-signal::before,
.location-signal::after {
    content: "";
    position: absolute;
    border: 2px solid var(--primary-color);
    left: -10px;
    right: -10px;
    top: -10px;
    bottom: -10px;
    border-radius: 50%;
    animation: ripple 3s linear infinite;
    opacity: 0;
}

.location-signal::after {
    animation-delay: 1.5s;
}

/* Özel konum sinyalleri */
.school-signal {
    top: 20%;
    right: 20%;
    left: auto;
    transform: translate(0, 0);
    background-color: rgba(76, 175, 80, 0.2);
    width: 30px;
    height: 30px;
}

.home-signal {
    bottom: 20%;
    left: 20%;
    top: auto;
    transform: translate(0, 0);
    background-color: rgba(255, 152, 0, 0.2);
    width: 30px;
    height: 30px;
}

.school-signal::before, .school-signal::after {
    border-color: #4caf50;
}

.home-signal::before, .home-signal::after {
    border-color: #ff9800;
}

/* Emoji stileri */
.location-emoji {
    position: absolute;
    font-size: 16px;
    z-index: 3;
}

.school-emoji {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.home-emoji {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Bildirim popup stilleri */
.notification-popup {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    transform: translate(-50%, -20px);
    pointer-events: none;
    display: none;
}

.notification-popup.show {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
    display: block;
    animation: fadeInNotification 0.5s ease forwards;
}

@keyframes fadeInNotification {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOutNotification {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.notification-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
}

.notification-text {
    flex-grow: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    
    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    40% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
