/* Fund View Styles - ZeckenFinder */

/* ===========================================
   FUND MAIN LAYOUT - Verwendet map-main Klassen
   =========================================== */
/* Die Fund-View verwendet die gleichen Klassen wie die Karte */
/* map-main, map-container, map-sidebar, map-wrapper sind bereits in map-styles.css definiert */

/* ===========================================
   FUND SPEZIFISCHE STYLES
   =========================================== */
.fund-details {
    margin-bottom: 24px;
}

.fund-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fund-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.fund-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c5530;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.fund-date {
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.fund-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.info-value {
    color: #2c5530;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

/* Risk Level Styles */
.risk-low {
    color: #28a745 !important;
    font-weight: 600;
}

.risk-medium {
    color: #ffc107 !important;
    font-weight: 600;
}

.risk-high {
    color: #fd7e14 !important;
    font-weight: 600;
}

.risk-critical {
    color: #dc3545 !important;
    font-weight: 600;
}

.risk-critical, .risk-high, .risk-medium, .risk-low {
    color: #fff !important;
    /* Optional: für bessere Lesbarkeit auch Schatten */
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ===========================================
   FUND ACTIONS
   =========================================== */
.fund-actions {
    margin-bottom: 24px;
}

.fund-actions h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5530;
    margin: 0 0 16px 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* ===========================================
   NEARBY REPORTS
   =========================================== */
.nearby-reports {
    margin-bottom: 24px;
}

.nearby-reports h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5530;
    margin: 0 0 16px 0;
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border-left: 3px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #222;
}

.report-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.report-type {
    background: #43a047;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 1px 4px rgba(67,160,71,0.08);
    display: inline-block;
}

.report-type[aria-label="Hotspot"], .report-type, .report-type.hotspot {
    background: #43a047;
    color: #fff;
}

.report-type[aria-label="Fund"], .report-type.tick {
    background: #1976d2;
    color: #fff;
}

.report-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.report-location {
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.report-risk {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
    margin-bottom: 2px;
    letter-spacing: 1px;
    color: #fff;
}

.risk-low {
    background: #43a047;
}
.risk-medium {
    background: #ffb300;
}
.risk-high {
    background: #fb8c00;
}
.risk-critical {
    background: #e53935;
}

.report-distance {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* ===========================================
   FUND NOT FOUND
   =========================================== */
.fund-not-found {
    text-align: center;
    padding: 40px 20px;
}

.error-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-card i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-card h2 {
    font-size: 1.5rem;
    color: #2c5530;
    margin: 0 0 12px 0;
}

.error-card p {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 1rem;
}

/* ===========================================
   FUND MAP ANPASSUNGEN
   =========================================== */
/* Die Karte verwendet die gleichen Styles wie map-styles.css */
/* Nur spezifische Anpassungen für die Fund-View */

#fund-map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ===========================================
   CUSTOM MARKER STYLES
   =========================================== */
.custom-marker {
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-popup {
    text-align: center;
    min-width: 200px;
}

.marker-popup h3 {
    color: #2c5530;
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.marker-popup p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: #666;
}

.marker-popup strong {
    color: #2c5530;
}

/* ===========================================
   RESPONSIVE DESIGN - Verwendet map-styles.css
   =========================================== */
/* Die responsive Styles werden von map-styles.css übernommen */
/* Nur spezifische Anpassungen für die Fund-View */

@media (max-width: 768px) {
    .fund-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fund-header h2 {
        font-size: 1.2rem;
        min-width: auto;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .info-value {
        max-width: 100%;
        text-align: left;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .fund-card {
        padding: 16px;
    }
    
    .error-card {
        padding: 24px 16px;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .report-item {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .fund-card {
        border-left-width: 6px;
    }
    
    .report-item {
        border-left-width: 5px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode support - DEAKTIVIERT wegen Lesbarkeitsproblemen */
/* 
@media (prefers-color-scheme: dark) {
    // Alle Dark Mode Regeln entfernt
}
*/

/* Manueller Dark Mode - Nur wenn .dark-mode Klasse gesetzt ist */
.dark-mode {
    .fund-card,
    .report-item,
    .error-card {
        background: #1a202c !important;
        color: #ffffff !important;
        border-color: #4a5568 !important;
    }
    
    .fund-header h2 {
        color: #ffffff !important;
    }
    
    .info-label {
        color: #e2e8f0 !important;
    }
    
    .nearby-reports h2 {
        color: #ffffff !important;
    }
    
    .fund-actions h2 {
        color: #ffffff !important;
    }
    
    .info-value {
        color: #e2e8f0 !important;
    }
    
    .report-date {
        background: #4CAF50 !important;
        color: white !important;
    }
    
    .report-risk {
        color: #ffffff !important;
    }
    
    .report-distance {
        color: #a0aec0 !important;
    }
    
    .error-card h2 {
        color: #ffffff !important;
    }
    
    .error-card p {
        color: #e2e8f0 !important;
    }
    
    .marker-popup h3 {
        color: #ffffff !important;
    }
    
    .marker-popup p {
        color: #e2e8f0 !important;
    }
    
    .marker-popup strong {
        color: #ffffff !important;
    }
    
    .risk-low {
        background: #38a169 !important;
        color: #ffffff !important;
    }
    
    .risk-medium {
        background: #d69e2e !important;
        color: #ffffff !important;
    }
    
    .risk-high {
        background: #dd6b20 !important;
        color: #ffffff !important;
    }
    
    .risk-critical {
        background: #e53e3e !important;
        color: #ffffff !important;
    }
} 