/*
 * Review System — Minimal Styles
 */

/* Rating Input */
.rating-input {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.rating-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ccc;
    transition: color 0.15s ease;
}

.rating-star:hover {
    background: transparent;
    color: #1a1a1a;
}

.rating-star.active {
    color: #1a1a1a;
}

.rating-star svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    pointer-events: none;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-input[readonly],
.form-input:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Messages */
.form-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.form-message-success {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    color: #15803d;
}

.form-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-message-info {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #666;
}

/* Tags */
.tags-container {
    margin-top: 0.75rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-checkbox {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.tag-checkbox:hover {
    border-color: #1a1a1a;
}

.tag-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.tag-checkbox:has(input:checked) {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.tag-label {
    font-size: 0.85rem;
    cursor: pointer;
}

.tags-empty {
    color: #999;
    font-size: 0.85rem;
    padding: 1rem;
    text-align: center;
}

/* Profile & Admin Forms */
.profile-form,
.admin-tags-container {
    padding: 1rem 0;
}

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

.tags-table {
    width: 100%;
    margin-bottom: 2rem;
}

.add-tag-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}

.add-tag-form h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Reviews Section */
.exhibition-reviews-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.reviews-header {
    margin-bottom: 1rem;
}

.reviews-header h3 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 0.5rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-stars-static {
    display: flex;
    gap: 1px;
}

.review-count {
    font-size: 0.7rem;
    color: #999;
}

.reviews-list {
    display: flex;
    flex-direction: column;
}

.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-author strong {
    font-size: 0.9rem;
    font-weight: 500;
}

.review-date {
    font-size: 0.75rem;
    color: #999;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.review-body {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
}

.reviews-empty {
    padding: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.review-login-prompt,
.profile-login-prompt {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.review-login-prompt a,
.profile-login-prompt a {
    color: #1a1a1a;
}

.profile-login-prompt h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.profile-login-prompt p {
    margin: 0 0 1rem 0;
    font-size: 0.75rem;
}

.profile-login-prompt .btn {
    font-size: 0.7rem;
}

/* Stars */
.star {
    font-size: 10px;
    color: #ccc;
}

.star-full {
    color: #1a1a1a;
}

.star-half {
    color: #1a1a1a;
    opacity: 0.5;
}

/* Like Section */
.exhibition-likes-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.exhibition-likes-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 0.5rem;
}

.like-buttons-container {
    margin-top: 0.25rem;
}

.like-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
    color: #999;
    font-size: 0.65rem;
}

.like-button:hover:not(:disabled) {
    color: #1a1a1a;
}

.like-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.like-button.active {
    color: #1a1a1a;
}

.like-button.active[data-reaction="like"] {
    color: #22c55e;
}

.like-button.active[data-reaction="dislike"] {
    color: #ef4444;
}

.like-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.like-count {
    font-size: 0.65rem;
    font-weight: 500;
}

/* Button variants */
.btn-danger {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}
