/* App-Demo CSS Styles für CookMind Website */

/* Base Modal Styles */
.app-demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-demo-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-container {
    background-color: white;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    margin: 30px 0;
}

.app-demo-modal.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 24px;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header .close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-header .close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.app-screen {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* KI-Küchenassistent Demo Styles */
.ai-assistant-chat {
    display: flex;
    flex-direction: column;
    height: 400px;
    background-color: #f5f7fa;
    border-radius: 12px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease-out;
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message {
    align-self: flex-start;
    background-color: white;
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ai-thinking {
    align-self: flex-start;
    background-color: white;
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.6;
}

.thinking-dot:nth-child(1) {
    animation: pulseDot 1.4s infinite;
}

.thinking-dot:nth-child(2) {
    animation: pulseDot 1.4s infinite 0.2s;
}

.thinking-dot:nth-child(3) {
    animation: pulseDot 1.4s infinite 0.4s;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    font-size: 14px;
}

.chat-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background-color: var(--primary-dark);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.quick-question {
    background-color: rgba(var(--primary-hue), 60%, 97%, 0.8);
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-hue), 70%, 50%, 0.2);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-question:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Rezepterkennung Demo Styles */
.scan-demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.scan-preview {
    width: 100%;
    max-width: 400px;
    height: 280px;
    background-color: #eaeaea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.scan-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.scan-controls {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.scan-controls button {
    flex: 1;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.scan-controls button:hover {
    background-color: var(--primary-dark);
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.scan-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.scan-progress {
    width: 80%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
}

.scan-progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.scan-result {
    display: none;
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.scan-result.active {
    display: block;
}

.scan-result h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Wochenplaner Demo Styles */
.weekly-planner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-column {
    background-color: #f5f7fa;
    border-radius: 12px;
    overflow: hidden;
}

.day-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
}

.day-meals {
    min-height: 200px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.meal-slot {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.recipes-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.recipe-item {
    background-color: white;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: move;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.recipe-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.recipe-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.recipe-item.dragging {
    opacity: 0.5;
}

.shopping-list {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.shopping-list h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shopping-list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.shopping-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.shopping-item:last-child {
    border-bottom: none;
}

.shopping-item input[type="checkbox"] {
    margin: 0;
}

/* Was Koche ich heute Demo Styles */
.cook-today-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mood-selector,
.difficulty-selector,
.season-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.mood-option,
.difficulty-option,
.season-option {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100px;
}

.mood-option:hover,
.difficulty-option:hover,
.season-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mood-option.selected,
.difficulty-option.selected,
.season-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-hue), 80%, 95%, 0.3);
    box-shadow: 0 4px 10px rgba(var(--primary-hue), 80%, 60%, 0.2);
}

.mood-icon,
.difficulty-icon,
.season-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.mood-text,
.difficulty-text,
.season-text {
    font-size: 14px;
    font-weight: 600;
}

.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.recipe-suggestion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.recipe-suggestion.active {
    opacity: 1;
    transform: translateY(0);
}

.recipe-suggestion img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.recipe-details {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.recipe-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

/* Share & Discover Demo Styles */
.community-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-post {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.community-post:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.post-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user-info {
    display: flex;
    flex-direction: column;
}

.post-username {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

.post-date {
    font-size: 12px;
    color: var(--text-light);
}

.post-content {
    padding: 16px;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 10px;
    border-radius: 20px;
}

.post-action:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.post-action.active {
    color: var(--primary-color);
}

/* Device Sync Demo Styles */
.device-sync-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.devices-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.device-icon {
    font-size: 3rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.device-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.device.active .device-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.device.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.sync-animation {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0;
    transform: translateY(-50%);
}

.sync-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
}

.recipe-cards-sync {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
}

.recipe-card-sync {
    width: 120px;
    height: 160px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.recipe-card-sync.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.recipe-card-image {
    height: 80px;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
}

.recipe-card-content {
    padding: 8px;
}

.recipe-card-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.recipe-card-info {
    font-size: 10px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Allgemeine Animation Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .days-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-container {
        width: 95%;
        margin: 20px 0;
    }
    
    .devices-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .sync-animation {
        transform: rotate(90deg);
        width: 200px;
        left: 50%;
        top: 50%;
    }
}

@media (max-width: 576px) {
    .days-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mood-selector,
    .difficulty-selector,
    .season-selector {
        justify-content: space-around;
    }
    
    .mood-option,
    .difficulty-option,
    .season-option {
        width: 80px;
    }
    
    .recipe-detail {
        font-size: 12px;
    }
} 