/* TVET project marketplace */

.tv-page { min-height: 100vh; background: #f8fafc; font-family: 'Inter', sans-serif; }
.tv-loading { min-height: 50vh; display: flex; align-items: center; justify-content: center; color: #64748b; }
.tv-hero { position: relative; color: #fff; min-height: 220px; background: linear-gradient(135deg, rgba(30,27,75,0.92), rgba(79,70,229,0.65)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600&h=400&fit=crop') center/cover; }
.tv-hero-inner { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem; }
.tv-badge { display: inline-block; background: rgba(129,140,248,0.25); border: 1px solid #a5b4fc; color: #e0e7ff; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.3rem 0.75rem; border-radius: 9999px; margin-bottom: 0.75rem; }
.tv-hero h1 { margin: 0; font-size: 1.75rem; font-weight: 900; }
.tv-hero p { margin: 0.5rem 0 0; opacity: 0.85; max-width: 40rem; font-size: 0.9rem; }
.tv-stats { max-width: 72rem; margin: -1.5rem auto 0; padding: 0 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; position: relative; z-index: 2; }
@media (min-width: 768px) { .tv-stats { grid-template-columns: repeat(3, 1fr); } }
.tv-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.tv-stat strong { display: block; font-size: 1.5rem; font-weight: 900; color: #0f172a; }
.tv-stat span { font-size: 0.7rem; color: #64748b; }
.tv-container { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.tv-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1.5rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 1rem; }
.tv-tabs { display: flex; background: #f1f5f9; border-radius: 9999px; padding: 0.2rem; }
.tv-tabs button { padding: 0.4rem 1rem; border-radius: 9999px; border: none; font-size: 0.8rem; font-weight: 600; cursor: pointer; background: transparent; color: #64748b; }
.tv-tabs button.active { background: #4f46e5; color: #fff; }
.tv-controls input, .tv-controls select { padding: 0.5rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.875rem; }
.tv-controls input { flex: 1; min-width: 10rem; }
.tv-btn { padding: 0.5rem 1rem; border-radius: 9999px; border: 1px solid #e2e8f0; background: #fff; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: #334155; }
.tv-btn.primary { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; border: none; }
.tv-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tv-grid.projects { grid-template-columns: repeat(3, 1fr); } }
.tv-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem; transition: box-shadow 0.2s; }
.tv-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.tv-card.claimed { opacity: 0.85; }
.tv-card h3 { margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a; }
.tv-card-meta { font-size: 0.75rem; color: #64748b; margin: 0.35rem 0 0.75rem; }
.tv-score { display: inline-block; font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 9999px; background: #eef2ff; color: #4338ca; }
.tv-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.75rem 0; }
.tv-tag { font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 9999px; background: #f1f5f9; color: #475569; }
.tv-tag.open { background: #dcfce7; color: #166534; }
.tv-tag.claimed { background: #fef3c7; color: #92400e; }
.tv-card-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.tv-inst-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem; }
.tv-inst-card h3 { margin: 0; font-size: 0.95rem; font-weight: 800; }
.tv-claim-panel { background: #fff; border: 1px solid #c7d2fe; border-radius: 1rem; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 4px 16px rgba(79,70,229,0.1); }
.tv-claim-panel select, .tv-claim-panel textarea { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.875rem; margin: 0.35rem 0 0.75rem; box-sizing: border-box; font-family: inherit; }
.tv-claim-row { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .tv-claim-row { grid-template-columns: 1fr 1fr; } }
.tv-claim-item { background: #f8fafc; border-radius: 0.75rem; padding: 1rem; border: 1px solid #e2e8f0; }
.tv-empty { text-align: center; padding: 2.5rem 1rem; color: #64748b; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; }
