/* ============================================================
   DISCOVER — hero header (reuses .hero-section / .hero-top from
   style.css so it matches Home's header treatment)
   ============================================================ */
.discover-hero {
    padding-bottom: 24px;
}
.discover-eyebrow {
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}
.discover-hero h1 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.4px;
}

.discover-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 13px 18px;
}
.discover-search i {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}
.discover-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
}
.discover-search input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
}

/* ============================================================
   DISCOVER — grid of category cards
   ============================================================ */
.discover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 4px 20px 32px 20px;
}

.discover-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.discover-card:active {
    transform: scale(0.97);
}

.card-glow {
    position: absolute;
    inset: -30% -30% auto -30%;
    height: 140%;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35), transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.card-icon-wrap {
    position: relative;
    z-index: 1;
    width: clamp(46px, 12vw, 64px);
    height: clamp(46px, 12vw, 64px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    margin-bottom: auto;
    margin-top: 6px;
}
.card-icon {
    color: #FFFFFF;
    font-size: clamp(18px, 4.5vw, 26px);
}

.card-label {
    position: relative;
    z-index: 1;
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.1px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

/* Category gradients — echo the reference design's varied palette */
.card--prayers {
    background: linear-gradient(160deg, #5FB88A 0%, #3E8F68 100%);
}
.card--radio {
    background: linear-gradient(165deg, #2B3A67 0%, #1A2140 60%, #10142B 100%);
}
.card--bible-year {
    background: linear-gradient(165deg, #D8B857 0%, #A9822E 100%);
}
.card--music {
    background: linear-gradient(165deg, #4B3164 0%, #7A4FA0 55%, #2B1E45 100%);
}
.card--rosaries {
    background: linear-gradient(165deg, #123A3E 0%, #0B2426 100%);
}
.card--scripture {
    background: linear-gradient(160deg, #C7CE5A 0%, #7C8A2E 100%);
}
.card--plans {
    background: linear-gradient(160deg, #E7A98F 0%, #C97A6D 100%);
}
.card--sermons {
    background: linear-gradient(160deg, #2E6E73 0%, #1C4448 100%);
}
.card--podcast {
    background: linear-gradient(160deg, #7A5C4F 0%, #4A3527 100%);
}
.card--calendar {
    background: linear-gradient(160deg, #C0607A 0%, #7E3A50 100%);
}
.card--church {
    background: linear-gradient(160deg, #4A6FA5 0%, #2B4570 100%);
}

.discover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: #8A7A7A;
    font-size: 14px;
    font-weight: 300;
    text-align: center;
}
.discover-empty i {
    color: #6B3FA0;
    font-size: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
    .discover-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 900px) {
    .discover-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 960px;
        margin: 0 auto;
    }
    .discover-hero {
        max-width: 960px;
        margin: 0 auto;
    }
}
