/* === DETEX Public Styles === */
.detex-voting-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px; }
.detex-voting-header { text-align: center; margin-bottom: 30px; }
.detex-title { font-size: 28px; font-weight: 700; margin-bottom: 10px; color: #1a1a1a; }
.detex-week-info { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; align-items: center; }
.detex-week-badge { background: #1a1a1a; color: #ffd700; padding: 4px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.detex-live-badge { background: #dc3545; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; text-transform: uppercase; animation: detex-pulse 1.5s infinite; }
@keyframes detex-pulse { 0%,100%{opacity:1;} 50%{opacity:.6;} }
.detex-venue { font-size: 14px; color: #555; }
.detex-status-open { background: #28a745; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.detex-status-closed { background: #dc3545; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* Filter Bar */
.detex-filter-bar { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.detex-filter-btn { background: #f0f0f0; border: 1px solid #ddd; padding: 6px 16px; border-radius: 20px; cursor: pointer; font-size: 14px; transition: all .2s; }
.detex-filter-btn:hover, .detex-filter-btn.active { background: #1a1a1a; color: #ffd700; border-color: #1a1a1a; }

/* Grid */
.detex-contestants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Card */
.detex-contestant-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: box-shadow .2s; }
.detex-contestant-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.detex-card-image { position: relative; height: 220px; background: #222; overflow: hidden; }
.detex-card-image img { width: 100%; height: 100%; object-fit: cover; }
.detex-placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; color: #ffd700; background: linear-gradient(135deg, #1a1a1a, #333); }
.detex-card-status { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.detex-card-body { padding: 16px; }
.detex-card-name { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: #1a1a1a; }
.detex-card-category { display: inline-block; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detex-card-bio { font-size: 14px; color: #555; margin-bottom: 12px; line-height: 1.4; }
.detex-card-video { margin-bottom: 12px; }
.detex-card-votes { display: flex; gap: 16px; margin-bottom: 12px; }
.detex-vote-count { text-align: center; flex: 1; }
.detex-vote-number { display: block; font-size: 22px; font-weight: 700; color: #1a1a1a; }
.detex-vote-label { font-size: 11px; color: #888; text-transform: uppercase; }
.detex-card-actions { display: flex; gap: 8px; }

/* Buttons */
.detex-btn { padding: 8px 18px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; flex: 1; text-align: center; }
.detex-btn-portfolio { background: #f0f0f0; color: #333; }
.detex-btn-portfolio:hover { background: #ddd; }
.detex-btn-vote { background: #ffd700; color: #1a1a1a; }
.detex-btn-vote:hover { background: #e6c200; }
.detex-btn-submit { background: #ffd700; color: #1a1a1a; width: 100%; padding: 12px; font-size: 16px; }
.detex-btn-submit:hover { background: #e6c200; }

/* Badges */
.detex-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.detex-badge-active { background: #d4edda; color: #155724; }
.detex-badge-fast_tracked { background: #fff3cd; color: #856404; }
.detex-badge-eliminated { background: #f8d7da; color: #721c24; }
.detex-badge-withdrawn { background: #e2e3e5; color: #383d41; }

/* Modal */
.detex-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; display: flex; align-items: center; justify-content: center; }
.detex-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.detex-modal-content { position: relative; background: #fff; border-radius: 12px; max-width: 520px; width: 90%; max-height: 85vh; overflow-y: auto; padding: 28px; z-index: 1; }
.detex-portfolio-content { max-width: 680px; }
.detex-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: #999; }
.detex-modal-close:hover { color: #333; }
.detex-modal-content h3 { font-size: 20px; margin: 0 0 16px; }

/* Vote Packs */
.detex-vote-packs { display: flex; flex-direction: column; gap: 10px; }
.detex-vote-pack-btn { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 2px solid #e0e0e0; border-radius: 8px; background: #fff; cursor: pointer; transition: all .2s; }
.detex-vote-pack-btn:hover { border-color: #ffd700; background: #fffbea; }
.detex-pack-votes { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.detex-pack-price { font-size: 16px; color: #555; }

/* Portfolio Modal Content */
.detex-portfolio-header { display: flex; gap: 16px; margin-bottom: 16px; align-items: flex-start; }
.detex-portfolio-avatar { width: 100px; height: 100px; border-radius: 8px; object-fit: cover; }
.detex-portfolio-info h3 { margin: 0 0 4px; font-size: 22px; }
.detex-portfolio-info .detex-card-category { margin-bottom: 4px; }
.detex-portfolio-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.detex-portfolio-table th, .detex-portfolio-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.detex-portfolio-table th { background: #f8f8f8; font-weight: 600; }

/* Leaderboard */
.detex-leaderboard { max-width: 800px; margin: 0 auto; padding: 20px; }
.detex-leaderboard-table { width: 100%; border-collapse: collapse; }
.detex-leaderboard-table th { background: #1a1a1a; color: #ffd700; padding: 12px; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.detex-leaderboard-table td { padding: 12px; border-bottom: 1px solid #eee; }
.detex-leaderboard-table .detex-top-1 td { background: #fffbea; }
.detex-leaderboard-table .detex-top-2 td { background: #f8f8f8; }
.detex-leaderboard-table .detex-top-3 td { background: #fef3f0; }
.detex-rank { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #f0f0f0; font-weight: 700; font-size: 14px; }
.detex-top-1 .detex-rank { background: #ffd700; color: #1a1a1a; }
.detex-top-2 .detex-rank { background: #c0c0c0; color: #1a1a1a; }
.detex-top-3 .detex-rank { background: #cd7f32; color: #fff; }
.detex-lb-contestant { display: flex; align-items: center; gap: 10px; }
.detex-lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* Submission Form */
.detex-submission-form-wrap { max-width: 600px; margin: 0 auto; padding: 20px; }
.detex-form-row { margin-bottom: 16px; }
.detex-form-row label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.detex-form-row input[type="text"],
.detex-form-row input[type="email"],
.detex-form-row input[type="tel"],
.detex-form-row input[type="number"],
.detex-form-row input[type="url"],
.detex-form-row select,
.detex-form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.detex-form-row textarea { resize: vertical; }
.detex-consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.detex-consent input { margin-top: 3px; }
#detex-form-message { margin-top: 12px; padding: 12px; border-radius: 6px; }
#detex-form-message.success { background: #d4edda; color: #155724; }
#detex-form-message.error { background: #f8d7da; color: #721c24; }

.detex-no-contestants { text-align: center; padding: 40px; color: #888; font-size: 16px; }

/* Responsive */
@media (max-width: 600px) {
    .detex-contestants-grid { grid-template-columns: 1fr; }
    .detex-card-image { height: 180px; }
    .detex-modal-content { padding: 20px; width: 95%; }
    .detex-portfolio-header { flex-direction: column; align-items: center; text-align: center; }
}
