/* Animation Styles */
.tracking-animation-container {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1/2;
    margin-top: 16px;
}

/* MacBook screens */
@media screen and (min-width: 1280px) and (max-width: 1440px) {
    .tracking-animation-container {
        margin-top: 24px;
    }
}

.map-container {
    width: 100%;
    height: 100%;
    background-image: url('https://d3flt81nz7nm6x.cloudfront.net/4d421e09-3340-4544-9b83-7f91ca3f6099/images/find/map.png');
    background-size: cover;
    background-position: center;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 10px solid #1a1a1a;
    border-radius: 32px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 10;
}

.phone-frame:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 16px;
    background-color: #1a1a1a;
    border-radius: 0 0 12px 12px;
}

.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%);
}

/* Notification popup */
.notification-popup {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    transform: translate(-50%, -20px);
    pointer-events: none;
    display: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.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.8rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1f2937;
}

@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;
    }
}