/*
 * pooja.css — kept in sync with pooja_service.html
 * Core layout classes are defined here; visual styles live in the <style> block of the template.
 */

/* ── Cards grid ──────────────────────────────── */
.pooja-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-parent {
    width: 100%;
    animation: cardIn 0.4s ease both;
}

/* ── Card shell ──────────────────────────────── */
.pooja-card {
    position: relative;
    height: 310px;
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1.5px solid #fed7aa;
    box-shadow: 0 4px 6px rgba(0,0,0,0.06), 0 10px 30px rgba(234,88,12,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #fffbf5;
}
.pooja-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08), 0 20px 40px rgba(234,88,12,0.18);
}

/* ── Top cream strip ─────────────────────────── */
.pooja-card-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: #fffbf5;
    border-bottom: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 2;
}
.pooja-card-top-title {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #431407;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    padding-right: 0.5rem;
}

/* ── Gradient body ───────────────────────────── */
.pooja-content-box {
    position: absolute;
    top: 52px; left: 0; right: 0; bottom: 0;
    background: linear-gradient(160deg, #f97316 0%, #ea580c 60%, #dc2626 100%);
    padding: 1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
}
.pooja-content-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* ── Special badge ───────────────────────────── */
.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0,0,0,0.25);
    color: #fef3c7;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

/* ── Description ─────────────────────────────── */
.pooja-description {
    margin: 0.3rem 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.6;
    word-break: break-word;
}
.pooja-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.read-more-btn {
    color: rgba(255,255,255,0.7);
    font-size: 0.68rem;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 700;
    margin-top: 2px;
    display: inline-block;
    transition: color 0.2s;
}
.read-more-btn:hover { color: white; }

/* ── Footer ──────────────────────────────────── */
.pooja-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.pooja-amount {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fef3c7;
    letter-spacing: 0.03em;
}
.pooja-slots-info {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    text-align: right;
}

/* ── Date badge ──────────────────────────────── */
.date-badge {
    position: absolute;
    top: 8px; right: 10px;
    width: 46px; height: 38px;
    background: white;
    border: 1.5px solid #fed7aa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(234,88,12,0.15);
    z-index: 3;
    line-height: 1;
}
.date-badge .month { font-size: 0.52rem; font-weight: 800; color: #ea580c; letter-spacing: 0.08em; }
.date-badge .date  { font-size: 1.05rem; font-weight: 900; color: #431407; line-height: 1; }
.date-badge .year  { font-size: 0.48rem; font-weight: 700; color: #d97706; }

/* ── Section header / hero ───────────────────── */
.section-header {
    text-align: center;
    padding: 3rem 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #d97706, #ea580c, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.no-poojas {
    text-align: center;
    padding: 5rem 2rem;
    font-size: 1.1rem;
    color: #9a3412;
    font-weight: 600;
}

/* ── Card entrance animation ─────────────────── */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card-parent:nth-child(1)  { animation-delay: 0.05s; }
.card-parent:nth-child(2)  { animation-delay: 0.10s; }
.card-parent:nth-child(3)  { animation-delay: 0.15s; }
.card-parent:nth-child(4)  { animation-delay: 0.20s; }
.card-parent:nth-child(5)  { animation-delay: 0.25s; }
.card-parent:nth-child(6)  { animation-delay: 0.30s; }
.card-parent:nth-child(7)  { animation-delay: 0.35s; }
.card-parent:nth-child(8)  { animation-delay: 0.40s; }
.card-parent:nth-child(n+9){ animation-delay: 0.45s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 640px) {
    .pooja-cards-container { grid-template-columns: 1fr; gap: 1rem; padding: 0 0.75rem 1rem; }
    .pooja-card { height: 290px; }
    .pooja-card-top { height: 46px; }
    .pooja-content-box { top: 46px; }
    .pooja-amount { font-size: 1rem; }
    .date-badge { width: 40px; height: 34px; }
    .date-badge .date { font-size: 0.9rem; }
}
@media (min-width: 481px) and (max-width: 640px) {
    .pooja-cards-container { grid-template-columns: repeat(2, 1fr); }
    .pooja-card { height: 280px; }
}
@media (max-width: 400px) {
    .pooja-card { height: 270px; }
    .pooja-content-box { padding: 0.75rem; }
    .pooja-description { font-size: 0.68rem; -webkit-line-clamp: 3; }
    .pooja-amount { font-size: 0.95rem; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .pooja-cards-container { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
    .pooja-card { height: 300px; }
}