/**
 * Stylesheet: Base Typography, Containers & Layout Grid
 *
 * @package    Gigsdock_Customizations
 * @subpackage Assets_CSS
 * @since      1.0.0
 *
 * ============================================================================
 * Table of Contents:
 * 1. Google Fonts Import
 * 2. New Design System Containers (.gd-container, .gd-layout-sidebar)
 * 3. Legacy Template Containers (.gigsdock-job-container, .gigsdock-home-container)
 * 4. Legacy Two-Column Grid (.job-layout, .job-sidebar)
 * 5. Pagination (.gigsdock-pagination)
 * ============================================================================
 *
 * NOTE: Sections 3-5 are LEGACY ALIASES required because all existing templates
 * still use the old class names. Do NOT remove until all template HTML is
 * updated to use the new gd-* naming convention.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   1. NEW DESIGN SYSTEM: CONTAINERS
   ========================================================================== */

.gd-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gd-container.home-container {
    margin-top: 0;
}

/* ==========================================================================
   2. NEW DESIGN SYSTEM: TWO-COLUMN RESPONSIVE LAYOUT GRID
   ========================================================================== */

.gd-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .gd-layout-sidebar {
        grid-template-columns: 2.2fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .gd-sidebar {
        position: sticky;
        top: 40px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .gd-sidebar .gd-card {
        margin: 0;
    }
}

/* ==========================================================================
   3. LEGACY: MAIN PAGE WRAPPER
   ========================================================================== */

.gigsdock-job-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    color: #334155;
}

.gigsdock-home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #334155;
}

/**
 * Aggressively override theme fonts inside our layout containers.
 * Required because themes like Neve inject their own font stack on all elements.
 */
.gigsdock-job-container,
.gigsdock-job-container p,
.gigsdock-job-container h1,
.gigsdock-job-container h2,
.gigsdock-job-container h3,
.gigsdock-job-container h4,
.gigsdock-job-container li,
.gigsdock-job-container a,
.gigsdock-job-container span,
.gigsdock-job-container div,
.gigsdock-home-container,
.gigsdock-home-container p,
.gigsdock-home-container h1,
.gigsdock-home-container h2,
.gigsdock-home-container h3,
.gigsdock-home-container h4,
.gigsdock-home-container li,
.gigsdock-home-container a,
.gigsdock-home-container span,
.gigsdock-home-container div,
.gd-container,
.gd-container p,
.gd-container h1,
.gd-container h2,
.gd-container h3,
.gd-container h4,
.gd-container li,
.gd-container a,
.gd-container span,
.gd-container div {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ==========================================================================
   4. LEGACY: TWO-COLUMN GRID (.job-layout, .job-sidebar)
   ========================================================================== */

.job-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .job-layout {
        grid-template-columns: 2.2fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .job-sidebar {
        position: sticky;
        top: 40px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .job-sidebar .info-card,
    .job-sidebar .share-box-bottom,
    .job-sidebar .job-section.related-jobs {
        margin: 0;
    }
}

/* ==========================================================================
   5. LEGACY: PAGINATION (.gigsdock-pagination)
   ========================================================================== */

.gigsdock-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.gigsdock-pagination li .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
}

.gigsdock-pagination li a.page-numbers:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.gigsdock-pagination li .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    pointer-events: none;
}

.gigsdock-pagination li .page-numbers.dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    pointer-events: none;
}

/* ==========================================================================
   6. FRESHNESS INDICATOR (.gigsdock-fresh-badge)
   ========================================================================== */
.gigsdock-fresh-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    vertical-align: text-bottom;
}
