/* ============================================
   Darshan Orbit - Inner Pages Styles
   Shared classes used across all /pages/ templates
   ============================================ */

/* ============================================
   SECTION CARD — generic white card container
   ============================================ */
.section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* ============================================
   BOOK NOW BUTTON
   ============================================ */
.btn-book-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-saffron) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.25);
}

.btn-book-now:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.4);
}

.btn-book-now:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--cream);
    color: var(--primary);
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-icon--fb { background: #1877F2; color: var(--white); }
.social-icon--fb:hover { background: #0d5fcf; color: var(--white); }

.social-icon--ig { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); color: var(--white); }
.social-icon--ig:hover { color: var(--white); opacity: 0.9; }

.social-icon--yt { background: #FF0000; color: var(--white); }
.social-icon--yt:hover { background: #cc0000; color: var(--white); }

.social-icon--wa { background: #25D366; color: var(--white); }
.social-icon--wa:hover { background: #1da851; color: var(--white); }

/* ============================================
   POOJA GRID
   ============================================ */
.pooja-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pooja-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.pooja-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   ANIMATE ON SCROLL
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 40px;
    opacity: 0.3;
    margin-bottom: 12px;
    display: block;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-color);
    background: var(--white);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================
   SORT SELECT
   ============================================ */
.sort-select {
    padding: 7px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 13px;
    outline: none;
    color: var(--text-primary);
    cursor: pointer;
    background: var(--white);
}

/* ============================================
   AMOUNT BUTTONS (donation page)
   ============================================ */
.amt-btn {
    padding: 10px 22px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amt-btn:hover,
.amt-btn.selected {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 126, 34, 0.06);
}

/* ============================================
   PROGRESS BAR (donation page)
   ============================================ */
.progress-bar {
    height: 6px;
    background: var(--cream);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    transition: width 1s ease;
}

/* ============================================
   TRUST/FEATURE CARDS (pooja, tours)
   ============================================ */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.feature-card__icon {
    width: 44px;
    height: 44px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.feature-card__icon i {
    color: var(--primary);
    font-size: 18px;
}

.feature-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.feature-card__subtitle {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ============================================
   STAT CARD (tours, contact)
   ============================================ */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
}

.stat-card__value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-card__label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ============================================
   CARD IMAGE WRAP (shared)
   ============================================ */
.card-img-wrap {
    position: relative;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-img-wrap:hover img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
}

/* ============================================
   CARD BODY (shared)
   ============================================ */
.card-body {
    padding: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.card-price-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   RESPONSIVE — INNER PAGES
   ============================================ */
@media (max-width: 1200px) {
    .pooja-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .pooja-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .page-hero__title {
        font-size: 32px;
    }

    .page-hero {
        padding: 40px 0;
    }

    /* Sidebar layouts */
    .temples-layout {
        grid-template-columns: 1fr !important;
    }

    .sidebar-filter {
        position: static !important;
    }

    /* Blog layout */
    .blog-layout {
        grid-template-columns: 1fr !important;
    }

    /* Darshan booking layout */
    .darshan-layout {
        grid-template-columns: 1fr !important;
    }

    .darshan-layout .booking-card {
        position: static !important;
    }

    /* Contact layout */
    .contact-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .pooja-grid {
        grid-template-columns: 1fr !important;
    }

    .page-hero__title {
        font-size: 26px;
    }

    .page-hero {
        padding: 32px 0;
    }

    .section-card {
        padding: 16px !important;
    }

    /* Stats grids */
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Form grids */
    .form-grid-2 {
        grid-template-columns: 1fr !important;
    }

    /* Container padding */
    .container-custom {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Section padding */
    .page-section {
        padding: 24px 0 40px !important;
    }
}

@media (max-width: 576px) {
    .pooja-grid {
        grid-template-columns: 1fr !important;
    }

    .page-hero__title {
        font-size: 22px;
    }

    .page-hero__subtitle {
        font-size: 13px;
    }

    .section-card {
        padding: 14px !important;
    }

    .stats-grid-4 {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card__value {
        font-size: 22px;
    }

    /* Card images on mobile */
    .card-img-wrap img {
        height: 160px !important;
    }

    /* Container */
    .container-custom {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Buttons full width on mobile */
    .btn-book-now {
        width: 100%;
    }

    /* Pagination */
    .pagination-wrap {
        gap: 4px;
    }

    .pagination-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .container-custom {
        padding-left: 10px;
        padding-right: 10px;
    }

    .section-card {
        padding: 12px !important;
    }
}
