/* ============================================
   COMPACT KI-MODUL STYLES - RESPONSIVE BUTTON
   ============================================ */

/* Toggle Container */
.craving-toggle-container {
    margin: 40px 0 20px;
    text-align: center;
}

/* Responsive Toggle Button */
.craving-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #6f42c1, #4a148c);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.craving-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.4);
}

.craving-toggle-btn:active {
    transform: translateY(-1px);
}

.craving-toggle-btn i:first-child {
    font-size: 18px;
    color: #ffd700;
    flex-shrink: 0;
}

.craving-toggle-btn .toggle-text {
    flex-grow: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 5px;
}

.craving-toggle-btn .toggle-icon {
    font-size: 14px;
    color: #ddd;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Expandiertes Modul */
.craving-module-compact {
    margin: 20px auto;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    max-width: 800px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

/* Header */
.craving-header-compact {
    text-align: center;
    margin-bottom: 25px;
}

.craving-header-compact h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.craving-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Fragen Grid */
.craving-questions-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.question-card-compact {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.question-card-compact:hover {
    background: #f1f3f4;
    transform: translateY(-2px);
}

.question-label {
    font-weight: 600;
    font-size: 15px;
    color: #495057;
    margin-bottom: 15px;
}

/* Icon Options */
.icon-options-compact {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-option-compact {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    max-width: 80px;
    flex: 1;
}

.icon-option-compact:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.icon-option-compact.selected {
    background: #e7f3ff;
    border-color: #007bff;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.2);
}

.icon-option-compact .icon {
    font-size: 22px;
    margin-bottom: 5px;
    display: block;
}

.icon-option-compact .label {
    font-size: 11px;
    color: #495057;
    font-weight: 500;
    line-height: 1.2;
}

/* Mood Emoji Buttons */
.mood-emoji-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-emoji-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.mood-emoji-btn.selected {
    background: #4CAF50;
    border-color: #45a049;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    animation: moodSelect 0.5s ease;
}

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

/* KI Button */
.craving-actions-compact {
    text-align: center;
    margin-top: 20px;
}

.ki-button-compact {
    padding: 15px 40px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.ki-button-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.ki-disclaimer-compact {
    margin-top: 10px;
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ergebnis */
.craving-result-compact {
    margin-top: 25px;
    animation: fadeIn 0.5s ease;
}

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

.suggestion-card-compact {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #28a745;
}

.suggestion-header-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.suggestion-emoji {
    font-size: 36px;
    flex-shrink: 0;
}

.suggestion-title-compact {
    flex-grow: 1;
    min-width: 0;
}

.suggestion-title-compact h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-price {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.suggestion-badge {
    background: #6f42c1;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.suggestion-reason-compact {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.suggestion-reason-compact p {
    margin: 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.suggestion-reason-compact i {
    color: #6f42c1;
    margin-right: 8px;
}

.suggestion-actions-compact {
    text-align: center;
}

.btn-view-compact {
    padding: 12px 30px;
    background: linear-gradient(135deg, #6f42c1, #8a63d2);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.3);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 300px;
    padding: 20px;
}

.loading-spinner {
    font-size: 50px;
    margin-bottom: 15px;
    color: #6f42c1;
}

.loading-content p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Highlight Effect f¸«är Men¸«ä-Items */
.highlighted {
    animation: highlightPulse 2s ease;
    box-shadow: 0 0 0 4px rgba(111, 66, 193, 0.3) !important;
    border-radius: 10px;
    position: relative;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(111, 66, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 66, 193, 0); }
}

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

@media (max-width: 768px) {
    .craving-toggle-btn {
        padding: 12px 20px;
        font-size: 15px;
        min-width: 180px;
        gap: 8px;
    }
    
    .craving-toggle-btn .toggle-text {
        font-size: 14px;
        white-space: normal;
        line-height: 1.2;
        max-height: 2.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .craving-toggle-btn i:first-child {
        font-size: 16px;
    }
    
    .craving-module-compact {
        padding: 20px;
        margin: 15px 0;
    }
    
    .craving-questions-compact {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .question-card-compact {
        padding: 15px;
    }
    
    .icon-option-compact {
        min-width: 60px;
        padding: 10px;
    }
    
    .icon-option-compact .icon {
        font-size: 20px;
    }
    
    .mood-emoji-btn {
        width: 45px;
        height: 45px;
    }
    
    .craving-header-compact h4 {
        font-size: 18px;
    }
    
    .suggestion-header-compact {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .suggestion-title-compact {
        text-align: center;
    }
    
    .suggestion-title-compact h5 {
        white-space: normal;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .craving-toggle-btn {
        width: 90%;
        max-width: 280px;
        padding: 10px 15px;
    }
    
    .craving-toggle-btn .toggle-text {
        font-size: 13px;
    }
    
    .craving-toggle-btn i:first-child {
        display: none;
    }
    
    .craving-module-compact {
        padding: 15px;
        border-radius: 12px;
    }
    
    .icon-options-compact {
        gap: 8px;
    }
    
    .icon-option-compact {
        min-width: 55px;
        padding: 8px;
    }
    
    .icon-option-compact .icon {
        font-size: 18px;
    }
    
    .icon-option-compact .label {
        font-size: 10px;
    }
    
    .mood-emoji-btn {
        width: 40px;
        height: 40px;
    }
    
    .mood-emoji-btn span {
        font-size: 18px;
    }
    
    .ki-button-compact {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
}

/* F¸«är sehr kleine Screens */
@media (max-width: 360px) {
    .craving-toggle-btn .toggle-text {
        font-size: 12px;
    }
    
    .craving-toggle-btn .toggle-icon {
        font-size: 12px;
    }
    
    .mood-emoji-btn {
        width: 35px;
        height: 35px;
    }
    
    .mood-emoji-btn span {
        font-size: 16px;
    }
}