/**
 * Community Awards Public Styles
 */

/* Form Wrapper */
.community-awards-nomination-form-wrap,
.community-awards-voting-form-wrap {
    max-width: 600px;
    margin: 20px 0;
}

/* Category Title */
.community-awards-category-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.community-awards-category-description {
    color: #666;
    margin-bottom: 20px;
}

/* Form Fields */
.community-awards-form-field {
    margin-bottom: 20px;
}

.community-awards-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.community-awards-form-field .required {
    color: #d63638;
}

.community-awards-form-field .optional {
    font-weight: 400;
    color: #666;
    font-size: 0.9em;
}

.community-awards-form-field input[type="text"],
.community-awards-form-field input[type="email"],
.community-awards-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.community-awards-form-field input:focus,
.community-awards-form-field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Submit Button */
.community-awards-form-submit {
    margin-top: 20px;
}

.community-awards-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.community-awards-submit-btn:hover {
    background: #135e96;
}

.community-awards-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Form Messages */
.community-awards-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
}

.community-awards-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.community-awards-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Notice Messages */
.community-awards-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffeeba;
}

.community-awards-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Admin Preview Notice */
.community-awards-admin-preview-notice {
    background: #cce5ff;
    color: #004085;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #b8daff;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Voting Form - Nominees List */
.community-awards-nominees-list {
    margin: 20px 0;
}

.community-awards-nominee-option {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.2s, background-color 0.2s;
}

.community-awards-nominee-option:hover {
    border-color: #2271b1;
    background: #f8f9fa;
}

.community-awards-nominee-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.community-awards-nominee-option input[type="radio"] {
    margin-top: 3px;
    margin-right: 12px;
    transform: scale(1.2);
}

.community-awards-nominee-option input[type="radio"]:checked + .community-awards-nominee-info {
    color: #2271b1;
}

.community-awards-nominee-option:has(input:checked) {
    border-color: #2271b1;
    background: #e8f4fc;
}

.community-awards-nominee-info {
    display: flex;
    flex-direction: column;
}

.community-awards-nominee-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

.community-awards-nominee-brand {
    color: #666;
    font-size: 0.95em;
    margin-top: 2px;
}

.community-awards-nominee-description {
    color: #555;
    font-size: 0.9em;
    margin-top: 8px;
    line-height: 1.5;
}

/* Thank You / Social Share */
.community-awards-thank-you {
    text-align: center;
    padding: 30px;
    background: #d4edda;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

.community-awards-thank-you h4 {
    color: #155724;
    margin-bottom: 10px;
}

.community-awards-social-share {
    margin-top: 15px;
}

.community-awards-share-twitter {
    display: inline-block;
    background: #1da1f2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.community-awards-share-twitter:hover {
    background: #0c85d0;
    color: #fff;
}

/* Nominees List (display shortcode) */
.community-awards-nominees-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.community-awards-nominees-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.community-awards-nominees-list li:last-child {
    border-bottom: none;
}

.community-awards-nominees-list .community-awards-brand {
    color: #666;
    font-size: 0.9em;
}

.community-awards-nominees-list .community-awards-twitter {
    color: #1da1f2;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.9em;
}

.community-awards-nominees-list .community-awards-twitter:hover {
    text-decoration: underline;
}

.community-awards-nominees-list .community-awards-description {
    color: #555;
    font-size: 0.9em;
    margin-top: 5px;
    line-height: 1.5;
}

/* Results */
.community-awards-results ol {
    padding-left: 25px;
}

.community-awards-results li {
    padding: 8px 0;
}

.community-awards-results .community-awards-brand {
    color: #666;
    font-size: 0.9em;
}

.community-awards-results .community-awards-vote-count {
    color: #666;
    font-size: 0.85em;
    margin-left: 10px;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .community-awards-nomination-form-wrap,
    .community-awards-voting-form-wrap {
        padding: 0 10px;
    }

    .community-awards-nominee-option {
        padding: 12px;
    }

    .community-awards-submit-btn {
        width: 100%;
    }
}
