:root {
    --qadasko-primary: #A7242A;
    --qadasko-primary-dark: #7F1B20;
    --qadasko-primary-border: rgba(167, 36, 42, 0.16);
    --qadasko-text-muted: #6b7280;
}

.live-clock-root {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: max-content;
    flex: 0 0 auto;
}

.live-clock-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    max-width: max-content;
    min-height: 2.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    background: linear-gradient(
        135deg,
        rgba(167, 36, 42, 0.09),
        rgba(167, 36, 42, 0.025)
    );
    border: 1px solid var(--qadasko-primary-border);
    font-family: 'Almarai', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.live-clock-container:hover {
    background: linear-gradient(
        135deg,
        rgba(167, 36, 42, 0.13),
        rgba(167, 36, 42, 0.04)
    );
    border-color: rgba(167, 36, 42, 0.28);
    box-shadow: 0 4px 14px rgba(167, 36, 42, 0.12);
}

.live-clock-greeting-wrap,
.live-clock-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.live-clock-greeting {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--qadasko-primary);
}

.live-clock-greeting-icon,
.live-clock-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    max-width: 1rem;
    min-height: 1rem;
    max-height: 1rem;
    color: var(--qadasko-primary);
    flex: 0 0 auto;
}

.live-clock-greeting-icon {
    filter: drop-shadow(0 2px 4px rgba(167, 36, 42, 0.18));
}

.live-clock-icon {
    animation: pulse-clock 2s ease-in-out infinite;
}

.live-clock-separator {
    color: rgba(167, 36, 42, 0.25);
    font-weight: 300;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.live-clock-date {
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--qadasko-text-muted);
    flex: 0 0 auto;
    white-space: nowrap;
}

.live-clock-digits {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--qadasko-primary-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

@keyframes pulse-clock {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.92);
    }
}

.dark .live-clock-container {
    background: linear-gradient(
        135deg,
        rgba(167, 36, 42, 0.2),
        rgba(255, 255, 255, 0.035)
    );
    border-color: rgba(167, 36, 42, 0.35);
}

.dark .live-clock-container:hover {
    background: linear-gradient(
        135deg,
        rgba(167, 36, 42, 0.27),
        rgba(255, 255, 255, 0.055)
    );
    border-color: rgba(167, 36, 42, 0.5);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.dark .live-clock-greeting,
.dark .live-clock-greeting-icon,
.dark .live-clock-icon {
    color: #F3B6BA;
}

.dark .live-clock-separator {
    color: rgba(243, 182, 186, 0.35);
}

.dark .live-clock-date {
    color: #d1d5db;
}

.dark .live-clock-digits {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .live-clock-date,
    .live-clock-separator {
        display: none;
    }
}

@media (max-width: 768px) {
    .live-clock-greeting-wrap {
        display: none;
    }

    .live-clock-container {
        min-height: 2rem;
        padding: 0.35rem 0.65rem;
        border-radius: 0.65rem;
    }
}
