/* =============================================================================
   TalentLMS Course Cards - Modern Design
   ============================================================================= */

/* Section Containers */
.tlsync-section {
    padding: 40px 0 50px 0;
    margin: 0;
}

.tlsync-section-enrolled {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tlsync-section-available {
    background: #ffffff;
    margin-top: 20px;
}

/* Section Titles */
.tlsync-section-title {
    max-width: 1200px;
    margin: 0 auto 24px auto;
    padding: 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

/* Grid Layout */
.tlsync-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
}

/* Card Base */
.tlsync-card {
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tlsync-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card Image */
.tlsync-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Card Inner Content */
.tlsync-card-inner {
    padding: 20px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tlsync-card h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

.tlsync-card p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Price Tag */
.tlsync-card .tlsync-price {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    color: #0d9488;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: auto;
}

/* Progress Bar */
.tlsync-progress-bar {
    width: 100%;
    background: #e2e8f0;
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
    margin: 8px 0;
}

.tlsync-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 100px;
    transition: width 0.5s ease;
}

.tlsync-progress-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

/* Button */
.tlsync-card a.tlsync-button {
    display: block;
    margin: 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tlsync-card a.tlsync-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}


.tlsync-card-enrolled a.tlsync-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tlsync-card-enrolled a.tlsync-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}



/* Status Badge (if needed) */
.tlsync-status {
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 100px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .tlsync-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tlsync-section-title {
        font-size: 24px;
        padding: 0 16px;
    }
    
    .tlsync-card img {
        height: 160px;
    }
}

/* Empty State */
.tlsync-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
}

/* Skeleton Loading (optional future use) */
.tlsync-card.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
