/* Conspiracy of the Week - Contest Styles */
/* Designed for TMDC dark red aesthetic */

.cotw-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Status Bar */
.cotw-status-bar {
    background: #1a0000;
    border: 1px solid #8B0000;
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cotw-spots strong {
    font-size: 28px;
    color: #cc0000;
}

.cotw-progress-bar {
    background: #333;
    border-radius: 4px;
    height: 8px;
    width: 200px;
    margin: 6px 0;
    overflow: hidden;
}

.cotw-progress-fill {
    background: #8B0000;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cotw-deadline {
    color: #ccc;
    font-size: 14px;
}

/* Submission Form */
.cotw-submission-form {
    background: #1a0000;
    border: 1px solid #8B0000;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.cotw-submission-form h3 {
    color: #cc0000;
    margin-top: 0;
    font-size: 22px;
}

.cotw-field {
    margin-bottom: 16px;
}

.cotw-field label {
    display: block;
    margin-bottom: 6px;
    color: #ddd;
    font-weight: bold;
    font-size: 14px;
}

.cotw-field input[type="text"],
.cotw-field input[type="email"],
.cotw-field textarea {
    width: 100%;
    background: #2d0000;
    border: 1px solid #8B0000;
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
}

.cotw-field input:focus,
.cotw-field textarea:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 2px rgba(139,0,0,0.3);
}

.cotw-field-note {
    font-weight: normal;
    color: #999;
    font-size: 12px;
}

.cotw-char-count {
    font-weight: normal;
    color: #999;
    font-size: 12px;
}

.cotw-word-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.cotw-word-count.over-limit {
    color: #ff4444;
}

.cotw-field input[type="file"] {
    color: #ccc;
    font-size: 14px;
}

.cotw-photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 8px;
    border: 2px solid #8B0000;
}

.cotw-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
}

.cotw-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.cotw-submit-btn {
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cotw-submit-btn:hover {
    background: #cc0000;
}

.cotw-submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.cotw-form-messages {
    margin-top: 12px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.cotw-form-messages.success {
    background: #003300;
    border: 1px solid #006600;
    color: #66ff66;
    display: block;
}

.cotw-form-messages.error {
    background: #330000;
    border: 1px solid #8B0000;
    color: #ff6666;
    display: block;
}

/* Entries Grid */
.cotw-entries-grid h3 {
    color: #cc0000;
    font-size: 20px;
    margin-bottom: 16px;
}

.cotw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cotw-entry-card {
    background: #1a0000;
    border: 1px solid #8B0000;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.cotw-entry-card:hover {
    transform: translateY(-2px);
    border-color: #cc0000;
}

.cotw-entry-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cotw-entry-info {
    padding: 16px;
}

.cotw-entry-info h4 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #fff;
}

.cotw-breed {
    color: #999;
    font-size: 13px;
    margin: 0 0 10px;
    font-style: italic;
}

.cotw-statement {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Voting */
.cotw-voting-header {
    background: #1a0000;
    border: 2px solid #8B0000;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: center;
}

.cotw-voting-header h2 {
    color: #cc0000;
    margin: 0 0 8px;
}

#cotw-votes-remaining {
    color: #cc0000;
    font-size: 24px;
}

.cotw-vote-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cotw-vote-count {
    color: #ccc;
    font-size: 13px;
}

.cotw-vote-btn {
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
    white-space: nowrap;
}

.cotw-vote-btn:hover:not(:disabled) {
    background: #cc0000;
}

.cotw-vote-btn.voted,
.cotw-vote-btn:disabled {
    background: #333;
    color: #666;
    cursor: default;
}

.cotw-vote-btn.just-voted {
    background: #006600;
    color: #fff;
}

/* Leaderboard */
.cotw-leaderboard {
    background: #1a0000;
    border: 1px solid #8B0000;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.cotw-leaderboard h3 {
    color: #cc0000;
    margin: 0 0 12px;
}

.cotw-leader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #2d0000;
}

.cotw-leader:last-child {
    border-bottom: none;
}

.cotw-rank {
    color: #8B0000;
    font-weight: bold;
    font-size: 16px;
    width: 30px;
    flex-shrink: 0;
}

.cotw-leader-name {
    flex: 1;
    color: #fff;
}

.cotw-leader-votes {
    color: #cc0000;
    font-weight: bold;
}

/* Leaderboard Widget */
.cotw-leaderboard-widget {
    background: #1a0000;
    border: 1px solid #8B0000;
    border-radius: 8px;
    padding: 16px;
}

.cotw-leaderboard-widget h4 {
    color: #cc0000;
    margin: 0 0 12px;
    font-size: 15px;
}

.cotw-leader-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #2d0000;
}

.cotw-leader-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #8B0000;
}

.cotw-leader-row .cotw-leader-name {
    font-size: 13px;
    flex: 1;
}

.cotw-leader-row .cotw-leader-votes {
    font-size: 13px;
}

/* Winner Announcement */
.cotw-winner-announcement {
    text-align: center;
    padding: 32px;
}

.cotw-winner-announcement h2 {
    color: #cc0000;
    font-size: 32px;
    margin-bottom: 24px;
}

.cotw-winner-card {
    background: #1a0000;
    border: 2px solid #8B0000;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    margin: 0 auto 24px;
}

.cotw-winner-card img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 2px solid #8B0000;
}

.cotw-winner-card h3 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 4px;
}

.cotw-vote-total {
    color: #cc0000;
    font-size: 18px;
    font-weight: bold;
}

/* Waitlist Form */
.cotw-waitlist-form {
    background: #1a0000;
    border: 1px solid #8B0000;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    margin: 20px auto;
}

.cotw-waitlist-form h4 {
    color: #cc0000;
    margin: 0 0 8px;
}

.cotw-waitlist-form input[type="text"],
.cotw-waitlist-form input[type="email"] {
    width: 100%;
    background: #2d0000;
    border: 1px solid #8B0000;
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.cotw-waitlist-form button {
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 14px;
    transition: background 0.2s;
}

.cotw-waitlist-form button:hover {
    background: #cc0000;
}

.cotw-notice {
    background: #1a0000;
    border: 1px solid #8B0000;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.cotw-no-entries {
    color: #999;
    text-align: center;
    padding: 32px;
}

/* Responsive */
@media (max-width: 600px) {
    .cotw-status-bar {
        flex-direction: column;
        gap: 12px;
    }
    .cotw-grid {
        grid-template-columns: 1fr;
    }
    .cotw-progress-bar {
        width: 100%;
    }
}
