@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&display=swap');

:root {
    --dlm-glass-bg: rgba(255, 255, 255, 0.1);
    --dlm-glass-border: rgba(255, 255, 255, 0.2);
    --dlm-text: #000000;
    --dlm-muted: rgba(0, 0, 0, 0.7);
    --dlm-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    --dlm-glow: 0 0 20px rgba(16, 185, 129, 0.35);
    --dlm-transition: 0.3s ease;
}

.dlm-wrapper {
    font-family: 'Sora', 'Poppins', 'Nunito', sans-serif;
    color: var(--dlm-text);
    font-weight: 400;
}

.dlm-wrapper * {
    box-sizing: border-box;
}

.dlm-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.dlm-filter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dlm-text);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--dlm-transition);
}

.dlm-filter.is-active,
.dlm-filter:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--dlm-glow);
}

.dlm-grid {
    position: relative;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .dlm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dlm-grid {
        grid-template-columns: 1fr;
    }
}

.dlm-card {
    background: var(--dlm-glass-bg);
    border: 1px solid var(--dlm-glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--dlm-shadow);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity var(--dlm-transition), box-shadow var(--dlm-transition);
}

.dlm-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.dlm-card:hover {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 0 40px rgba(56, 189, 248, 0.2);
}

.dlm-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 14px 0;
    position: relative;
}

.dlm-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
    animation: dlm-float 6s ease-in-out infinite;
}

.dlm-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #ffffff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: dlm-pulse 1.3s ease-in-out infinite;
}

.dlm-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: dlm-blink 1.3s ease-in-out infinite;
}

@keyframes dlm-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 200, 83, 0.45);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 18px rgba(0, 200, 83, 0.85);
        opacity: 0.85;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 200, 83, 0.45);
        opacity: 1;
    }
}

@keyframes dlm-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

@keyframes dlm-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.02);
    }
}

.dlm-content {
    padding: 12px 16px 16px;
    text-align: left;
}

.dlm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dlm-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dlm-text);
}

.dlm-description {
    color: var(--dlm-muted);
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.dlm-visiting,
.dlm-location {
    color: var(--dlm-text);
    font-size: 15px;
    font-weight: 400;
    margin: 5px 0;
}

.dlm-details {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    color: var(--dlm-muted);
    font-size: 13px;
    display: grid;
    gap: 6px;
}

.dlm-details li {
    display: flex;
    gap: 8px;
}

.dlm-details li::before {
    content: '•';
    color: rgba(56, 189, 248, 0.9);
}

.dlm-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.dlm-badge.online {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.dlm-badge.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.dlm-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--dlm-muted);
    padding: 40px 20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
}

.dlm-loading .dlm-card {
    pointer-events: none;
}

.dlm-skeleton {
    position: absolute;
    inset: 0;
    display: none;
    gap: 24px;
    grid-template-columns: inherit;
}

.dlm-loading .dlm-skeleton {
    display: grid;
}

.dlm-skeleton-card {
    height: 320px;
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.05) 8%, rgba(255, 255, 255, 0.12) 18%, rgba(255, 255, 255, 0.05) 33%);
    background-size: 200% 100%;
    animation: dlm-shimmer 1.4s linear infinite;
}

@keyframes dlm-shimmer {
    to {
        background-position-x: -200%;
    }
}
