.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.5vmin;
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding: 1vh 1vw;
}

.prayer-card-header {
    font-size: clamp(1rem, 2vw, 3rem);
}

.prayer-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 1vmin;
    overflow: hidden;
}

.icon-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1vmin 0;
    flex-shrink: 0;
}

.icon-placeholder span {
    font-size: clamp(2rem, 7vmin, 4.5rem);
}

.Fajr .icon-placeholder span {
    color: var(--fajr-color);
}

.Sunrise .icon-placeholder span {
    color: var(--sunrise-color);
}

.Dhuhr .icon-placeholder span {
    color: var(--dhuhr-color);
}

.Asr .icon-placeholder span {
    color: var(--asr-color);
}

.Maghrib .icon-placeholder span {
    color: var(--maghrib-color);
}

.Isha .icon-placeholder span {
    color: var(--isha-color);
}

/* Bootstrap icon content */
.icon-placeholder .Fajr::before {
    content: "\f1d0";
    font-family: bootstrap-icons !important;
}

.icon-placeholder .Sunrise::before {
    content: "\f5a5";
    font-family: bootstrap-icons !important;
}

.icon-placeholder .Dhuhr::before {
    content: "\f1d2";
    font-family: bootstrap-icons !important;
}

.icon-placeholder .Asr::before {
    content: "\f2be";
    font-family: bootstrap-icons !important;
}

.icon-placeholder .Maghrib::before {
    content: "\f5a7";
    font-family: bootstrap-icons !important;
}

.icon-placeholder .Isha::before {
    content: "\f497";
    font-family: bootstrap-icons !important;
}

.time-label {
    font-size: clamp(1rem, 1.5vw, 3rem);
}

.time-value {
    font-size: clamp(1rem, calc(1.5vh + 2.8vw), 5rem);
}

.footer {
    flex-shrink: 0;
    height: 14vh;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2vw;
    padding: 1.5vmin 2vw;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.footer-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: .8vmin;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: clamp(0.9rem, calc(1.0vh + 1.5vw), 3rem);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-card.next-prayer {
    flex: 1 1 35%;
}

.footer-card.jumaa {
    flex: 1 1 60%;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: space-evenly;
}

.footer-card.jumaa div {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .prayer-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        grid-auto-rows: auto;
        gap: 3vw;
        height: auto;
    }

    .prayer-card-content {
        gap: 10px;
    }

    .footer {
        height: auto;
        min-height: 15vh;
        flex-direction: column;
        padding: 1vh 2vw;
        gap: 0.5vh;
    }

    .footer-card {
        font-size: clamp(1rem, 4vw, 1.3rem);
        width: 100%;
        padding: 2vmin;
        min-height: auto;
    }

    .footer-card.jumaa {
        flex-direction: column;
    }
}
