/**
 * FIODEL Recommender — Public Stylesheet
 * Lightweight, theme-friendly styles. No external dependencies.
 */

.fiodel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.fiodel-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fiodel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.fiodel-card-exploration {
    border-left: 3px solid #f59e0b;
}

.fiodel-card-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.fiodel-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fiodel-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
}

.fiodel-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.fiodel-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fiodel-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.fiodel-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.fiodel-card-title a {
    color: #1e293b;
    text-decoration: none;
}

.fiodel-card-title a:hover {
    color: #4f46e5;
}

.fiodel-card-mentor {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.fiodel-card-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-start;
}

.fiodel-card-badge-explore {
    background: #fef3c7;
    color: #92400e;
}

.fiodel-notice {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-left: 3px solid #4f46e5;
    border-radius: 4px;
    color: #475569;
}

/* Player wrapper */

.fiodel-player {
    margin: 1rem 0 1.5rem;
}

.fiodel-player iframe,
.fiodel-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* Progress list */

.fiodel-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.fiodel-progress-row {
    display: grid;
    grid-template-columns: 1fr 200px 50px;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 6px;
}

.fiodel-progress-title {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
}

.fiodel-progress-title:hover {
    color: #4f46e5;
}

.fiodel-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.fiodel-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    transition: width 0.3s ease;
}

.fiodel-progress-pct {
    text-align: right;
    font-weight: 600;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

/* Mentor profile */

.fiodel-mentor-profile {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 1rem 0;
}

.fiodel-mentor-name {
    margin: 0 0 0.5rem;
    color: #1e293b;
}

.fiodel-mentor-industry,
.fiodel-mentor-expertise {
    margin: 0.25rem 0;
    color: #475569;
}

.fiodel-mentor-credentials {
    margin: 1rem 0;
    color: #334155;
    font-style: italic;
}

@media (max-width: 600px) {
    .fiodel-progress-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .fiodel-progress-pct {
        text-align: left;
    }
}
