/* ==========================================================================
   dida-cards.css - Einheitliches Karten-Layout für Didaquiz
   ========================================================================== */

/* Grid Container für Tablets und Phones */
.dida-cards-grid {
    display: grid;
    /* Auf Handys 1 Spalte, auf Tablets automatisch 2 Spalten */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding-bottom: 30px;
}

/* Die Karte selbst */
.dida-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #8c8c8c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dida-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

/* Spezielle Stati (Entwurf & Kopie) */
.dida-card.draft-card {
    background-color: #fafafa;
    border-color: #e5e5e5;
    opacity: 0.85;
}
.dida-card.copy-card {
    border-color: #bfdbfe;
}

/* Innerer Container */
.dida-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header: Tags links, Icon rechts */
.dida-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.dida-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

/* Tag Styles */
.dida-tag {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    line-height: 1.2;
}
.dida-tag-level { background: #f3f4f6; color: #4b5563; }
.dida-tag-group { background: #fee2e2; color: #991b1b; cursor: pointer; }
.dida-tag-group:hover { background: #fca5a5; text-decoration: line-through; }
.dida-tag-standard { background: #e0e7ff; color: #1e40af; } /* Für public-exercises */

/* Titel */
.dida-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}
.dida-card-title a {
    color: #337ab7;
    text-decoration: none;
}
.dida-card-title a:hover {
    text-decoration: underline;
}

/* Dropdown Zuweisung */
.dida-card-assign {
    margin-top: auto; /* Drückt es nach unten, falls Titel kurz ist */
}
.dida-card-assign select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    height: 38px;
    padding: 6px 12px;
    color: #4b5563;
    background-color: #f9fafb;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

/* Footer: Aktionsleiste */
.dida-card-footer {
    background: #f9fafb;
    padding: 10px 15px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dida-card-actions-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Action Buttons */
.dida-action-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.dida-action-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

/* Spezifische Button Farben */
.dida-action-btn.btn-delete {
    color: #ef4444;
    background: #fef2f2;
}
.dida-action-btn.btn-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
}
.dida-action-btn.btn-copy-public {
    color: #059669;
    font-size: 14px; /* Text + Icon */
    font-weight: 500;
}
.dida-action-btn.btn-copy-public:hover {
    background-color: #d1fae5;
    color: #047857;
}

/* Helferklassen für Mobile Tab-Ansicht */
@media (max-width: 991px) {
    .mobile-transparent-wrapper {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
}