/**
 * Forum Jobs Scraper - Styles
 * Nachbau der Original-Optik von rosenheimjobs.de
 */

/* Grid Container */
.jobsByOrganization_responsiveGrid__GGpBp.forum-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Job Cell */
.cell_cell-dsp-sm-grid__VeniU.cell_cell__KD6Av {
    display: block;
}

/* Job Item */
.forum-job-item {
    cursor: pointer;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.forum-job-item:hover {
    transform: translateY(-2px);
}

/* Job Teaser Wrapper */
.jobTeaser_jobTeaserWrapper__7HfH9.jcl-job-teaser {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}

.jobTeaser_jobTeaserWrapper__7HfH9.jcl-job-teaser:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Job Image/Logo */
.jcl-job-teaser-image {
    display: none;
    align-items: flex-start;
    flex-shrink: 0;
}

.jcl-job-teaser-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

/* Job Content */
.jcl-job-teaser-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

/* Job Title */
.jobTeaser_jobTeaserTitle__XIgud.jcl-job-teaser-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.jobTeaser_jobTeaserTitle__XIgud.jcl-job-teaser-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jobTeaser_jobTeaserTitle__XIgud.jcl-job-teaser-title a:hover {
    color: #ff6600;
}

/* Job Info */
.jcl-job-teaser-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

/* Company */
.jobTeaser_jobTeaserCompany__RO4_j.jcl-job-teaser-company {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jobTeaser_companyName___rhEr {
    font-weight: 500;
    color: #444;
}

/* Icons */
.jobTeaser_jobTeaserIcon__tZFcu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.jobTeaser_jobTeaserIcon__tZFcu svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.jobTeaser_jobTeaserIconPremiumCompany__kGO8K svg {
    fill: #ff6600;
}

/* Flex Items */
.flex-item-wrapper.flex_flexItems__DhzIj {
    display: flex;
}

.flex_ai-sm-center__jTZ8a {
    align-items: center;
}

.flex_fw-sm-wrap__zQmr5 {
    flex-wrap: wrap;
}

.flex_fw-sm-nowrap__kS8fc {
    flex-wrap: nowrap;
}

.flex_gap-sm-5__yaBCH {
    gap: 12px;
}

.flex_fd-sm-column__T5mXM {
    flex-direction: column;
}

.flex_jc-sm-space-between__AlsZO {
    justify-content: space-between;
}

/* Location */
.jobTeaser_jobTeaserLocation__QTwy1.jcl-job-teaser-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jobTeaser_jobTeaserLocation__QTwy1.jcl-job-teaser-location .flex-item-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.popoverlist-no-list-item {
    color: #666;
    font-size: 14px;
}

/* Date */
.jobTeaser_jobTeaserDate__aNE0m {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

/* Hide icons on mobile */
@media (max-width: 768px) {
    .jobTeaser_jobTeaserIconHideMobile__lXpnd {
        display: none !important;
    }
}

/* Responsive Grid */
@media (max-width: 768px) {
    .jobsByOrganization_responsiveGrid__GGpBp.forum-jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .jobTeaser_jobTeaserWrapper__7HfH9.jcl-job-teaser {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .jcl-job-teaser-image {
        align-self: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .jobsByOrganization_responsiveGrid__GGpBp.forum-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* No Results Message */
.forum-jobs-no-results {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Flexbox Item */
.flexItem_flexItem__0wD_n {
    flex: 1 1 0%;
}

/* Actions */
.jobTeaser_jobTeaserActions__peBah {
    display: none; /* Verstecke Bookmark/Featured Icons */
}

@media (min-width: 768px) {
    .flex_fd-md-row__jrllk {
        flex-direction: row;
    }
}

.flex_ai-sm-flex-start__g4mYB {
    align-items: flex-start;
}

/* Featured Icon */
.jobTeaser_featuredIcon__qFKl2 {
    display: none;
}

/* Bookmark Icon */
.jobTeaser_bookmarkIcon__tbfqU {
    display: none;
}

/* Occupation & Description (leer im Original) */
.jobTeaser_jobTeaserOccupation__kIsbG,
.jobTeaser_jobTeaserDescription__6HGLX {
    display: none;
}

/* Zusätzliche Fixes für bessere Darstellung */
.jcl-job-teaser * {
    box-sizing: border-box;
}

/* Icon-Container für bessere Ausrichtung */
.jobTeaser_jobTeaserIcon__tZFcu {
    line-height: 1;
    vertical-align: middle;
}

/* Verhindere Text-Overflow */
.jobTeaser_jobTeaserTitle__XIgud.jcl-job-teaser-title,
.jobTeaser_companyName___rhEr,
.popoverlist-no-list-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Verstecke visually-hidden Elemente */
[style*="position: absolute"][style*="width: 1px"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
