/**
 * Modern Cards Design System
 * Einheitliches Design für alle Dashboard-Cards
 * Basierend auf dem Coach-Info-Card Design
 */

/* Base Card Styles */
.modern-card-wrapper {
    position: relative;
    height: 100%;
}

.modern-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(34, 40, 49, 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
    min-height: 120px;
    transition: all 0.3s ease;
}

/* Hover Effect with Gradient Border */
.modern-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(34, 40, 49, 0.1) 0%, rgba(57, 62, 70, 0.1) 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover::before {
    opacity: 1;
}

/* Card Badge */
.modern-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: var(--color-sidebar);
    color: var(--color-text-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(34, 40, 49, 0.15);
    width: fit-content;
}

/* Card Title */
.modern-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Card Text */
.modern-card-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

/* Card Button */
.modern-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    background: var(--color-sidebar);
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.modern-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--color-sidebar-hover);
    color: var(--color-text-light);
}

.modern-card-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 40, 49, 0.2);
}

/* Icon Buttons */
.modern-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-sidebar);
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.15rem;
    border: none;
}

.modern-icon-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--color-sidebar-hover);
}

/* Collapsible Card Header */
.modern-card-header {
    cursor: pointer;
    user-select: none;
}

.modern-card-header .chevron-rotate {
    transition: transform 0.3s ease;
}

.modern-card-header[aria-expanded="true"] .chevron-rotate {
    transform: rotate(180deg);
}

/* Small Text/Meta */
.modern-card-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Divider */
.modern-card-divider {
    border: 0;
    border-top: 1px solid rgba(34, 40, 49, 0.1);
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 991px) {
    .modern-card {
        padding: 1.25rem;
    }

    .modern-card-title {
        font-size: 1.2rem;
    }

    .modern-card-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .modern-card {
        padding: 1rem;
        min-height: 100px;
    }

    .modern-card-title {
        font-size: 1.1rem;
    }

    .modern-card-text {
        font-size: 0.8rem;
    }

    .modern-card-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .modern-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Special: Card with Image Header */
.modern-card-image {
    position: relative;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.04));
}

.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Badge Variants */
.modern-card-badge.badge-primary {
    background: #3b82f6;
}

.modern-card-badge.badge-success {
    background: #10b981;
}

.modern-card-badge.badge-warning {
    background: #f59e0b;
}

.modern-card-badge.badge-danger {
    background: #ef4444;
}

.modern-card-badge.badge-info {
    background: #06b6d4;
}
