/**
 * Context Link Buttons CSS
 * Styling für intelligente Link-Buttons unter Chat-Antworten
 */

/* ===== Container ===== */
.context-buttons-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* ===== Basis-Button-Styles ===== */
.context-button {
    display: inline-block;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    outline: none;
}

.context-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.context-button:active {
    transform: translateY(0);
}

/* ===== Primär-Button (Wichtigster) ===== */
.context-button.primary {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #933834 0%, #933834 100%);
    color: white;
    padding: 14px 24px;
    margin-bottom: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.context-button.primary:hover {
    background: linear-gradient(135deg, #AC4843 0%, #AC4843 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ===== Sekundär-Buttons ===== */
.context-button.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.context-button.secondary:hover {
    background: #f8f9ff;
    border-color: #5568d3;
    color: #5568d3;
}

/* ===== Icon-Support ===== */
.context-button::before {
    margin-right: 4px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .context-button.primary {
        padding: 12px 20px;
        font-size: 0.875rem;
    }

    .context-button.secondary {
        display: block;
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
}

/* ===== Loading State (Optional) ===== */
.context-button.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

/* ===== Disabled State ===== */
.context-button:disabled,
.context-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Focus State (Accessibility) ===== */
.context-button:focus {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

/* ===== Dark Mode Support (Optional) ===== */
@media (prefers-color-scheme: dark) {
    .context-buttons-container {
        border-top-color: #3a3a3a;
    }

    .context-button.secondary {
        background: #2a2a2a;
        border-color: #667eea;
        color: #8b9eff;
    }

    .context-button.secondary:hover {
        background: #3a3a3a;
        border-color: #8b9eff;
    }
}

/* ===== Animation beim Einblenden ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.context-buttons-container {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== Stagger Animation für mehrere Buttons ===== */
.context-button:nth-child(1) {
    animation-delay: 0s;
}

.context-button:nth-child(2) {
    animation-delay: 0.05s;
}

.context-button:nth-child(3) {
    animation-delay: 0.1s;
}

.context-button:nth-child(4) {
    animation-delay: 0.15s;
}
