/* MLB Auto Jobs 2025 Page Styles */

/* Container and layout */
.container {
    max-width: 900px;
    margin: 4rem auto;
}

/* Filter styles matching mockup */
.jobs-filters {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.filter-container {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.filter-select {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #333;
    min-width: 180px;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.filter-select:focus {
    outline: none;
    border-color: #10182f;
    box-shadow: 0 0 0 3px rgba(16, 24, 47, 0.1);
}

/* Jobs container */
.jobs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Job card styles matching mockup */
.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 20px 24px;
    margin-bottom: 1px;
    font-family: "Montserrat", sans-serif;
    transition: background-color 0.2s ease;
}

.job-card:hover {
    background-color: #f8f9fa;
}

.job-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.job-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 44px; /* Align with title text */
}

.job-organization {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.job-date {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.job-card-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.job-view-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.job-view-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    text-decoration: none;
    color: #333;
}

/* Applied job pill indicator */
.job-applied-pill {
    background: #10182f;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    display: none;
    align-items: center;
    gap: 4px;
}

.job-applied-pill.show {
    display: flex;
}

.job-applied-pill::before {
    content: "✓";
    font-size: 10px;
}

/* Saved job pill indicator */
.job-saved-pill {
    background: #27AE60;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    display: none;
    align-items: center;
    gap: 4px;
}

.job-saved-pill.show {
    display: flex;
}

.job-saved-pill::before {
    content: "★";
    font-size: 10px;
}

/* No jobs message */
.no-jobs-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    font-family: "Montserrat", sans-serif;
}

/* Header styles */
.mlbjobs--heading h1 {
    text-align: center;
    color: #333;
    font-family: "Montserrat", sans-serif;
}

/* Refresh button */
.refresh {
    max-width: fit-content;
    margin: 2rem auto;
    text-align: center;
    border-top: 2px solid #10182f;
    padding-top: 2rem;
}

.refresh button {
    background-color: white;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.refresh button:hover {
    background-color: #f5f5f5;
}

.refresh button svg {
    fill: #10182f;
    transition: transform 450ms ease;
}

.refresh button:hover svg {
    transform: rotate(70deg);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .jobs-container, .jobs-filters {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }
    
    .job-card-right {
        align-self: flex-end;
    }
    
    .job-meta {
        margin-left: 0;
        gap: 12px;
    }
    
    .job-title h3 {
        font-size: 16px;
    }
    
    .team-logo {
        width: 28px;
        height: 28px;
    }
}

@media screen and (max-width: 600px) {
    .job-card {
        padding: 12px;
    }
    
    .job-title h3 {
        font-size: 15px;
    }
    
    .job-organization, .job-date {
        font-size: 13px;
    }
    
    .team-logo {
        width: 24px;
        height: 24px;
    }
    
    .mlbjobs--heading h1 {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 992px) {
    .about--hero {
        width: 100%;
        max-width: 900px;
        margin: 3rem auto 1rem;
    }
    .about--hero.mlbjobs--hero {
        margin-bottom: 1rem;
    }
    .free-copy {
        max-width: 100%;
        width: 900px;
        margin: auto;
    }
    .jobs-container, .jobs-filters {
        max-width: 900px;
    }
}

@media screen and (min-width: 1440px) {
    .about--hero {
        max-width: 1000px;
        width: 1000px;
    }
    .free-copy {
        max-width: 1000px;
        width: 1000px;
    }
    .jobs-container, .jobs-filters {
        max-width: 1000px;
    }
}

/* Notification status styles */
.notification-cta {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 600px;
}

.notification-cta h3 {
    color: #10182f;
    margin-bottom: 0.5rem;
    font-family: "Montserrat", sans-serif;
}

.notification-cta p {
    color: #666;
    margin-bottom: 1.5rem;
    font-family: "Montserrat", sans-serif;
}

.alert-status-active, .alert-status-inactive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.alert-status-active {
    color: #27AE60;
}

.alert-status-inactive {
    color: #E74C3C;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
}

.status-indicator.active {
    background-color: #27AE60;
}

.status-indicator.inactive {
    background-color: #E74C3C;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: "Montserrat", sans-serif;
    transition: all 0.2s;
}

.btn-primary {
    background: #427AA1;
    color: white;
}

.btn-primary:hover {
    background: #335f7d;
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #10182f;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Not logged in form */
.page-template-mlb-jobs .sign--up {
    display: none;
}

.page-template-mlb-autojobs .sign--up .sign--up_card {
    background-color: #10182f;
}

.page-template-mlb-autojobs .sign--up .card--inner .card--info h2 {
    color: white;
}

.page-template-mlb-autojobs .sign--up .card--inner .card--info p {
    color: white;
}

.page-template-mlb-autojobs .sign--up .card--inner .card--info a {
    color: white;
}

.page-template-mlb-autojobs .sign--up .card--inner .card--form .form--wrapper input {
    color: #10182f;
}

.page-template-mlb-autojobs .sign--up .card--inner .card--form .form--wrapper label {
    color: white;
}

.page-template-mlb-autojobs .sign--up .card--inner .card--form .form--wrapper .mepr-submit {
    background: white;
    color: #10182f !important;
}