/* Vote page specific styles */

.vote-wrapper {
    display: block;
    margin: 2rem auto;
    width: 57.5%;
}

.vote-section {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vote-section h2 {
    width: 100%;
    margin: 0 0 0.5rem 0;
    color: #3a3a3a;
}

.vote-section > p {
    width: 100%;
    margin: 0.5rem 0 1.5rem 0;
}

.current-rating {
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.current-rating h3 {
    width: 100%;
    margin: 0;
    color: #3a3a3a;
    font-size: 1.2rem;
}

.avg-rating {
    color: #ff8c42;
    font-weight: 700;
    font-size: 1.4rem;
}

.vote-count {
    width: 100%;
    margin: 0.5rem 0 0 0;
    color: #5a6c7d;
    font-style: italic;
}

.voting-interface {
    border-top: 2px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.voting-interface h3 {
    width: 100%;
    margin: 0 0 1rem 0;
    color: #3a3a3a;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.star {
    font-size: 3rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #ff8c42;
    transform: scale(1.15);
}

.star.selected {
    color: #ff8c42;
}

.rating-label {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0 1.5rem 0;
    color: #5a6c7d;
    font-size: 0.95rem;
}

.voter-info {
    margin: 1.5rem 0;
}

.voter-name,
.voter-comment {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.voter-name:focus,
.voter-comment:focus {
    outline: none;
    border-color: #4a90e2;
}

.voter-comment {
    resize: vertical;
    min-height: 80px;
}

.submit-vote {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: Inter, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.submit-vote:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b1a, #ff5500);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
}

.submit-vote:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vote-message {
    width: 100%;
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.vote-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vote-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.votes-list {
    border-top: 2px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.votes-list h3 {
    width: 100%;
    margin: 0 0 1.5rem 0;
    color: #3a3a3a;
}

.votes-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote-item {
    background: #f9f9f9;
    border: 1px solid rgba(0,0,0,0.1);
    border-left: 4px solid #ff8c42;
    border-radius: 6px;
    padding: 1rem;
}

.vote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.voter-name-display {
    font-weight: 600;
    color: #3a3a3a;
}

.vote-rating {
    color: #ff8c42;
    font-weight: 700;
    font-size: 1.1rem;
}

.vote-comment {
    color: #4a90e2;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.vote-timestamp {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.no-votes {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

/* Mobile responsive */
@media (max-width: 850px) {
    .vote-wrapper {
        width: 90%;
    }

    .vote-section {
        padding: 1.5rem;
    }

    .star {
        font-size: 2rem;
        gap: 0.5rem;
    }

    .current-rating h3 {
        font-size: 1rem;
    }

    .avg-rating {
        font-size: 1.2rem;
    }
}
