/**
 * TECHAGE Jobs Manager Plugin Styles
 * Version: 2.0.0
 * Design angelehnt an techage.de
 */

/* ==========================================================================
   TECHAGE Color Variables
   ========================================================================== */

:root {
    --techage-red: #e3010a;
    --techage-red-dark: #b8010a;
    --techage-red-light: #ff1a25;
    --techage-gray-light: #f8f9fa;
    --techage-gray-medium: #e9ecef;
    --techage-gray-dark: #666666;
    --techage-white: #ffffff;
    --techage-black: #333333;
    --techage-shadow: 0 2px 8px rgba(227, 1, 10, 0.1);
    --techage-shadow-hover: 0 4px 16px rgba(227, 1, 10, 0.2);
}

/* ==========================================================================
   Jobs Listing Styles - TECHAGE Design
   ========================================================================== */

.techage-jobs-listing {
    margin: 2rem 0;
    padding: 0;
}

.job-item {
    background: var(--techage-white);
    border: 2px solid var(--techage-gray-medium);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--techage-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.job-item:hover {
    box-shadow: var(--techage-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--techage-red);
}

/* Job Image Styles */
.job-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 2px solid var(--techage-gray-medium);
    position: relative;
}

.job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.job-item:hover .job-image img {
    transform: scale(1.05);
}

/* Job Content Area */
.job-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.job-content.has-image {
    padding-top: 1.25rem;
}

/* Job Header */
.job-header {
    margin-bottom: 1rem;
}

.job-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--techage-black);
}

.job-title a {
    color: var(--techage-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: var(--techage-red);
}

/* Job Meta Information */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--techage-gray-dark);
    background: var(--techage-gray-light);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--techage-gray-medium);
    transition: all 0.3s ease;
}

.job-meta span:hover {
    background: var(--techage-red);
    color: var(--techage-white);
    border-color: var(--techage-red);
}

.job-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 0.5rem;
}

/* Spezifische Icon-Farben */
.job-location .dashicons {
    color: var(--techage-red);
}

.job-type .dashicons {
    color: #0066cc;
}

.job-department .dashicons {
    color: #7b68ee;
}

.job-experience .dashicons {
    color: #ff8c00;
}

/* Job Excerpt */
.job-excerpt {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--techage-gray-dark);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Job Actions */
.job-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 2px solid var(--techage-gray-medium);
    margin-top: auto;
}

.job-apply-btn {
    background: linear-gradient(135deg, var(--techage-red) 0%, var(--techage-red-dark) 100%);
    color: var(--techage-white) !important;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(227, 1, 10, 0.3);
    border: 2px solid var(--techage-red);
    text-transform: uppercase;
}

.job-apply-btn:hover {
    background: linear-gradient(135deg, var(--techage-red-dark) 0%, var(--techage-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(227, 1, 10, 0.4);
    color: var(--techage-white) !important;
}

.job-apply-btn:active {
    transform: translateY(0);
}

.job-date {
    color: var(--techage-gray-dark);
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--techage-gray-light);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 1px solid var(--techage-gray-medium);
}

/* No Results Message */
.jobs-no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--techage-white);
    border: 2px solid var(--techage-gray-medium);
    border-radius: 12px;
    color: var(--techage-gray-dark);
    font-style: italic;
    font-size: 1.1rem;
    box-shadow: var(--techage-shadow);
}

/* ==========================================================================
   Single Job Page Styles
   ========================================================================== */

.single-jobs .entry-content {
    background: var(--techage-white);
    border: 2px solid var(--techage-gray-medium);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: var(--techage-shadow);
}

.single-jobs .entry-content h3 {
    color: var(--techage-red);
    border-bottom: 3px solid var(--techage-red);
    padding-bottom: 0.75rem;
    margin: 2.5rem 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.single-jobs .entry-content ul {
    margin: 1.5rem 0;
    padding-left: 0;
}

.single-jobs .entry-content ul li {
    list-style: none;
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    border-bottom: 1px solid var(--techage-gray-light);
    line-height: 1.5;
}

.single-jobs .entry-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--techage-red);
    font-weight: bold;
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    background: var(--techage-gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-jobs .entry-content ul li:last-child {
    border-bottom: none;
}

/* Job Details Display */
.job-details-display {
    background: var(--techage-white);
    border: 2px solid var(--techage-gray-medium);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--techage-shadow);
}

.job-details-display h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--techage-red);
    border-bottom: 3px solid var(--techage-red);
    padding-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Job Meta Header */
.job-meta-header {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--techage-white);
    border: 2px solid var(--techage-gray-medium);
    border-radius: 12px;
    border-left: 6px solid var(--techage-red);
    box-shadow: var(--techage-shadow);
}

.job-deadline {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--techage-white);
    border: 2px solid #ffc107;
    border-left: 6px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-weight: 600;
}

/* Contact Section */
.job-contact-section {
    background: linear-gradient(135deg, var(--techage-red) 0%, var(--techage-red-dark) 100%);
    color: var(--techage-white);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--techage-shadow-hover);
    border: 3px solid var(--techage-red-dark);
}

.job-contact-section h4 {
    color: var(--techage-white);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.job-contact-btn {
    background: var(--techage-white);
    color: var(--techage-red) !important;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: 3px solid var(--techage-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-contact-btn:hover {
    background: transparent;
    color: var(--techage-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Filter Styles
   ========================================================================== */

.jobs-filter {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--techage-white);
    border: 2px solid var(--techage-gray-medium);
    border-radius: 12px;
    box-shadow: var(--techage-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.jobs-filter label {
    font-weight: 600;
    color: var(--techage-black);
    margin: 0;
}

.jobs-filter select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--techage-gray-medium);
    border-radius: 8px;
    background: var(--techage-white);
    color: var(--techage-black);
    font-weight: 500;
    transition: border-color 0.3s ease;
}

.jobs-filter select:focus {
    outline: none;
    border-color: var(--techage-red);
    box-shadow: 0 0 0 3px rgba(227, 1, 10, 0.1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet Portrait */
@media (max-width: 1024px) {
    .job-item {
        margin-bottom: 1.5rem;
    }
    
    .job-content {
        padding: 1.25rem;
    }
    
    .job-title {
        font-size: 1.25rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .techage-jobs-listing {
        margin: 1rem 0;
    }
    
    .job-item {
        margin-bottom: 1.25rem;
        border-radius: 8px;
    }
    
    .job-content {
        padding: 1rem;
    }
    
    .job-title {
        font-size: 1.15rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-meta span {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .job-apply-btn {
        padding: 1rem;
        border-radius: 8px;
        font-size: 0.85rem;
    }
    
    .job-image {
        height: 150px;
    }
    
    .jobs-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .single-jobs .entry-content,
    .job-details-display,
    .job-meta-header {
        padding: 1.5rem;
    }
    
    .job-contact-section {
        padding: 2rem 1.5rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .techage-jobs-listing {
        margin: 0.5rem -0.5rem;
    }
    
    .job-item {
        margin: 0 0.5rem 1rem 0.5rem;
        border-radius: 6px;
    }
    
    .job-content {
        padding: 0.875rem;
    }
    
    .job-title {
        font-size: 1rem;
        line-height: 1.25;
    }
    
    .job-excerpt {
        font-size: 0.9rem;
    }
    
    .job-apply-btn {
        padding: 0.875rem;
        font-size: 0.8rem;
    }
    
    .job-image {
        height: 120px;
    }
    
    .single-jobs .entry-content,
    .job-details-display,
    .job-meta-header {
        padding: 1rem;
    }
    
    .job-contact-section {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .job-item {
        box-shadow: none;
        border: 2px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
        background: white !important;
    }
    
    .job-apply-btn {
        display: none;
    }
    
    .job-actions {
        justify-content: flex-end;
    }
    
    .job-image {
        display: none;
    }
}

/* ==========================================================================
   Accessibility & Animation
   ========================================================================== */

.job-apply-btn:focus,
.job-contact-btn:focus {
    outline: 3px solid var(--techage-red);
    outline-offset: 2px;
}

.job-item:focus-within {
    border-color: var(--techage-red);
    box-shadow: 0 0 0 3px rgba(227, 1, 10, 0.1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .job-item,
    .job-apply-btn,
    .job-contact-btn,
    .job-image img {
        transition: none;
    }
    
    .job-item:hover {
        transform: none;
    }
}

/* Animation for scroll-in effect */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-item.animate-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading state */
.techage-jobs-listing.loading {
    opacity: 0.6;
    pointer-events: none;
}

.techage-jobs-listing.loading::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 2rem auto;
    border: 3px solid var(--techage-gray-light);
    border-top: 3px solid var(--techage-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Screen reader only content */
.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;
}