/* ==========================================================================
   CENTRALIZED GLOBAL DESIGN SCHEME FOR ZERO-LOAD PDF SUITE (AD-OPTIMIZED)
   ========================================================================== */

/* --- 1. Homepage Dashboard Grid System --- */
.pdf-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #4A90E2;
}

.tool-card h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
}

.tool-card a {
    display: inline-block;
    color: #4A90E2;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.tool-card a:hover {
    color: #2563eb;
}

/* --- 2. Interactive Main Application Canvas Framework --- */
.pdf-ui-wrapper {
    background: #ffffff;
    border: 2px dashed #4A90E2;
    padding: 45px 35px;
    border-radius: 20px;
    max-width: 680px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.pdf-ui-wrapper h3 {
    margin: 0 0 8px 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
}

.pdf-ui-wrapper p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

/* --- 3. Reactive File Drag & Drop Targets --- */
.file-drop-zone {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 45px 20px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-drop-zone:hover {
    border-color: #4A90E2;
    background-color: #f0f7ff;
}

.file-drop-zone span {
    color: #4A90E2;
    font-weight: 700;
}

/* --- 4. Formatted Display Layout Panels for Queue Streams --- */
#jl-file-list-preview, #jl-highlight-preview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.02);
}

#jl-file-list-preview h4, #jl-highlight-preview-box h4 {
    margin: 0 0 12px 0;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

#jl-preview-queue {
    padding-left: 20px;
    margin: 0;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
}

/* --- 5. High-Impact Call-To-Action Layout Buttons --- */
.pdf-main-action-btn {
    background: #4A90E2;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(74, 144, 226, 0.25);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.pdf-main-action-btn:hover:not(:disabled) {
    background: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.pdf-main-action-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.pdf-main-action-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- 6. Execution Messages & System Alerts --- */
#jl-status-message, #jl-highlight-status {
    margin: 20px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    min-height: 24px;
}

/* --- 7. Google AdSense Strategic Layout Grid Enclosures --- */
.adsense-placeholder {
    width: 100%;
    min-height: 120px;
    background: #f1f5f9;
    margin: 35px 0;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-family: monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0px #fff;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

/* --- 8. Theme Layout Overpower Rules (Universal) --- */

/* Target the generated pages to give them a modern, SaaS-style background */
body[class*="page-pdf-"],
body[class*="page-highlight-"] {
    background-color: #f8fafc;
}

/* Force the main content area to center and cap at a readable width */
body[class*="page-pdf-"] .site-content,
body[class*="page-highlight-"] .site-content {
    max-width: 900px !important;
    margin: 0 auto;
    padding-top: 40px;
}

/* Hard-override fallback to kill ANY theme sidebars just in case GeneratePress changes */
body[class*="page-pdf-"] #secondary,
body[class*="page-highlight-"] #secondary {
    display: none !important;
}

body[class*="page-pdf-"] #primary,
body[class*="page-highlight-"] #primary {
    width: 100% !important;
}

/* Clean up the homepage heading layout */
.pdf-tools-grid {
    margin-top: 20px;
}

/* --- 9. SEO Article & Typography Styling --- */

/* Make main headings bold, modern, and distinct */
body[class*="page-pdf-"] .site-content h2,
body[class*="page-highlight-"] .site-content h2 {
    font-size: 28px;
    color: #0f172a;
    margin: 50px 0 20px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

/* Style the subheadings */
body[class*="page-pdf-"] .site-content h3,
body[class*="page-highlight-"] .site-content h3 {
    font-size: 20px;
    color: #1e293b;
    margin: 35px 0 15px 0;
    font-weight: 700;
}

/* Improve reading legibility for paragraphs and lists */
body[class*="page-pdf-"] .site-content p,
body[class*="page-pdf-"] .site-content li,
body[class*="page-highlight-"] .site-content p,
body[class*="page-highlight-"] .site-content li {
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

/* Turn standard bullet points into a modern feature card */
body[class*="page-pdf-"] .site-content ul,
body[class*="page-highlight-"] .site-content ul {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 25px 25px 45px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    margin-bottom: 35px;
}

body[class*="page-pdf-"] .site-content ul li:last-child {
    margin-bottom: 0;
}

/* Style the FAQ Questions */
body[class*="page-pdf-"] .site-content strong,
body[class*="page-highlight-"] .site-content strong {
    color: #0f172a;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 8px;
}
