/* ============================================
   Public Voting Buttons for Grid Items
   ============================================ */

/* Category and voting container */
.category-and-voting-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 0px;
}

.category-and-voting-container .category {
	margin-right: 0px !important;
	margin-bottom: 10px !important;
}

/* Public voting buttons in grid */
.public-voting-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin: 8px 25px 0px 15px;
}

.public-vote-btn {
    display: inline-block;
    padding: 5px 6px 5px 7px;
    background-color: #f04b4b;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 0px;
    font-weight: 500;
	letter-spacing: 0.05em !important;
    font-family: 'IBM Plex Sans';
    text-transform: uppercase;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.public-vote-btn .fas.fa-check {
	display:none;
}

.public-vote-btn:hover:not(:disabled) {
    background-color: #2D2337 !important;
  color: white !important;
}

.public-vote-btn:disabled,
.public-vote-btn-disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.public-vote-btn:disabled:hover,
.public-vote-btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.public-vote-btn i {
    margin-right: 6px;
}

/* Modal styling */
.public-vote-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.public-vote-modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 40px;
    border: none;
    border-radius: 0px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-vote-modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.public-vote-modal-close:hover,
.public-vote-modal-close:focus {
    color: #000;
}

.public-vote-modal-content h2 {
    font-family: 'IBM Plex Sans';
	font-size: 30px;
	font-weight: 500;
	margin: 0 0 15px 0;
	color: #004650;
}

.public-vote-modal-content p {
    font-family: 'IBM Plex Sans';
    font-size: 16px;
    color: #2D2337;
    margin: 0 0 0px 0;
    line-height: 1.6;
}

.public-vote-modal-content .form-actions {
  padding-top: 0px !important;
  border-top: 0px solid #ddd !important;
}

/* Form styling */
#public-vote-form .form-group {
    margin-bottom: 20px;
}

#public-vote-form label {
    display: block;
    font-family: 'IBM Plex Sans';
    font-size: 13px;
    font-weight: 600;
    color: #2D2337;
    margin-bottom: 5px;
}

#public-vote-form .form-checkbox label span {
  font-size: 13px !important;
  color: #2D2337 !important;
}

#public-vote-form input[type="text"],
#public-vote-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    font-family: 'IBM Plex Sans';
    font-size: 14px;
    border: 2px solid #ffffff;
    border-radius: 0px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#public-vote-form input[type="text"]:focus,
#public-vote-form input[type="email"]:focus {
    outline: none;
    border-color: #e0e0e0 !important;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
	justify-content: flex-start !important;
}

.vote-submit-btn, .vote-cancel-btn {
/*	flex: 1; */
	padding: 10px 10px !important;
	font-family: 'IBM Plex Sans';
	font-size: 16px !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: none;
	border-radius: 0px !important;
	cursor: pointer;
	transition: all 0.3s ease;
}

.vote-submit-btn {
    background-color: #f04b4b;
    color: white;
}

.vote-submit-btn:hover:not(:disabled) {
    background-color: #004650 !important;
}

.vote-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.vote-cancel-btn {
    background-color: #e0e0e0;
    color: #666;
}

.vote-cancel-btn:hover {
    background-color: #d0d0d0;
}

.vote-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 0px;
    font-family: 'IBM Plex Sans';
    font-size: 13px;
    font-weight: 500;
}

.vote-message.success {
    background-color: #d4f4e7;
    color: #0a5c36;
    border: 1px solid #3cf0d2;
}

.vote-message.error {
    background-color: #ffe0e0;
    color: #8b0000;
    border: 1px solid #f04b4b;
}

/* Responsive adjustments */
@media (max-width: 1585px) {
	.public-voting-buttons {
		margin: 0px 25px 0px 30px;
	}
}

@media (max-width: 1280px) {
	.public-voting-buttons {
		margin: 8px 25px 0px 15px;
	}
}

@media (max-width: 1080px) {
	.public-vote-btn {
		font-size: 11px !important;
	}
}

@media (max-width: 810px) {
	.public-voting-buttons {
		margin: 8px 25px 0px 15px;
	}
	
	.public-vote-btn {
		font-size: 11px !important;
	}
}

@media (max-width: 768px) {
    .category-and-voting-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .public-voting-buttons {
        margin-top: 10px;
    }
    
    .public-vote-btn {
        font-size: 11px;
        padding: 8px 14px;
    }
    
    .public-vote-modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .vote-submit-btn,
    .vote-cancel-btn {
        width: 100%;
    }
}

