/* MineFun Unique Action Buttons */

/* Rate Button */
.rate-btn {
    position: relative;
}

.rate-btn:hover {
    color: #ffd700 !important;
}

/* Rating Modal */
.award-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.award-modal {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.award-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.award-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.award-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.award-close-btn:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
    transform: rotate(90deg);
}

.award-modal-content {
    padding: 2rem;
}

.rating-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.current-vote-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.08));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.current-vote-banner i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.current-vote-banner span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.current-vote-banner strong {
    color: #4CAF50;
    font-weight: 700;
}

.award-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.award-item {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.award-item.selected {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.selected-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
}

/* Rating-specific colors */
.rating-excellent:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 191, 255, 0.3);
}

.rating-great:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.rating-good:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.rating-okay:hover {
    background: rgba(158, 158, 158, 0.1);
    border-color: rgba(158, 158, 158, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(158, 158, 158, 0.3);
}

.rating-poor:hover {
    background: rgba(139, 69, 19, 0.1);
    border-color: rgba(139, 69, 19, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.3);
}

.rating-bad:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.3);
}

.award-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: awardFloat 3s ease-in-out infinite;
}

.award-item:hover .award-icon {
    animation: awardBounce 0.6s ease;
}

@keyframes awardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes awardBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.award-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.award-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.delete-vote-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 71, 87, 0.1);
    border: 1.5px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.delete-vote-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.delete-vote-btn:active {
    transform: translateY(0);
}

/* Post Ratings - Hidden, stored in data attribute */

@keyframes awardPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes ratingPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Ratings Statistics Modal */
.ratings-stats-modal {
    max-width: 550px;
}

.no-ratings {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.no-ratings i {
    font-size: 3rem;
    color: rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.no-ratings p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-ratings span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.ratings-summary {
    text-align: center;
    padding: 1.5rem;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.total-ratings {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.total-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4CAF50;
    line-height: 1;
}

.total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ratings-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.rating-stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.rating-stat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rating-stat-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rating-stat-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.rating-stat-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
}

.rating-stat-bar-container {
    position: relative;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: visible;
    display: flex;
    align-items: center;
}

.rating-stat-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.rating-stat-percentage {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Mobile Responsive for Stats Modal */
@media (max-width: 768px) {
    .ratings-stats-modal {
        width: 95%;
    }
    
    .ratings-summary {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .total-number {
        font-size: 2rem;
    }
    
    .ratings-breakdown {
        gap: 0.75rem;
    }
    
    .rating-stat-item {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .no-ratings {
        padding: 2.5rem 1.5rem;
    }
    
    .no-ratings i {
        font-size: 2.5rem;
    }
    
    .ratings-summary {
        padding: 1rem;
    }
    
    .total-number {
        font-size: 1.75rem;
    }
    
    .total-label {
        font-size: 0.85rem;
    }
    
    .rating-stat-icon {
        font-size: 1.25rem;
    }
    
    .rating-stat-name {
        font-size: 0.9rem;
    }
    
    .rating-stat-count {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .award-modal {
        width: 95%;
        max-width: none;
    }
    
    .award-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .award-modal-content {
        padding: 1.5rem;
    }
    
    .award-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .award-item {
        padding: 1.25rem 0.75rem;
    }
    
    .award-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .award-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .award-modal-content {
        padding: 1.25rem;
    }
    
    .award-grid {
        gap: 0.5rem;
    }
    
    .award-item {
        padding: 1rem 0.5rem;
    }
    
    .award-icon {
        font-size: 1.75rem;
    }
    
    .award-name {
        font-size: 0.85rem;
    }
}
