/**
 * MEMORY MANAGER CSS
 * Styling for the memory/save management modal and UI
 *
 * © 2025 Ti-age.de Alle Rechte vorbehalten.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.memory-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.memory-btn:hover {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.memory-btn:active {
    transform: translateY(0);
}

.memory-icon {
    font-size: 16px;
}

.memory-text {
    display: none;
}

@media (min-width: 600px) {
    .memory-text {
        display: inline;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLEAR STORAGE BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.clear-storage-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.clear-storage-btn:hover {
    background: linear-gradient(135deg, #F87171, #EF4444);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.clear-storage-btn:active {
    transform: translateY(0);
}

.clear-icon {
    font-size: 16px;
}

.clear-text {
    display: none;
}

@media (min-width: 600px) {
    .clear-text {
        display: inline;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL STYLING
   ═══════════════════════════════════════════════════════════════════════════ */

.memory-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.memory-slot-count-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    margin-right: 12px;
}

.memory-info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.memory-info-box p {
    margin: 4px 0;
}

.memory-info-box strong {
    color: #60A5FA;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SLOT LIST
   ═══════════════════════════════════════════════════════════════════════════ */

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

.memory-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.memory-slot:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.memory-slot.empty {
    opacity: 0.7;
}

.memory-slot.filled {
    border-color: rgba(59, 130, 246, 0.2);
}

/* Slot Header */
.memory-slot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.memory-slot-number {
    font-weight: 600;
    font-size: 14px;
    color: #3B82F6;
}

.memory-slot-empty-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Slot Content */
.memory-slot-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.memory-slot-person {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.memory-person-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.memory-person-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.memory-person-info.empty {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.memory-timestamp {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.memory-archetyp {
    color: #60A5FA;
    font-weight: 500;
    text-transform: capitalize;
}

.memory-version {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-style: italic;
}

.memory-load-btn {
    margin-top: 8px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60A5FA;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.memory-load-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3B82F6;
}

/* NEU v3.3: Single Save Button für ICH/PARTNER */
.memory-save-single-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-save-single-btn:hover {
    background: rgba(16, 185, 129, 0.4);
    border-color: #10B981;
}

/* v4.3: Single Delete Button für ICH/PARTNER */
.memory-delete-single-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-delete-single-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: #EF4444;
}

/* Slot Actions */
.memory-slot-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.memory-save-btn,
.memory-load-both-btn,
.memory-delete-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.memory-save-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    border-color: #10B981;
    color: white;
}

.memory-save-btn:hover {
    background: linear-gradient(135deg, #34D399, #10B981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.memory-load-both-btn {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-color: #3B82F6;
    color: white;
}

.memory-load-both-btn:hover {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.memory-delete-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.memory-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════════════════════════ */

.memory-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.memory-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.memory-toast.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.memory-toast.warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    white-space: pre-line;
    text-align: center;
    max-width: 300px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PERSON BUTTONS (Anzeigen + Laden)
   ═══════════════════════════════════════════════════════════════════════════ */

.memory-person-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.memory-display-btn {
    flex: 1;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #A855F7;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-display-btn:hover {
    background: rgba(147, 51, 234, 0.3);
    border-color: #A855F7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DETAIL MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.memory-detail-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.memory-detail-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 51, 234, 0.3) transparent;
}

.memory-detail-body::-webkit-scrollbar {
    width: 6px;
}

.memory-detail-body::-webkit-scrollbar-track {
    background: transparent;
}

.memory-detail-body::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.3);
    border-radius: 3px;
}

.memory-detail-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.memory-detail-section:last-child {
    margin-bottom: 0;
}

.memory-detail-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #A855F7;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.memory-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.memory-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.memory-detail-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.memory-detail-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: capitalize;
}

/* Bedürfnisse / ProfileReview */
.memory-detail-category {
    margin-bottom: 12px;
}

.memory-detail-category:last-child {
    margin-bottom: 0;
}

.memory-detail-category-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    padding-left: 4px;
}

.memory-detail-needs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.memory-detail-need-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
}

.memory-detail-need-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.memory-detail-need-value {
    font-size: 12px;
    font-weight: 600;
    color: #A855F7;
    min-width: 28px;
    text-align: right;
}

.memory-detail-need-value.neutral {
    color: rgba(255, 255, 255, 0.4);
}

/* Raw Data Display */
.memory-detail-raw-data {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 11px;
    color: #A855F7;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

/* Collapsible Raw JSON Section */
.memory-detail-raw-json {
    display: none;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.memory-detail-raw-json pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 10px;
    color: #10B981;
    white-space: pre-wrap;
    word-break: break-all;
}

.memory-detail-section.expanded .memory-detail-raw-json {
    display: block;
}

.memory-detail-section.expanded .memory-detail-expand-icon {
    display: inline-block;
    transform: rotate(45deg);
}

.memory-detail-expand-icon {
    float: right;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.memory-detail-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .memory-modal {
        max-width: 95% !important;
        margin: 10px;
    }

    .memory-slot-content {
        grid-template-columns: 1fr;
    }

    .memory-slot-actions {
        flex-direction: column;
    }

    .memory-save-btn,
    .memory-load-both-btn,
    .memory-delete-btn {
        min-width: 100%;
    }

    .memory-btn {
        padding: 6px 10px;
    }

    .memory-icon {
        font-size: 14px;
    }

    /* Detail Modal Mobile */
    .memory-detail-modal {
        max-width: 95% !important;
        margin: 10px;
    }

    .memory-detail-grid {
        grid-template-columns: 1fr;
    }

    .memory-detail-needs-grid {
        grid-template-columns: 1fr;
    }

    .memory-person-buttons {
        flex-direction: column;
        gap: 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEEDS BREAKDOWN SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.memory-detail-breakdown {
    display: none;
    margin-top: 10px;
}

.memory-detail-section.expanded .memory-detail-breakdown {
    display: block;
}

.memory-breakdown-table {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
}

.memory-breakdown-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.memory-breakdown-header span {
    display: inline-block;
}

.memory-breakdown-header strong {
    color: #A855F7;
}

.memory-breakdown-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 10px;
    text-align: center;
}

.memory-breakdown-entries {
    width: 100%;
    min-width: 550px;
    border-collapse: collapse;
    font-size: 11px;
}

.memory-breakdown-entries thead th {
    text-align: left;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.memory-breakdown-entries tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.memory-breakdown-entries tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.memory-breakdown-entries td {
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.8);
}

.memory-breakdown-entries .breakdown-need-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-breakdown-entries .breakdown-base {
    color: #60A5FA;
    font-weight: 500;
    text-align: center;
}

.memory-breakdown-entries .breakdown-mod {
    text-align: center;
    font-weight: 500;
}

.memory-breakdown-entries .breakdown-mod.positive {
    color: #10B981;
}

.memory-breakdown-entries .breakdown-mod.negative {
    color: #EF4444;
}

.memory-breakdown-entries .breakdown-equals {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.memory-breakdown-entries .breakdown-final {
    color: #A855F7;
    font-weight: 600;
    text-align: center;
}

/* Mobile adjustments for breakdown */
@media (max-width: 768px) {
    .memory-breakdown-header {
        flex-direction: column;
        gap: 6px;
    }

    .memory-breakdown-entries {
        font-size: 10px;
    }

    .memory-breakdown-entries thead th,
    .memory-breakdown-entries td {
        padding: 4px 4px;
    }

    .memory-breakdown-entries .breakdown-need-name {
        max-width: 80px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEMORY MANAGER V2 - 8 Slots (ICH per Archetyp + 8 Partner)
   ═══════════════════════════════════════════════════════════════════════════ */

.memory-modal-v2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Zwei-Spalten-Layout */
.memory-v2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.memory-v2-column {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
}

.memory-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.memory-column-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.memory-ich-column .memory-column-title {
    color: #60A5FA;
}

.memory-partner-column .memory-column-title {
    color: #F472B6;
}

/* ICH Slots (Archetyp-basiert) */
.memory-ich-slots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memory-ich-slot {
    display: grid;
    grid-template-columns: 28px 70px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.memory-ich-slot:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

.memory-ich-slot.active {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

.memory-ich-slot.empty {
    opacity: 0.5;
}

.memory-ich-slot.filled {
    border-color: rgba(59, 130, 246, 0.2);
}

.memory-slot-icon {
    font-size: 16px;
    text-align: center;
}

.memory-slot-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.memory-slot-god {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.memory-slot-agod {
    font-size: 10px;
    color: #60A5FA;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.memory-slot-date {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.memory-slot-empty {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Partner Slots (unabhängig) */
.memory-partner-slots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memory-partner-slot {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.memory-partner-slot:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(244, 114, 182, 0.3);
}

.memory-partner-slot.empty {
    opacity: 0.6;
}

.memory-partner-slot.filled {
    border-color: rgba(244, 114, 182, 0.2);
}

.memory-partner-slot .memory-slot-number {
    font-size: 12px;
    font-weight: 600;
    color: #F472B6;
    text-align: center;
}

.memory-slot-archetyp {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.memory-slot-score {
    font-size: 13px;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* V2 Buttons */
.memory-ich-slot .memory-slot-actions,
.memory-partner-slot .memory-slot-actions {
    display: flex;
    gap: 4px;
}

.memory-ich-slot .memory-load-btn,
.memory-partner-slot .memory-load-btn {
    width: auto;
    min-width: 32px;
    padding: 4px 8px;
    margin-top: 0;
    font-size: 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 6px;
    cursor: pointer;
    color: #60A5FA;
    transition: all 0.2s ease;
}

.memory-ich-slot .memory-load-btn:hover,
.memory-partner-slot .memory-load-btn:hover {
    background: rgba(59, 130, 246, 0.25);
}

.memory-display-btn {
    min-width: 32px;
    padding: 4px 8px;
    font-size: 14px;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.25);
    color: #A855F7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-display-btn:hover {
    background: rgba(147, 51, 234, 0.25);
}

.memory-partner-slot .memory-save-btn {
    min-width: 32px;
    padding: 4px 8px;
    font-size: 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10B981;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-partner-slot .memory-save-btn:hover {
    background: rgba(16, 185, 129, 0.25);
}

.memory-partner-slot .memory-delete-btn {
    min-width: 32px;
    padding: 4px 8px;
    font-size: 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #EF4444;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-partner-slot .memory-delete-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

.memory-partner-slot .memory-slot-actions {
    display: flex;
    gap: 4px;
}

/* V2 Mobile */
@media (max-width: 768px) {
    .memory-modal-v2 {
        max-width: 95% !important;
    }

    .memory-v2-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .memory-ich-slot {
        grid-template-columns: 24px 60px 1fr auto;
    }

    .memory-slot-label {
        font-size: 11px;
    }

    .memory-slot-agod {
        display: none;
    }
}

/* Animation für Toast */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BEDÜRFNISSE LIST STYLES (Memory Manager V2)
   ═══════════════════════════════════════════════════════════════════════════ */

.memory-needs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 8px;
}

.memory-need-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
}

.memory-need-id {
    color: rgba(255, 255, 255, 0.7);
    font-family: monospace;
}

.memory-need-value {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.memory-need-value.high {
    background: rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.memory-need-value.medium {
    background: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.memory-need-value.low {
    background: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.memory-need-more {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-style: italic;
    margin-top: 4px;
}
