/**
 * Community Awards Public Styles
 */

/* Form Header & Footer (custom content from admin) */
.community-awards-form-header {
    clear: both;
    margin-bottom: 20px;
}

.community-awards-form-footer {
    margin-top: 20px;
}

/* Form Wrapper - Card Style */
.community-awards-nomination-form-wrap,
.community-awards-voting-form-wrap {
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #000;
    border-radius: 12px;
    padding: 25px 30px;
    box-sizing: border-box;
}

/* Category Title */
.community-awards-category-title {
    font-size: 1.5em;
    font-weight: 800 !important;
    margin-bottom: 10px;
    /* color set via inline CSS from settings */
}

.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 input[type="url"],
.community-awards-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.community-awards-form-field input[type="text"]:focus,
.community-awards-form-field input[type="email"]:focus,
.community-awards-form-field input[type="url"]: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: 0;
    padding: 0 10px 4px;
    border-left: 3px solid transparent;
    border-radius: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.community-awards-nominee-option:hover {
    background: #f8f9fa;
    border-left-color: #ccc;
}

.community-awards-nominee-option label {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    cursor: pointer;
}

.community-awards-nominee-option input[type="radio"] {
    margin-right: 10px;
    margin-top: 5px;
    transform: scale(1.1);
    flex-shrink: 0;
    flex-grow: 0;
}

.community-awards-nominee-option:has(input:checked) {
    background: #f0f6fc;
    border-left-color: #2271b1;
}

.community-awards-nominee-info {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.community-awards-nominee-name {
    font-size: 1.25em !important;
    display: inline;
    /* color and font-weight set via inline CSS from settings */
}

.community-awards-nominee-name a {
    text-decoration: none;
    /* color set via inline CSS from settings */
}

.community-awards-nominee-name a:hover {
    text-decoration: underline;
}

.community-awards-nominee-brand {
    color: #666;
    font-size: 1.25em;
}

a.community-awards-nominee-brand {
    text-decoration: none;
    color: #666 !important;
}

a.community-awards-nominee-brand:hover {
    text-decoration: underline;
    color: #666 !important;
}

.community-awards-nominee-handles {
    display: block;
    margin-top: 2px;
    font-size: 0.85em;
    color: #888;
}

.community-awards-nominee-handles::before {
    content: "(";
}

.community-awards-nominee-handles::after {
    content: ")";
}

.community-awards-nominee-handles .nominee-handle:last-child {
    margin-right: 0;
}

.nominee-handle {
    margin-right: 12px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

a.nominee-handle:hover {
    text-decoration: underline;
}

.nominee-twitter::before {
    content: "𝕏 ";
    font-weight: bold;
}

.nominee-bluesky::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 10px;
    margin-right: 3px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 568 501'%3E%3Cpath fill='%23333' d='M123.121 33.664C188.241 82.553 258.281 181.68 284 234.873c25.719-53.192 95.759-152.32 160.879-201.21C491.866-1.611 568-28.906 568 57.947c0 17.346-9.945 145.713-15.778 166.555-20.275 72.453-94.155 90.933-159.875 79.748C507.222 323.8 536.444 388.56 473.333 453.32c-119.86 122.992-172.272-30.859-185.702-70.281-2.462-7.227-3.614-10.608-3.631-7.733-.017-2.875-1.169.506-3.631 7.733-13.43 39.422-65.842 193.273-185.702 70.281-63.111-64.76-33.89-129.52 80.986-149.071-65.72 11.185-139.6-7.295-159.875-79.748C9.945 203.659 0 75.291 0 57.946 0-28.906 76.135-1.612 123.121 33.664z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.community-awards-nominee-description {
    display: block;
    color: #555;
    font-size: 0.9em;
    font-weight: 600 !important;
    margin-top: 2px;
    line-height: 1.5;
}

/* Thank You / Social Share */
.community-awards-thank-you {
    text-align: center;
    padding: 30px 20px;
}

.community-awards-thank-you-message {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.community-awards-share-prompt {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.community-awards-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.community-awards-share-twitter,
.community-awards-share-bluesky {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.community-awards-share-twitter,
.community-awards-share-buttons a.community-awards-share-twitter {
    background: #000;
    color: #fff !important;
    border: 2px solid #000;
}

.community-awards-share-twitter:hover,
.community-awards-share-buttons a.community-awards-share-twitter:hover {
    background: #333;
    border-color: #333;
    color: #fff !important;
}

.community-awards-share-twitter::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.community-awards-share-bluesky,
.community-awards-share-buttons a.community-awards-share-bluesky {
    background: #0085ff;
    color: #fff !important;
    border: 2px solid #0085ff;
}

.community-awards-share-bluesky:hover,
.community-awards-share-buttons a.community-awards-share-bluesky:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff !important;
}

.community-awards-share-bluesky::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 530' fill='white'%3E%3Cpath d='m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.community-awards-return-link {
    margin-top: 35px;
    margin-bottom: 0;
}

.community-awards-return-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    /* color and border set via inline CSS from settings */
}

.community-awards-return-link a::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.community-awards-return-link a:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* 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;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .community-awards-nomination-form-wrap,
    .community-awards-voting-form-wrap {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .community-awards-nominee-option {
        padding: 12px;
    }

    .community-awards-submit-btn {
        width: 100%;
    }

    .community-awards-share-twitter,
    .community-awards-share-bluesky {
        width: 100%;
        justify-content: center;
    }
}

/* Honeypot field — hidden from real users */
.community-awards-hp-wrap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}
