/* 
   BullHorn Jobs Plugin - Modern Enhanced CSS Styles
   Add these to your theme's custom CSS or style.css
   WordPress Admin → Appearance → Customize → Additional CSS
*/

/* ============================================
   MAIN CONTAINER
   ============================================ */

.bullhorn-jobs-container {
    margin: 30px 0;
    font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ============================================
   FILTERS SECTION
   ============================================ */

.bullhorn-filters {
    background: #1C84C6;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

.bullhorn-filters::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.bullhorn-search,
.bullhorn-filter {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bullhorn-search:focus,
.bullhorn-filter:focus {
    outline: none;
    border-color: #1C84C6;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.bullhorn-search::placeholder {
    color: #999;
}

/* ============================================
   FILTER BUTTON
   ============================================ */

#filter-jobs,
.job-item a.bullhorn-btn {
    padding: 12px 30px;
    background: #1C84C6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(34, 12, 15, 0.3);
    position: relative;
    overflow: hidden;
}

#filter-jobs:hover,
.bullhorn-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 12, 15, 0.5);
    background: #1C84C6;
}

.bullhorn-btn:disabled,
.bullhorn-btn:hover:disabled{
		background: #ccc;
		cursor: not-allowed;
		box-shadow: none;
		transform: none;
}


#filter-jobs:active,
.bullhorn-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 12, 15, 0.3);
}

/* ============================================
   JOBS LIST
   ============================================ */

.bullhorn-jobs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .bullhorn-jobs-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   JOB ITEM CARD
   ============================================ */

.job-item {
    background: white;
    border: 1px solid #e8e8e8;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out backwards;
}

.job-item:nth-child(1) { animation-delay: 0.05s; }
.job-item:nth-child(2) { animation-delay: 0.1s; }
.job-item:nth-child(3) { animation-delay: 0.15s; }
.job-item:nth-child(4) { animation-delay: 0.2s; }
.job-item:nth-child(5) { animation-delay: 0.25s; }
.job-item:nth-child(6) { animation-delay: 0.3s; }

.job-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1C84C6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.job-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.job-item:hover::before {
    transform: scaleX(1);
}

.job-item:hover::after {
    opacity: 1;
}

/* ============================================
   JOB TITLE
   ============================================ */

.job-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.job-item:hover .job-title {
    color: #1C84C6;
}

/* ============================================
   JOB METADATA
   ============================================ */

.job-location {
    color: #666;
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease-out 0.2s backwards;
}

.job-salary {
    color: #27ae60;
    font-weight: 700;
    margin: 8px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease-out 0.3s backwards;
}

.job-salary::before {
    content: '💰';
    font-size: 16px;
    animation: pulse 2s infinite;
}

.job-category {
    display: inline-block;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 8px 8px 0;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out 0.4s backwards;
}


/* ============================================
   JOB SKILLS
   ============================================ */

.job-skills {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.job-skills strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   PAGINATION
   ============================================ */

.bullhorn-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
    animation: fadeIn 0.5s ease-out;
}

.bullhorn-pagination a,
.bullhorn-pagination span {
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #1C84C6;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
}

.bullhorn-pagination a:hover {
    background: #1C84C6;
    color: white;
    border-color: #1C84C6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bullhorn-pagination .current {
    background: #1C84C6;
    color: white;
    border-color: #1C84C6;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.bullhorn-jobs-list > p {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   JOB DETAIL PAGE
   ============================================ */

.bullhorn-job-detail {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

.bullhorn-job-detail h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideRight 0.6s ease-out;
}

.bullhorn-job-detail h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.bullhorn-job-detail h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #1C84C6;
    border-radius: 2px;
}

/* ============================================
   JOB META SECTION
   ============================================ */

.job-meta {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-left: 5px solid #1C84C6;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    animation: slideLeft 0.6s ease-out;
}

.meta-item {
    margin: 12px 0;
    font-size: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: transform 0.3s ease;
}

.meta-item:hover {
    transform: translateX(5px);
}

.meta-item strong {
    color: #2c3e50;
    min-width: 120px;
}

/* ============================================
   JOB DESCRIPTION
   ============================================ */

.job-description {
    margin: 30px 0;
    line-height: 1.8;
    color: #444;
    font-size: 16px;
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}

.job-description p {
    margin-bottom: 15px;
}

/* ============================================
   JOB SKILLS DETAIL
   ============================================ */

.job-skills-detail {
    margin: 30px 0;
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

.job-skills-detail ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.job-skills-detail li {
    padding: 12px 15px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    margin: 0;
    border-radius: 8px;
    color: #333;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.4s ease-out backwards;
}

.job-skills-detail li:nth-child(1) { animation-delay: 0.05s; }
.job-skills-detail li:nth-child(2) { animation-delay: 0.1s; }
.job-skills-detail li:nth-child(3) { animation-delay: 0.15s; }
.job-skills-detail li:nth-child(4) { animation-delay: 0.2s; }
.job-skills-detail li:nth-child(5) { animation-delay: 0.25s; }
.job-skills-detail li:nth-child(6) { animation-delay: 0.3s; }

.job-skills-detail li:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(142, 197, 252, 0.4);
}

/* ============================================
   APPLICATION BUTTON
   ============================================ */

.bullhorn-apply-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(34, 12, 15, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out 0.5s backwards;
}

.bullhorn-apply-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bullhorn-apply-btn:hover::before {
    width: 300px;
    height: 300px;
}

.bullhorn-apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 12, 15, 0.5);
}

.bullhorn-apply-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 12, 15, 0.3);
}

/* ============================================
   APPLICATION FORM
   ============================================ */

#apply-form {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    border-left: 5px solid #1C84C6;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.5s ease-out;
}

#apply-form h3 {
    margin-top: 0;
    color: #2c3e50;
}

#apply-form input,
#apply-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 12px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: white;
}

#apply-form input:focus,
#apply-form textarea:focus {
    outline: none;
    border-color: #1C84C6;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

#apply-form input[type="file"] {
    padding: 12px;
}

#apply-form input[type="submit"],
#apply-form button[type="submit"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(34, 12, 15, 0.3);
    position: relative;
    overflow: hidden;
}

#apply-form input[type="submit"]::before,
#apply-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#apply-form input[type="submit"]:hover::before,
#apply-form button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

#apply-form input[type="submit"]:hover,
#apply-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 12, 15, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .bullhorn-filters {
        flex-direction: column;
        padding: 20px;
    }

    .bullhorn-search,
    .bullhorn-filter {
        min-width: auto;
        width: 100%;
    }

    #filter-jobs {
        width: 100%;
    }

    .bullhorn-job-detail {
        padding: 20px;
    }

    .bullhorn-job-detail h1 {
        font-size: 24px;
    }

    .job-meta {
        padding: 15px;
    }

    .job-skills-detail ul {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .bullhorn-filters {
        padding: 15px;
    }

    .bullhorn-jobs-list {
        gap: 15px;
    }

    .job-item {
        padding: 15px;
    }

    .job-title {
        font-size: 16px;
    }

    .bullhorn-job-detail {
        padding: 15px;
    }

    #apply-form {
        padding: 15px;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.bullhorn-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .bullhorn-filters,
    #filter-jobs,
    .bullhorn-apply-btn {
        display: none;
    }

    .job-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        animation: none;
    }

    .bullhorn-job-detail {
        box-shadow: none;
        animation: none;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.bullhorn-btn:focus,
#filter-jobs:focus,
.bullhorn-apply-btn:focus {
    outline: 3px solid #1C84C6;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}