/* style.css */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

.prayer-card {
    animation: fadeIn 0.5s ease-out;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.countdown-pulse {
    animation: pulse 1s ease-in-out infinite;
}

.nav-btn {
    transition: all 0.2s ease;
}

.nav-btn:active {
    transform: scale(0.95);
}

#qiblaArrow {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

#compass {
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1), 0 4px 20px rgba(0,0,0,0.1);
}

.tasbih-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.tasbih-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

#tasbihCount {
    font-variant-numeric: tabular-nums;
}

.name-card {
    transition: all 0.2s ease;
}

.name-card:hover {
    transform: translateY(-2px);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dark .prayer-card {
    background: rgba(0, 0, 0, 0.2);
}

.dark #compass {
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3), 0 4px 20px rgba(0,0,0,0.3);
}

@media (max-width: 640px) {
    #countdown {
        font-size: 2.5rem;
    }
}
button,
input,
select {
    font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
dialog button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.name-card {
    min-height: 7.5rem;
}

dialog {
    border: 0;
    max-width: calc(100vw - 2rem);
}

dialog::backdrop {
    background: rgb(0 0 0 / 55%);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media (max-width: 640px) {
    #countdown {
        font-size: 2.5rem;
    }

    #nextPrayerName {
        font-size: 2rem;
    }
}
