/* ========================================
   UNIVERSAL CARD DESIGN SYSTEM
   Clean, minimal card design without effects
   ======================================== */

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Base Card Styles */
.modern-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Card Header - Simple gradient */
.card-header-wave {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient variants */
.gradient-1 { background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%); }
.gradient-2 { background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%); }
.gradient-3 { background: linear-gradient(180deg, #991b1b 0%, #7f1d1d 100%); }
.gradient-4 { background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%); }
.gradient-5 { background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%); }
.gradient-6 { background: linear-gradient(180deg, #991b1b 0%, #b91c1c 100%); }

/* Card Icon */
.card-icon {
    font-size: 72px;
    color: white;
}

/* Badge Container */
.card-badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
}

.badge-verified {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}

.badge-count {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

/* Card Body */
.card-body-modern {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Type Tag */
.card-type-tag {
    display: inline-block;
    background: #fef3f2;
    color: #b91c1c;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Title */
.card-title-modern {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin: 0;
}

/* Card Description */
.card-description-modern {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Info Box */
.card-info-box {
    background: #f9fafb;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
}

.card-info-box div {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}

.card-info-box div:last-child {
    margin-bottom: 0;
}

.card-info-box strong {
    color: #374151;
    font-weight: 600;
    min-width: 55px;
}

.card-info-box i {
    color: #b91c1c;
    width: 14px;
    font-size: 12px;
}

/* File Type Badges */
.file-type-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-type-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-pdf {
    background: #fef3f2;
    color: #b91c1c;
}

.badge-image {
    background: #eff6ff;
    color: #1e40af;
}

/* Action Button */
.card-action-btn {
    width: 100%;
    padding: 14px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-modern i {
    font-size: 60px;
    margin-bottom: 15px;
    color: #d1d5db;
}

.empty-state-modern h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #6b7280;
    font-weight: 700;
}

.empty-state-modern p {
    font-size: 15px;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card-header-wave {
        height: 160px;
    }
    
    .card-icon {
        font-size: 64px;
    }
    
    .card-body-modern {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        padding: 0 15px;
    }
    
    .card-header-wave {
        height: 150px;
    }
    
    .card-badge-container {
        top: 12px;
        left: 12px;
        right: 12px;
    }
}