/* =============================================================================
   Coyote Careers — Front-end Styles
   Inherits theme variables: --ab-main-color, --ab-main-alt, --color-1..4
   ============================================================================= */

/* ── Listings wrapper ──────────────────────────────────────────────────────── */
.cc-wrap {
    width: 100%;
}

/* ── Filter bar ────────────────────────────────────────────────────────────── */
.cc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 680px;
}

.cc-filter-group {
    flex: 1 1 200px;
    min-width: 160px;
}

.cc-filter {
    width: 100%;
    background: rgb(0 0 0 / 50%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50px;
    color: #fff;
    padding: 12px 20px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: border-color 0.2s;
}

.cc-filter:focus {
    border-color: var(--ab-main-color, #EC944A);
}

.cc-filter option {
    background: #1c1c1c;
    color: #fff;
}

/* ── Results count ─────────────────────────────────────────────────────────── */
.cc-results-count {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.cc-results-count .cc-count {
    color: var(--ab-main-color, #EC944A);
    font-weight: 700;
}

/* ── Job grid ──────────────────────────────────────────────────────────────── */
.cc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .cc-grid {
        grid-template-columns: 1fr;
    }
}

.cc-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.4);
    padding: 60px 20px;
    font-size: 16px;
}

/* ── Job card ──────────────────────────────────────────────────────────────── */
.cc-job-card {
    background: #1c1c1c;
    border-radius: 20px;
    padding: 28px 24px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgb(0 0 0 / 40%);
}

/* Venue badge */
.cc-venue-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    width: fit-content;
}

/* Job title */
.cc-job-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.cc-job-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.cc-job-title a:hover {
    color: var(--ab-main-color, #EC944A);
}

/* Meta row */
.cc-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.cc-meta-item svg {
    flex-shrink: 0;
}

/* Excerpt */
.cc-job-excerpt {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* Applicant count */
.cc-app-count {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

/* Card footer */
.cc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}
@media (max-width: 768px) {
    .cc-card-footer{
            flex-wrap: wrap;
    }
}

/* Action buttons group */
.cc-action-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* View Listing + Apply button */
.cc-view-btn,
.cc-apply-btn {
    background: linear-gradient(90deg, var(--ab-main-color, #EC944A), var(--ab-main-alt, #d97d2c), var(--ab-main-color, #EC944A));
    background-size: 200% 100%;
    border: none;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 22px;
    text-transform: uppercase;
    transition: background-position 0.5s ease, opacity 0.2s;
    white-space: nowrap;
}

.cc-view-btn:hover,
.cc-apply-btn:hover {
    background-position: 100% 0;
}

.cc-view-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
}

.cc-view-btn:hover {
    color: #fff;
}

/* Share buttons */
.cc-share-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 12%);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.cc-share-btn:hover {
    background: rgb(255 255 255 / 16%);
    color: #fff;
}

/* Copy tooltip */
.cc-share-btn .cc-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.cc-share-btn.cc-copied .cc-copy-tooltip {
    opacity: 1;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 80%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
    max-height: 100vh;
}

.cc-modal-overlay:not([hidden]) {
    opacity: 1;
}

.cc-modal-overlay[hidden] {
    display: none;
}

.cc-modal {
    background: #111;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 36px 36px;
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.cc-modal-overlay:not([hidden]) .cc-modal {
    transform: scale(1);
}

@media (max-width: 480px) {
    .cc-modal {
        padding: 32px 20px 24px;
        border-radius: 16px;
    }
}

/* Modal close */
.cc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgb(255 255 255 / 8%);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background 0.2s;
}

.cc-modal-close:hover {
    background: rgb(255 255 255 / 16%);
    color: #fff;
}

/* Modal header */
.cc-modal-header {
    margin-bottom: 28px;
}

.cc-modal-position-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin: 0 0 4px;
}

.cc-modal-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.2;
}

.cc-modal-venue {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.cc-file-text{
    color: var(--ab-main-color);
}
/* ── Forms (shared by modal + general) ────────────────────────────────────── */
.cc-form,
.cc-general-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cc-form-row {
    display: grid;
    gap: 16px;
}

.cc-form-row--2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 560px) {
    .cc-form-row--2 {
        grid-template-columns: 1fr;
    }
}

.cc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cc-field label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    line-height: 1.1;
    margin-bottom: 0;
    margin-top: 5px;
}

.cc-required {
    color: var(--ab-main-color, #EC944A);
}

/* Inputs */
.cc-form input[type="text"],
.cc-form input[type="email"],
.cc-form input[type="tel"],
.cc-form input[type="url"],
.cc-form select,
.cc-form textarea,
.cc-general-form input[type="text"],
.cc-general-form input[type="email"],
.cc-general-form input[type="tel"],
.cc-general-form input[type="url"],
.cc-general-form select,
.cc-general-form textarea {
    width: 100%;
    background: rgb(0 0 0 / 50%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50px;
    color: #fff;
    padding: 12px 20px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cc-form textarea,
.cc-general-form textarea {
    border-radius: 20px;
    resize: vertical;
    padding: 14px 20px;
}

.cc-form select,
.cc-general-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.cc-form select option,
.cc-general-form select option {
    background: #1c1c1c;
    color: #fff;
}

.cc-form input:focus,
.cc-form select:focus,
.cc-form textarea:focus,
.cc-general-form input:focus,
.cc-general-form select:focus,
.cc-general-form textarea:focus {
    border-color: var(--ab-main-color, #EC944A);
}

.cc-form input::placeholder,
.cc-form textarea::placeholder,
.cc-general-form input::placeholder,
.cc-general-form textarea::placeholder {
    color: rgba(255,255,255,0.35);
    font-size: 14px;
}

/* Autofill */
.cc-form input:-webkit-autofill,
.cc-general-form input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: inset 0 0 20px 20px #23232329;
    transition: background-color 5000s ease-in-out 0s;
}

/* File field */
.cc-file-field {
    position: relative;
}

.cc-file-field input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
    border: none;
    border-radius: 0;
    padding: 0;
    background: none;
}

.cc-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgb(0 0 0 / 50%);
    border: 1px dashed rgb(255 255 255 / 25%);
    border-radius: 20px;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 12px 20px;
    font-size: 14px;
    transition: border-color 0.2s, color 0.2s;
    user-select: none;
}

.cc-file-label:hover {
    border-color: var(--ab-main-color, #EC944A);
    color: #fff;
}

.cc-file-field.cc-has-file .cc-file-label {
    border-color: var(--ab-main-color, #EC944A);
    color: #fff;
}

/* Checkbox */
.cc-field--checkbox {
    gap: 0;
}

.cc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    line-height: 1.5;
}

.cc-checkbox-label input[type="checkbox"] {
    width: auto;
    min-width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--ab-main-color, #EC944A);
    cursor: pointer;
    flex-shrink: 0;
}

.cc-checkbox-label a {
    color: var(--ab-main-color, #EC944A);
    text-decoration: none;
}

.cc-checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.cc-submit-btn {
    background: linear-gradient(90deg, var(--ab-main-color, #EC944A), var(--ab-main-alt, #d97d2c), var(--ab-main-color, #EC944A));
    background-size: 200% 100%;
    border: none;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 30px;
    text-transform: uppercase;
    transition: background-position 0.5s ease, opacity 0.2s;
    width: 100%;
    margin-top: 4px;
}

.cc-submit-btn:hover {
    background-position: 100% 0;
}

.cc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error / success messages */
.cc-form-error {
    background: rgb(215 106 35 / 15%);
    border: 1px solid rgba(215,106,35,0.4);
    border-radius: 10px;
    color: #f4a261;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 16px;
}

.cc-form-success {
    text-align: center;
    padding: 24px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cc-form-success svg {
    color: #06D6A0;
}

.cc-form-success p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ── General form wrapper ──────────────────────────────────────────────────── */
.cc-general-wrap {
    background: #1c1c1c;
    border-radius: 20px;
    padding: 36px 32px;
}

@media (max-width: 480px) {
    .cc-general-wrap {
        padding: 24px 16px;
        border-radius: 16px;
    }
}

/* ══ Single Job Page ══════════════════════════════════════════════════════════ */

/* Hero */
.cj-single__hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #111;
}

@media (max-width: 768px) {
    .cj-single__hero { height: 320px; }
}

.cj-single__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cj-single__hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1c1c1c 0%, #111 100%);
}

.cj-single__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 100%) 0%, rgb(0 0 0 / 30%) 60%, transparent 100%);
}

.cj-single__hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
}

@media (max-width: 768px) {
    .cj-single__hero-content { padding: 24px 20px; }
}

.cj-single__venue-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.cj-single__title {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 12px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .cj-single__title { font-size: 26px; }
}

.cj-single__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cj-single__hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* Back link */
.cj-single__back {
    padding: 20px 0 0;
}

.cj-single__back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.cj-single__back-link:hover {
    color: var(--venue-color, #EC944A);
}

/* Body layout */
.cj-single__body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 80px;
    align-items: start;
}

@media (max-width: 900px) {
    .cj-single__body {
        grid-template-columns: 1fr;
    }
    .cj-single__sidebar {
        order: -1;
    }
}

/* Sections */
.cj-single__section {
    margin-bottom: 36px;
}

.cj-single__section-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.cj-single__content {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
}

.cj-single__content ul,
.cj-single__content ol {
    padding-left: 20px;
    margin: 12px 0;
}

.cj-single__content li {
    margin-bottom: 6px;
}

.cj-single__content strong {
    color: #fff;
    font-weight: 700;
}

/* Info card */
.cj-single__info-card {
    background: #1c1c1c;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
}

.cj-single__card-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin: 0 0 18px;
}

.cj-single__info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    color: rgba(255,255,255,0.5);
}

.cj-single__info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cj-single__info-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.cj-info-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cj-info-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.cj-venue-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cj-status-active {
    color: #06D6A0;
}

/* Apply button on single page */
.cj-single__apply-btn {
    width: 100%;
    padding: 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Share row */
.cj-single__share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.cj-share-label {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}

/* Closed notice */
.cj-single__closed {
    background: rgb(255 255 255 / 5%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    padding: 16px;
    text-align: center;
    line-height: 1.5;
}

/* ── Loading state (grid skeleton) ────────────────────────────────────────── */
.cc-grid.cc-loading {
    position: relative;
    min-height: 200px;
}

.cc-grid.cc-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 40%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
