/**
 * Elite Workforce - Spacing & Visual Optimization CSS
 * Targets: .entry-content (internal pages), article content, all text elements
 * Purpose: Improve readability, add whitespace, fix visual hierarchy
 * Priority: Override theme defaults with better spacing
 */

/* ============================================
   ENTRY CONTENT - Internal Pages Styling
   ============================================ */

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary, #e5e7eb);
}

/* Paragraphs - PRIMARY TEXT ELEMENT */
.entry-content p,
article p,
.page p {
    margin-bottom: 24px !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    color: inherit;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Headings - VISUAL HIERARCHY */

.entry-content h1,
article h1,
.page h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 32px !important;
    line-height: 1.3 !important;
    color: var(--text-primary, #ffffff) !important;
}

.entry-content h2,
article h2,
.page h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-top: 48px !important;
    margin-bottom: 24px !important;
    line-height: 1.4 !important;
    color: var(--text-primary, #ffffff) !important;
}

.entry-content h3,
article h3,
.page h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-top: 36px !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
    color: var(--text-primary, #ffffff) !important;
}

.entry-content h4,
article h4,
.page h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-top: 28px !important;
    margin-bottom: 14px !important;
    line-height: 1.4 !important;
}

.entry-content h5,
.entry-content h6,
article h5,
article h6,
.page h5,
.page h6 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}

/* Lists - ORGANIZED CONTENT */

.entry-content ul,
.entry-content ol,
article ul,
article ol,
.page ul,
.page ol {
    margin-left: 28px !important;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
}

.entry-content li,
article li,
.page li {
    margin-bottom: 12px !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    color: inherit;
}

.entry-content ul li:last-child,
.entry-content ol li:last-child,
article ul li:last-child,
article ol li:last-child {
    margin-bottom: 0;
}

.entry-content li strong {
    color: var(--text-primary, #ffffff);
    font-weight: 600;
}

/* Nested Lists */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul,
article ul ul,
article ol ol {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    margin-left: 28px !important;
}

/* ============================================
   TABLES - DATA PRESENTATION
   ============================================ */

.entry-content table,
article table,
.page table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 32px 0 !important;
    font-size: 15px !important;
}

.entry-content table th,
.entry-content table td,
article table th,
article table td {
    padding: 16px !important;
    border: 1px solid rgba(255, 77, 0, 0.2) !important;
    text-align: left;
    line-height: 1.6;
}

.entry-content table th {
    background-color: rgba(255, 77, 0, 0.1) !important;
    font-weight: 700 !important;
    color: var(--brand-orange, #ff4d00) !important;
}

.entry-content table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.entry-content table tr:hover {
    background-color: rgba(255, 77, 0, 0.05) !important;
}

/* Table Wrapper for Mobile Responsiveness */
.entry-content table-wrapper,
.table-responsive {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Inline tables need scrolling container on mobile */
@media (max-width: 768px) {
    .entry-content table {
        font-size: 14px !important;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 12px !important;
    }
}

/* ============================================
   BLOCKQUOTES & SPECIAL TEXT
   ============================================ */

.entry-content blockquote,
article blockquote,
.page blockquote {
    border-left: 4px solid var(--brand-orange, #ff4d00);
    margin: 32px 0 !important;
    padding: 20px 24px !important;
    background-color: rgba(255, 77, 0, 0.05);
    font-style: italic;
    font-size: 16px;
    line-height: 1.8 !important;
    color: var(--text-secondary, #e5e7eb);
}

.entry-content blockquote p {
    margin-bottom: 0;
}

.entry-content code,
article code,
.page code {
    background-color: rgba(255, 77, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: var(--brand-orange, #ff4d00);
}

.entry-content pre,
article pre,
.page pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px !important;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0 !important;
    line-height: 1.5;
    font-size: 14px;
}

.entry-content pre code,
article pre code {
    background: none;
    color: #00ff00;
    padding: 0;
}

/* ============================================
   SECTION BREAKS & VISUAL HIERARCHY
   ============================================ */

.entry-content hr,
article hr {
    border: none !important;
    border-top: 2px solid rgba(255, 77, 0, 0.2) !important;
    margin: 48px 0 !important;
    opacity: 0.6;
}

.entry-content > *:first-child {
    margin-top: 0 !important;
}

/* Add visual breaks for sections */
.entry-content section,
.entry-content div[style*="background"] {
    margin: 48px 0 !important;
    padding: 40px !important;
    border-radius: 8px;
}

/* ============================================
   STRONG & EMPHASIS - TEXT STYLING
   ============================================ */

.entry-content strong,
.entry-content b,
article strong,
article b {
    font-weight: 700;
    color: var(--text-primary, #ffffff);
}

.entry-content em,
.entry-content i,
article em,
article i {
    font-style: italic;
    color: var(--text-secondary, #e5e7eb);
}

/* ============================================
   LINKS - INTERACTIVE ELEMENTS
   ============================================ */

.entry-content a,
article a,
.page a {
    color: var(--brand-orange, #ff4d00);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.entry-content a:hover,
article a:hover,
.page a:hover {
    color: #ff6b1a;
    text-decoration: underline;
}

/* ============================================
   DEFINITION LISTS
   ============================================ */

.entry-content dl,
article dl {
    margin: 24px 0 !important;
}

.entry-content dt,
article dt {
    font-weight: 700;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
    color: var(--text-primary, #ffffff);
}

.entry-content dd,
article dd {
    margin-left: 24px !important;
    margin-bottom: 16px !important;
    color: var(--text-secondary, #e5e7eb);
    line-height: 1.8 !important;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 768px) {
    /* Adjust font sizes for tablets */
    .entry-content h1,
    article h1,
    .page h1 {
        font-size: 28px !important;
        margin-bottom: 24px !important;
    }

    .entry-content h2,
    article h2,
    .page h2 {
        font-size: 24px !important;
        margin-top: 36px !important;
        margin-bottom: 18px !important;
    }

    .entry-content h3,
    article h3,
    .page h3 {
        font-size: 18px !important;
        margin-top: 28px !important;
        margin-bottom: 14px !important;
    }

    .entry-content p,
    article p,
    .page p {
        margin-bottom: 20px !important;
        font-size: 15px !important;
    }

    .entry-content ul,
    .entry-content ol,
    article ul,
    article ol {
        margin-left: 24px !important;
        margin-bottom: 20px !important;
    }

    .entry-content li,
    article li {
        margin-bottom: 10px !important;
        font-size: 15px !important;
    }

    .entry-content blockquote,
    article blockquote {
        margin: 24px 0 !important;
        padding: 16px 20px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    /* Mobile adjustments */
    .entry-content h1,
    article h1,
    .page h1 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }

    .entry-content h2,
    article h2,
    .page h2 {
        font-size: 20px !important;
        margin-top: 28px !important;
        margin-bottom: 16px !important;
    }

    .entry-content h3,
    article h3,
    .page h3 {
        font-size: 16px !important;
        margin-top: 22px !important;
        margin-bottom: 12px !important;
    }

    .entry-content p,
    article p,
    .page p {
        margin-bottom: 16px !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .entry-content ul,
    .entry-content ol,
    article ul,
    article ol {
        margin-left: 20px !important;
        margin-bottom: 18px !important;
    }

    .entry-content li,
    article li {
        margin-bottom: 8px !important;
        font-size: 15px !important;
    }

    .entry-content table th,
    .entry-content table td,
    article table th,
    article table td {
        padding: 10px !important;
        font-size: 13px !important;
    }

    .entry-content blockquote,
    article blockquote {
        margin: 20px 0 !important;
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.spacer-top {
    margin-top: 48px !important;
}

.spacer-bottom {
    margin-bottom: 48px !important;
}

.section-break {
    height: 40px;
    margin: 40px 0;
}

.highlight {
    background-color: rgba(255, 77, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}
