/* ============================================================
   Awakin Readings – Homepage-specific styles (index.css)
   Layered on top of the base styles.css (Bootstrap 5 + theme)
   Also used by search pages via res.tpl include
   ============================================================ */

/* ---------- Hero refinements ---------- */
header.masthead {
    padding-top: calc(6rem + 72px);
    padding-bottom: 5rem;
}
header.masthead .masthead-heading {
    letter-spacing: 0.02em;
}
header.masthead .masthead-subheading {
    font-weight: 300;
    opacity: 0.92;
}

/* Featured reading card in hero */
.featured-reading-card {
    background: rgba(255,255,255,0.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    text-align: left;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-reading-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.featured-reading-card .reading-graphic {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.featured-reading-card .badge-latest {
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35em 0.85em;
    border-radius: 20px;
}
.featured-reading-card .reading-title {
    font-family: "Catamaran", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.featured-reading-card .reading-author {
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
}
.featured-reading-card .reading-blurb {
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.88;
}
.hero-actions .btn {
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ---------- Search bar section ---------- */
.search-section {
    background: #f8f7f4;
    border-bottom: 1px solid #eae8e3;
}
.search-section .search-wrap {
    max-width: 580px;
    margin: 0 auto;
}
.search-section .form-control {
    border: 2px solid #ddd;
    border-radius: 50px;
    padding: 0.75rem 1.4rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-section .form-control:focus {
    border-color: #8360c3;
    box-shadow: 0 0 0 3px rgba(131,96,195,0.15);
}
.search-section .btn-search {
    border-radius: 50px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, #8360c3, #2ebf91);
    border: none;
    color: #fff;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
}
.search-section .btn-search:hover {
    opacity: 0.88;
}
.quick-links a {
    display: inline-block;
    padding: 0.3em 0.85em;
    margin: 0.2em;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    background: #eee;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.quick-links a:hover {
    background: #8360c3;
    color: #fff;
}

/* ---------- Section headers ---------- */
.section-header {
    font-family: "Catamaran", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #333;
}
.section-header i {
    color: #8360c3;
}
.section-header-outline {
    font-family: "Catamaran", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    border: 2px solid #ddd;
    border-radius: 30px;
    padding: 0.4em 1.4em;
}
.view-all-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #8360c3;
    transition: color 0.2s;
}
.view-all-link:hover {
    color: #2ebf91;
}

/* ---------- Reading cards (shared by homepage + search) ---------- */
.reading-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.reading-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.reading-card .card-img-wrap {
    position: relative;
    overflow: hidden;
}
.reading-card .card-img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.reading-card:hover .card-img-wrap img {
    transform: scale(1.04);
}
.reading-card .card-img-wrap .read-overlay {
    position: absolute;
    inset: 0;
    background: rgba(131,96,195,0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.reading-card:hover .card-img-wrap .read-overlay {
    background: rgba(131,96,195,0.35);
}
.reading-card .card-img-wrap .read-overlay i {
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s, transform 0.3s;
}
.reading-card:hover .card-img-wrap .read-overlay i {
    opacity: 1;
    transform: scale(1);
}
.reading-card .card-body {
    padding: 1rem 1.1rem 0.6rem;
    flex: 1;
}
.reading-card .card-body h5 {
    font-family: "Catamaran", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.reading-card .card-body h5 a {
    color: #222;
    text-decoration: none;
}
.reading-card .card-body h5 a:hover {
    color: #8360c3;
}
.reading-card .card-body .card-author {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-bottom: 0.4rem;
}
.reading-card .card-body .card-blurb {
    font-size: 0.84rem;
    color: #666;
    line-height: 1.5;
}
.reading-card .card-footer {
    background: transparent;
    border-top: 1px solid #f0f0f0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.reading-card .card-footer .meta-info {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 300;
}
.reading-card .card-footer .card-icons a {
    color: #bbb;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}
.reading-card .card-footer .card-icons a:hover {
    color: #8360c3;
}

/* ---------- Most Recent mini cards ---------- */
.upcoming-mini {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s ease;
}
.upcoming-mini:hover {
    transform: translateY(-3px);
}

/* ---------- Stats bar ---------- */
.stats-section {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.stats-bar {
    max-width: 500px;
    margin: 0 auto;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-family: "Catamaran", sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #333;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ---------- Themes section ---------- */
.themes-section {
    background: #f8f7f4;
}
.theme-chip {
    display: inline-block;
    padding: 0.4em 1em;
    margin: 0.25em;
    border-radius: 22px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #e0ddd8;
    text-decoration: none;
    transition: all 0.22s ease;
}
.theme-chip:hover {
    background: linear-gradient(135deg, #8360c3, #2ebf91);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

/* ---------- About section ---------- */
.about-section {
    background: #fff;
}
.about-text-centered {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #555;
}
.about-text-centered a {
    color: #8360c3;
    text-decoration: underline;
}

/* ---------- Wisdom quote ---------- */
.wisdom-quote {
    position: relative;
    background: linear-gradient(135deg, #f6f3ee 0%, #ede9e2 100%);
    border-radius: 14px;
    padding: 2.2rem 2.5rem;
    margin: 0 auto;
    max-width: 700px;
}
.wisdom-quote::before {
    content: "\201C";
    position: absolute;
    top: -0.1em;
    left: 0.3em;
    font-size: 5rem;
    line-height: 1;
    color: rgba(131,96,195,0.15);
    font-family: Georgia, serif;
}
.wisdom-quote blockquote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #444;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}
.wisdom-quote .quote-attribution {
    margin-top: 0.8rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.88rem;
    color: #8360c3;
}

/* ---------- Stay Connected ---------- */
.stay-connected-section {
    background: linear-gradient(135deg, #f9f7f4 0%, #f0ede7 100%);
}
.stay-connected-title {
    font-family: "Catamaran", sans-serif;
    font-weight: 800;
    color: #333;
}
.stay-connected-subtitle {
    color: #777;
    font-size: 0.95rem;
}
.subscribe-form .form-control {
    border-radius: 50px 0 0 50px;
    border: 2px solid #ddd;
    padding: 0.65rem 1.2rem;
}
.subscribe-form .form-control:focus {
    border-color: #8360c3;
    box-shadow: none;
}
.subscribe-form .btn {
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
}
.stay-connected-links {
    font-size: 0.88rem;
}
.stay-connected-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.stay-connected-links a:hover {
    color: #8360c3;
}

/* ---------- Button gradients ---------- */
.btn-gradient {
    background: linear-gradient(135deg, #8360c3, #2ebf91);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.6rem 1.8rem;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-gradient:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
}
.btn-gradient-outline {
    background: transparent;
    color: #8360c3;
    border: 2px solid #8360c3;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.55rem 1.6rem;
    transition: all 0.2s;
}
.btn-gradient-outline:hover {
    background: #8360c3;
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    header.masthead {
        padding-top: calc(5rem + 60px);
        padding-bottom: 3.5rem;
    }
    .featured-reading-card {
        padding: 1.2rem;
    }
    .featured-reading-card .reading-graphic {
        max-height: 160px;
        margin-bottom: 1rem;
    }
    .stat-number {
        font-size: 1.3rem;
    }
    .wisdom-quote {
        padding: 1.5rem 1.2rem;
    }
    .reading-card .card-body h5 {
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    header.masthead {
        padding-top: calc(6rem + 72px);
        padding-bottom: 4.5rem;
    }
}
