/* IKI Competition — Entry Detail Frontend CSS */
.iki-entry-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
.iki-entry-header {
    margin-bottom: 30px;
}

.iki-entry-code {
    display: inline-block;
    padding: 3px 10px;
    background: #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 8px;
}

.iki-entry-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 8px 0 12px;
    line-height: 1.3;
}

.iki-entry-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.iki-entry-category-tag {
    padding: 4px 12px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.iki-entry-author {
    color: #6b7280;
    font-size: 14px;
}

.iki-entry-team-tag {
    padding: 4px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    font-size: 13px;
}

/* Badges */
.iki-entry-badges {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

/* Description */
.iki-entry-description {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

/* Vote */
.iki-vote-section {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.iki-vote-count {
    font-size: 18px;
    margin-bottom: 10px;
}

.iki-vote-btn {
    padding: 12px 32px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.iki-vote-btn:hover {
    background: #dc2626;
}

.iki-vote-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

/* Files */
.iki-entry-files h2 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #1f2937;
}

/* Image Gallery */
.iki-image-gallery-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.iki-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s;
}

.iki-image-item img:hover {
    transform: scale(1.02);
}

/* Video */
.iki-video-player {
    width: 100%;
    max-height: 500px;
    border-radius: 8px;
}

/* PDF */
.iki-pdf-link {
    display: inline-block;
    padding: 12px 24px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.iki-pdf-link:hover {
    background: #e5e7eb;
}

/* Team */
.iki-team-section {
    margin-top: 30px;
}

.iki-team-list {
    list-style: none;
    padding: 0;
}

.iki-team-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

/* Back Link */
.iki-back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.iki-back-link a {
    color: #2563eb;
    text-decoration: none;
}

.iki-back-link a:hover {
    text-decoration: underline;
}

/* Contestant Dashboard */
.iki-contestant-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.iki-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.iki-btn-primary {
    background: #2563eb;
    color: #fff;
}

.iki-btn-primary:hover {
    background: #1d4ed8;
}

.iki-btn-small {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.iki-btn-small:hover {
    background: #f3f4f6;
}

.iki-btn-success {
    border-color: #10b981;
    color: #10b981;
}

.iki-btn-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.iki-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.iki-dashboard-table th,
.iki-dashboard-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.iki-dashboard-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
}

.iki-dashboard-login {
    text-align: center;
    padding: 40px;
}

/* Form */
.iki-entry-form {
    margin-top: 20px;
}

.iki-form-group {
    margin-bottom: 20px;
}

.iki-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.iki-form-group input[type="text"],
.iki-form-group input[type="email"],
.iki-form-group input[type="number"],
.iki-form-group textarea,
.iki-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.iki-form-group textarea {
    resize: vertical;
}

.iki-form-group small {
    color: #9ca3af;
    font-size: 12px;
}

.iki-form-note {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #1e40af;
}

.iki-form-actions {
    margin-top: 20px;
}

.iki-team-member-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.iki-team-member-row input {
    flex: 1;
    min-width: 120px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.required {
    color: #ef4444;
}

/* Alerts */
.iki-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.iki-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.iki-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.iki-alert-warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

/* Status colors */
.iki-status-draft {
    color: #6c757d;
}

.iki-status-submitted {
    color: #0d6efd;
}

.iki-status-pendingreview {
    color: #fd7e14;
}

.iki-status-approved {
    color: #198754;
}

.iki-status-published {
    color: #0dcaf0;
}

.iki-status-locked {
    color: #6f42c1;
}

.iki-status-needchanges {
    color: #ffc107;
}

.iki-status-rejected {
    color: #dc3545;
}

.iki-status-hidden {
    color: #adb5bd;
}