/*
Theme Name: JNews - Child Theme
Version: 1.0.0
Theme URI: http://themeforest.net/?ref=jegtheme
Description: A basic starter child theme for customization purpose of JNews theme.
Author: Jegtheme
Author URI: http://themeforest.net/user/jegtheme?ref=jegtheme
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------------- *
 *  Theme customization starts here
/* ------------------------------------------------------------------------- */


.jeg_nav_row .site-title a img {
	max-width: 220px;
}


/* ================================================
   QuantumFeed TL;DR Box Styling
   ================================================ */

.qf_tldr_box {
    border: 2px solid #e53935;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 20px 0;
    background-color: #fff;
}

.qf_tldr_label {
    display: inline-block;
    background-color: #e53935;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.qf_tldr_text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Dark Mode Support */
.jeg_dark_mode .qf_tldr_box {
    background-color: #1a1a1a;
    border-color: #e53935;
}

.jeg_dark_mode .qf_tldr_text {
    color: #e0e0e0;
}



/* ================================================
   QuantumFeed - Zusammenfassungs-Button & Popup
   ================================================ */

/* Button in Share-Leiste (passend zu JNews Buttons) */
.qf_summary_btn.jeg_btn-summary {
    background-color: #202123 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 8px 20px;
    border-radius: 4px;
	margin-right: 5px
}

.qf_summary_btn.jeg_btn-summary:hover {
    background-color: #3a3a3d !important;
}

.qf_summary_btn .qf_claude_icon {
    display: flex;
    align-items: center;
}

/* Popup Overlay */
.qf_popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qf_popup_overlay.qf_active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.qf_popup_container {
    background-color: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qf_popup_overlay.qf_active .qf_popup_container {
    transform: scale(1);
}

/* Popup Header */
.qf_popup_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.qf_popup_title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.qf_popup_title .qf_claude_icon {
    display: flex;
}

.qf_popup_close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.qf_popup_close:hover {
    color: #333;
}

/* Popup Content */
.qf_popup_content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.qf_popup_content ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.qf_popup_content li {
    margin-bottom: 16px;
    padding-left: 0;
}

.qf_popup_content li:last-child {
    margin-bottom: 0;
}

.qf_popup_content li strong {
    color: #222;
}

/* Popup Footer */
.qf_popup_footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #999;
}

/* Dark Mode Support */
.jeg_dark_mode .qf_popup_container {
    background-color: #1a1a1a;
}

.jeg_dark_mode .qf_popup_header {
    border-bottom-color: #333;
}

.jeg_dark_mode .qf_popup_title {
    color: #e0e0e0;
}

.jeg_dark_mode .qf_popup_close {
    color: #666;
}

.jeg_dark_mode .qf_popup_close:hover {
    color: #e0e0e0;
}

.jeg_dark_mode .qf_popup_content {
    color: #ccc;
}

.jeg_dark_mode .qf_popup_content li strong {
    color: #fff;
}

.jeg_dark_mode .qf_popup_footer {
    border-top-color: #333;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .qf_popup_container {
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }
    
    .qf_popup_overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    /* Button Text auf Mobile ausblenden */
    .qf_summary_btn.jeg_btn-summary span {
        display: none;
    }
    
    .qf_summary_btn.jeg_btn-summary {
        padding: 10px 14px;
    }
}


