/**
 * Common CSS Classes
 * Extracted from inline styles for better maintainability and caching
 */

/* ==========================================================================
   Ad Banner Styles
   ========================================================================== */

.ad-image {
    max-height: 60px;
    margin-right: 10px;
    vertical-align: middle;
}

.ad-link {
    color: white;
    text-decoration: underline;
    margin-left: 10px;
}

.ad-link:hover {
    opacity: 0.9;
}

.ad-cell {
    text-align: center;
    padding: 15px;
}

/* ==========================================================================
   Link Styles
   ========================================================================== */

.link-plain {
    color: inherit;
    text-decoration: none;
}

.link-plain:hover {
    text-decoration: underline;
}

/* Button styled as link */
.btn-link {
    color: var(--primary);
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.btn-link:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Text Truncation & Constraints
   ========================================================================== */

.job-title-constrained {
    display: block;
    max-width: 350px;
}

.company-name-constrained {
    max-width: 180px;
}

.location-constrained {
    max-width: 150px;
}

/* ==========================================================================
   Typography Helpers
   ========================================================================== */

.text-muted-sm {
    color: var(--text-secondary);
    font-size: 11px;
}

.text-footnote {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 10px;
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */

.ml-1 {
    margin-left: 1rem;
}

.mr-1 {
    margin-right: 1rem;
}

.mt-half {
    margin-top: 0.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-half {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Flex Utilities
   ========================================================================== */

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Color Utilities
   ========================================================================== */

.text-primary {
    color: var(--primary);
}

.link-primary {
    color: var(--primary);
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Screen Reader Only (Accessibility)
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
