/* Blog Polls CSS - 2000s FriendRewind Styling */

.poll-creator {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #1e5a8a 100%);
    border: 2px solid #2c5aa0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
}

.poll-creator h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.poll-form-group {
    margin-bottom: 15px;
}

.poll-form-group label {
    display: block;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Comic Sans MS', cursive;
}

.poll-question-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.poll-options-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.poll-option-input {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.poll-option-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #4a5568;
    border-radius: 6px;
    margin-right: 10px;
}

.remove-option-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.remove-option-btn:hover {
    background: #ff3742;
}

.add-option-btn {
    background: #5dade2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px 0;
}

.add-option-btn:hover {
    background: #3498db;
}

.poll-settings {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.poll-checkbox {
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive;
}

.poll-actions {
    text-align: center;
    margin-top: 15px;
}

.create-poll-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.create-poll-btn:hover {
    background: linear-gradient(45deg, #218838, #1abc9c);
    transform: translateY(-1px);
}

.cancel-poll-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
}

.cancel-poll-btn:hover {
    background: #545b62;
}

/* Poll Display Styles */
.blog-poll {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #1e5a8a 100%);
    border: 3px solid #2c5aa0;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.4);
}

.poll-question h4 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.poll-question i {
    color: #ffd700;
    margin-right: 8px;
}

.poll-expiry {
    color: #ffe4e6;
    font-size: 12px;
    font-style: italic;
}

/* Poll Voting Styles */
.poll-voting {
    margin-top: 15px;
}

.poll-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poll-option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

.poll-option input[type="radio"],
.poll-option input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.3);
    accent-color: #ffd700;
}

.poll-option-text {
    color: #ffffff;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive;
}

.poll-vote-button {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.poll-vote-button:hover {
    background: linear-gradient(45deg, #357abd, #1e5a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.poll-login-required {
    text-align: center;
    color: #ffe4e6;
    font-style: italic;
    margin-top: 15px;
}

.poll-login-required a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

.poll-login-required a:hover {
    text-decoration: underline;
}

/* Poll Results Styles */
.poll-results {
    margin-top: 15px;
}

.poll-result-item {
    margin: 12px 0;
}

.poll-result-text {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Comic Sans MS', cursive;
}

.poll-result-bar {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    height: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.poll-result-fill {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    height: 100%;
    border-radius: 15px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.poll-result-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.poll-result-percent {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.poll-total-votes {
    text-align: center;
    color: #ffe4e6;
    font-style: italic;
    margin-top: 15px;
    font-size: 14px;
}

/* Toggle Poll Creator Button */
.toggle-poll-creator {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin: 10px 0;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
}

.toggle-poll-creator:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.6);
}

.toggle-poll-creator i {
    margin-right: 5px;
}
