/* Article Detail Page Specific Styles */

.article-detail {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: none; /* Ye line change karein - Shadow hata di */
    border: none; /* Agar border nahi chahiye toh ise add karein */
    overflow: hidden;
}

.detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    background-color: var(--border);
}

.detail-content {
    padding: 0.5rem 2.5rem 2.5rem 2.5rem; /
    min-width: 0;
}

.article-content blockquote {
    border-left: 5px solid #d32f2f !important; /* Brand color ki highlight line */
    margin: 1.5em 0 !important;
    padding: 15px 20px !important;
    background-color: #f9f9f9 !important;
    font-style: italic !important;
    font-size: 1.2rem !important;
    color: #444 !important;
    line-height: 1.8 !important;
    border-radius: 0 8px 8px 0;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--gray);
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.detail-source {
    font-weight: 600;
    color: var(--primary);
}

.detail-date {
    font-style: italic;
}

.detail-description {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

.detail-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.detail-body p {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Social Sharing */
.social-share {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    min-height: 44px;
}

.share-btn:hover {
    background-color: var(--primary-dark);
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #1da1f2; }
.share-btn.whatsapp { background-color: #25d366; }
.share-btn.linkedin { background-color: #0077b5; }

/* Related Articles */
.related-articles {
    margin: 3rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.related-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1.5rem;
}

.related-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.related-card:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.related-card a {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    gap: 15px;
    padding: 12px;
    align-items: center;
    position: relative;
}

.related-card img {
    width: 120px;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-card .related-content {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    color: #1a365d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta-time {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-live-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: #e11d48;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: blink 2s infinite;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Comments */
.comments-section {
    margin: 2rem 0;
}

.comments-heading {
    margin-bottom: 1rem;
}

.comments-policy {
    color: var(--gray);
    margin-top: 0.35rem;
    font-size: 0.95rem;
}

.comment-feedback {
    display: none;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

.comment-feedback-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.comment-feedback-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.comment-feedback-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 360px;
}

.comment {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary);
}

.comment-date {
    font-style: italic;
}

.comment-text {
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.comment-actions button:hover {
    color: var(--primary);
}

.comment-actions .delete-comment {
    color: #b91c1c;
}

.comment-actions .delete-comment:hover {
    color: #7f1d1d;
}

.comment-actions .report-comment {
    color: #c2410c;
}

.comment-actions .report-comment:hover {
    color: #9a3412;
}

.comment-form {
    margin-top: 2rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 140px;
}

.comment-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.comment-form button:hover {
    background-color: var(--primary-dark);
}

.comment-form button:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
}


/* ==================== Custom Delete Confirmation Modal ==================== */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

.custom-modal-box h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-family: 'Roboto', sans-serif;
}

.custom-modal-box p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.custom-modal-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    min-height: 44px;
}

.custom-modal-cancel {
    background: #e2e8f0;
    color: #475569;
}

.custom-modal-cancel:hover {
    background: #cbd5e1;
}

.custom-modal-delete {
    background: var(--secondary);
    color: white;
}

.custom-modal-delete:hover {
    background: var(--secondary-dark);
}

.custom-modal-submit {
    background: #c2410c;
    color: white;
}

.custom-modal-submit:hover {
    background: #9a3412;
}

.report-modal-box {
    max-width: 520px;
    text-align: left;
}

.report-modal-copy {
    margin-bottom: 1.25rem;
}

.report-form-group {
    margin-bottom: 1rem;
}

.report-form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: var(--dark);
}

.report-form-group select,
.report-form-group textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: white;
}

.report-form-group textarea {
    resize: vertical;
}

.report-form-group select:focus,
.report-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}


.login-prompt {
    text-align: center;
    margin: 2rem 0;
    color: var(--gray);
}

.login-prompt a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .detail-title {
        font-size: 2.1rem;
    }

    .detail-content {
        padding: 1rem 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .article-detail {
        border-radius: 12px;
    }

    .detail-image {
        max-height: 360px;
    }

    .detail-content {
        padding: 1rem 1rem 1.5rem;
    }

    .detail-title {
        font-size: 1.8rem;
        line-height: 1.25;
    }

    .detail-meta {
        gap: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .detail-description,
    .detail-body,
    .article-content blockquote {
        font-size: 1rem !important;
    }

    .detail-description,
    .article-content blockquote {
        padding: 0.9rem 1rem !important;
    }

    .related-card a {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .comment-feedback-toast {
        top: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
    }

    .custom-modal-box {
        padding: 1.5rem;
    }

    .custom-modal-actions {
        flex-direction: column;
    }

    .custom-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 1.55rem;
    }

    .share-buttons {
        gap: 0.75rem;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .comment-form,
    .comment {
        padding: 1rem;
    }
}

.login-prompt a:hover {
    text-decoration: underline;
}


/* ==================== TAGS STYLING ==================== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2rem 0;
}

.tag-pill {
    background-color: #f1f5f9;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.tag-pill:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}



/* ==================== LIVE BLOG TIMELINE STYLES ==================== */
.live-badge {
    background-color: #e11d48; /* Red color */
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: blink 2s infinite;
    display: inline-block;
    margin-bottom: 15px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.live-updates-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.live-updates-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -38.5px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #e11d48;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #f87171;
}

.timeline-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e11d48;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-content {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.auto-refresh-indicator {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .article-detail {
        border-radius: 0; /* Gol corners hata diye */
        border: none;
        margin-left: -12px; /* Container ki left space ko cover karega */
        margin-right: -12px; /* Container ki right space ko cover karega */
    }
    .detail-content {
        padding: 1rem 15px; /* Mobile ke liye padding aur theek kar di */
    }
    .detail-title {
        font-size: 1.6rem; 
        margin-top: 0; /* Title ke upar ka space hata diya */
    }
    .detail-meta {
        gap: 1rem; 
    }
}
