/* ==========================================================================
   Nara-e-Haq Quetta E-Paper Layout Styles
   Author: JahaSoft / Daily Nara-e-Haq Quetta
   ========================================================================== */

.naraehaq-epaper-wrapper {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', Tahoma, system-ui, -apple-system, sans-serif;
    color: #0f172a;
    max-width: 1320px;
    margin: 30px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    line-height: 1.8;
}

.naraehaq-epaper-wrapper * {
    box-sizing: border-box;
}

.naraehaq-epaper-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.naraehaq-epaper-empty {
    direction: rtl;
    text-align: center;
    font-family: 'Noto Nastaliq Urdu', Tahoma, sans-serif;
    padding: 40px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 16px;
}

/* Header */
.naraehaq-epaper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 14px;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.naraehaq-epaper-tag-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.naraehaq-epaper-live-badge {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.35);
}

.naraehaq-epaper-main-heading {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    line-height: 1.4;
}

.naraehaq-epaper-sub-heading {
    font-size: 14px;
    color: #64748b;
    margin: 6px 0 0 0;
}

.naraehaq-epaper-archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.25s ease;
}

.naraehaq-epaper-archive-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
}

.naraehaq-epaper-arrow-icon {
    transition: transform 0.2s ease;
}

.naraehaq-epaper-archive-btn:hover .naraehaq-epaper-arrow-icon {
    transform: translateX(-4px);
}

/* ==========================================================================
   Hero Section: Today's Featured Edition
   ========================================================================== */
.naraehaq-epaper-hero-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
}

.naraehaq-epaper-hero-container {
    display: flex;
    gap: 36px;
    align-items: center;
}

/* Cover Image on the Left */
.naraehaq-epaper-hero-cover-col {
    flex: 0 0 280px;
    max-width: 280px;
}

.naraehaq-epaper-portrait-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    background: #e2e8f0;
    aspect-ratio: 3 / 4.4;
    transition: all 0.3s ease;
}

.naraehaq-epaper-portrait-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.naraehaq-epaper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.naraehaq-epaper-portrait-wrap:hover .naraehaq-epaper-img {
    transform: scale(1.03);
}

.naraehaq-epaper-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.naraehaq-epaper-ribbon-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: naraehaq-pulse 1.8s infinite;
}

@keyframes naraehaq-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.naraehaq-epaper-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.naraehaq-epaper-portrait-wrap:hover .naraehaq-epaper-overlay {
    opacity: 1;
}

.naraehaq-epaper-overlay-btn {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(8px);
    transition: transform 0.25s ease;
}

.naraehaq-epaper-portrait-wrap:hover .naraehaq-epaper-overlay-btn {
    transform: translateY(0);
}

/* Info Column on the Right */
.naraehaq-epaper-hero-info-col {
    flex: 1;
}

.naraehaq-epaper-hero-title {
    font-size: 20px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.naraehaq-epaper-hero-edition-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: #0f172a;
    line-height: 1.35;
}

.naraehaq-epaper-hero-edition-title a:hover {
    color: #2563eb;
}

.naraehaq-epaper-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #475569;
    background: #e2e8f0;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 22px;
}

.naraehaq-epaper-hero-btn-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.naraehaq-epaper-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
}

.naraehaq-epaper-view-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.naraehaq-epaper-pdf-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.naraehaq-epaper-pdf-dl-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ==========================================================================
   Bottom Archive Shelf: Past Editions Grid
   ========================================================================== */
.naraehaq-epaper-bottom-shelf {
    margin-top: 36px;
}

.naraehaq-epaper-shelf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.naraehaq-epaper-shelf-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.naraehaq-epaper-shelf-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.naraehaq-epaper-shelf-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.naraehaq-epaper-shelf-all-link:hover {
    text-decoration: underline;
}

.naraehaq-epaper-bottom-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.naraehaq-epaper-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.25s ease;
}

.naraehaq-epaper-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.naraehaq-epaper-mini-date-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(2px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.naraehaq-epaper-card-info {
    padding: 10px 12px;
}

.naraehaq-epaper-card-title {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.naraehaq-epaper-card-title a:hover {
    color: #2563eb;
}

/* Placeholder */
.naraehaq-epaper-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 16px;
    text-align: center;
}

.naraehaq-epaper-placeholder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    stroke: #94a3b8;
}

.naraehaq-epaper-placeholder-small .naraehaq-epaper-placeholder-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .naraehaq-epaper-bottom-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .naraehaq-epaper-wrapper {
        padding: 18px;
    }
    .naraehaq-epaper-hero-container {
        flex-direction: column;
        gap: 20px;
    }
    .naraehaq-epaper-hero-cover-col {
        flex: 0 0 auto;
        max-width: 240px;
        margin: 0 auto;
    }
    .naraehaq-epaper-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .naraehaq-epaper-bottom-grid {
        grid-template-columns: 1fr;
    }
}
