/* Minecraft Connect Overlay Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: transparent;
}

.mc-overlay-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    max-height: 90vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 9999;
}

.mc-notification {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out, slideOut 0.5s ease-in 2.5s;
    animation-fill-mode: forwards;
    position: relative;
    overflow: hidden;
}

.mc-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

.mc-notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mc-notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mc-notification-title {
    flex: 1;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mc-notification-body {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.5;
}

.mc-notification-action {
    font-weight: 600;
    margin-bottom: 4px;
}

.mc-notification-user {
    font-style: italic;
    opacity: 0.8;
}

/* Action-specific styles */
.mc-notification.spawn_entity {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mc-notification.give_item {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mc-notification.change_weather {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mc-notification.set_time {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.mc-notification.execute_command {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Particle effects */
.mc-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mc-overlay-container {
        width: calc(100% - 40px);
        right: 20px;
    }
}
