/* shared-styles.css */
/* Styles for new Banner and Poll features */

/* --- Site Banner --- */
#site-banner-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-banner {
    padding: 12px 20px;
    text-align: center;
    background-color: rgba(255, 0, 0, 0.15); /* Base transparent red inline */
    border: 1px solid #ff4444; /* Thin red outline */
    color: #FFFFFF; /* White text */
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);

    /* NEW: Adds transparent hazard stripes */
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.2) 10px,
        rgba(0, 0, 0, 0.2) 20px
    );
}

/* --- Polls Styling (Appearance Only) --- */
.polls-container h2 {
    font-size: 1.2em;
    color: #f0e68c;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-top: 0;
}

.poll-item {
    background-color: #1a1a1a;
    border: 1px solid #444;
    padding: 15px;
    margin-bottom: 20px;
}

.poll-item .poll-question {
    font-weight: bold;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.poll-item .poll-option {
    margin-bottom: 10px;
    font-size: 14px;
}

.poll-item .poll-option button {
    width: 100%;
    text-align: left;
    padding: 10px;
    background-color: #333;
    border: 1px solid #777;
    color: #FFF;
    cursor: pointer;
    transition: background-color 0.2s;
}

.poll-item .poll-option button:hover:not(:disabled) {
    background-color: #4e4e4e;
}

.poll-item .poll-option button:disabled {
    cursor: not-allowed;
    background-color: #222;
    color: #888;
}

.poll-results {
    font-size: 14px;
}

.poll-results .poll-option {
    position: relative;
    background-color: #2a2a2a;
    border: 1px solid #555;
    padding: 10px;
    overflow: hidden;
}

.poll-results .poll-option .result-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #88aaff;
    opacity: 0.2;
    z-index: 1;
}

.poll-results .poll-option .result-text {
    position: relative;
    z-index: 2;
}

.poll-results .total-votes {
    font-size: 12px;
    color: #AAA;
    text-align: right;
    margin-top: 10px;
}