/**
 * Travel Preferences CSS Erweiterungen für die WorkationHub Website
 *
 * Diese CSS-Regeln erweitern die bestehenden Stile für die Integration
 * der Reisepräferenzen-Funktionalität.
 */

/* Stilanpassungen für die Destinationskarten mit Score-Badges */
.destination-card {
    position: relative;
    overflow: visible !important;
}

/* Überarbeitete Match-Badge-Stile */
.match-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
}

.match-perfect {
    background-color: rgba(72, 199, 116, 0.2);
    color: #257942;
    border-left: 4px solid #48c774;
}

.match-good {
    background-color: rgba(80, 184, 60, 0.15);
    color: #2b722b;
    border-left: 4px solid #50b83c;
}

.match-moderate {
    background-color: rgba(255, 184, 14, 0.15);
    color: #946500;
    border-left: 4px solid #ffb80e;
}

.match-poor {
    background-color: rgba(241, 70, 104, 0.15);
    color: #cd0930;
    border-left: 4px solid #f14668;
}

/* Hover-Tipps für Match-Badges */
.has-tooltip {
    cursor: help;
}

.has-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: pre-line;
    z-index: 10;
    width: max-content;
    max-width: 250px;
    margin-bottom: 5px;
}

/* Überarbeitete Präferenzen-Button Stile */
.preferences-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    background-color: #f5f5f5;
    color: #4a4a4a;
    border: 1px solid #dbdbdb;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.preferences-button:hover {
    background-color: #efefef;
    border-color: #b5b5b5;
}

.preferences-button .icon {
    margin-right: 0.5rem;
}

/* Festes Präferenzen-Toggle (überarbeitet von oval zu rechteckig mit abgerundeten Ecken) */
#travel-preferences-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    background-color: #fff;
    border: 1px solid #efefef;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

#travel-preferences-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#travel-preferences-toggle .icon {
    margin-right: 0.5rem;
}

/* Anpassungen für Destination-Seiten */
.travel-score-card {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.travel-score-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Überarbeitete Darstellung der Reiseignung */
.destination-match-heading {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.destination-match-heading .icon {
    margin-right: 0.5rem;
}

.match-score-box {
    padding: 0.75rem 0;
}

.match-score-label {
    font-weight: 600;
    font-size: 1rem;
}

.match-score-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.match-progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0 1rem;
}

/* Tab Navigation im Reise-Präferenzen-Modal */
.tab-content {
    display: none;
}

.tab-content.is-active {
    display: block;
}

/* Formularelemente im Reise-Setup */
.months-grid, .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.slider {
    width: 100%;
}

.range-value {
    text-align: center;
    margin-top: 5px;
    font-weight: 500;
}

/* Anpassungen für Matching-Visualisierung */
.match-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.match-criterion {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    background-color: #f5f5f5;
    display: inline-flex;
    align-items: center;
}

.match-criterion.match-positive {
    background-color: rgba(72, 199, 116, 0.15);
    color: #257942;
}

.match-criterion.match-negative {
    background-color: rgba(241, 70, 104, 0.1);
    color: #cd0930;
}

.match-criterion .icon {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* Mismatches-Liste */
.match-mismatches {
    margin-top: 1rem;
    padding: 0.7rem;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #dbdbdb;
    font-size: 0.9rem;
}

.match-mismatches ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.match-mismatches li {
    margin-bottom: 0.25rem;
}

.match-actions {
    margin-top: 1rem;
    text-align: right;
}

/* Dunkelmodus-Anpassungen */
:root[data-color-mode="dark"] .match-badge, 
body.dark-mode .match-badge {
    border-left-width: 6px;
}

:root[data-color-mode="dark"] .match-perfect, 
body.dark-mode .match-perfect {
    background-color: rgba(72, 199, 116, 0.15);
    color: #9febc1;
}

:root[data-color-mode="dark"] .match-good, 
body.dark-mode .match-good {
    background-color: rgba(80, 184, 60, 0.15);
    color: #a0d990;
}

:root[data-color-mode="dark"] .match-moderate, 
body.dark-mode .match-moderate {
    background-color: rgba(255, 184, 14, 0.15);
    color: #ffd970;
}

:root[data-color-mode="dark"] .match-poor, 
body.dark-mode .match-poor {
    background-color: rgba(241, 70, 104, 0.15);
    color: #ff9ebc;
}

:root[data-color-mode="dark"] .preferences-button,
body.dark-mode .preferences-button {
    background-color: #2c2c2c;
    color: #f5f5f5;
    border-color: #3a3a3a;
}

:root[data-color-mode="dark"] .preferences-button:hover,
body.dark-mode .preferences-button:hover {
    background-color: #383838;
    border-color: #4a4a4a;
}

:root[data-color-mode="dark"] #travel-preferences-toggle,
body.dark-mode #travel-preferences-toggle {
    background-color: #2c2c2c;
    border-color: #3a3a3a;
    color: #f5f5f5;
}

:root[data-color-mode="dark"] .match-criterion,
body.dark-mode .match-criterion {
    background-color: rgba(255, 255, 255, 0.05);
}

:root[data-color-mode="dark"] .match-mismatches, 
body.dark-mode .match-mismatches {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.2);
}