/**
 * Track-related styles
 * Styles for TrackDetailInterface and TrackEditInterface
 */

/* Ed Pick Display (used in both detail and edit pages) */
.ed-pick-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(231, 125, 66, 0.15);
    border: 2px solid #E77D42;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(231, 125, 66, 0.3);
}

.ed-pick-display .star-icon.selected {
    font-size: 2.5rem;
    color: #E77D42;
    filter: drop-shadow(0 0 10px rgba(231, 125, 66, 0.7));
}

.ed-pick-display .ed-pick-text {
    font-size: 1.1rem;
    color: #ddd;
}

.light-mode .ed-pick-display .ed-pick-text {
    color: #333;
}

.ed-pick-display .ed-pick-text em {
    display: block;
    margin-top: 0.3rem;
    color: #aaa;
}

.light-mode .ed-pick-display .ed-pick-text em {
    color: #666;
}

/* Track Detail specific Ed Pick styling */
.track-detail .ed-pick-display {
    margin-top: 0.5rem;
}

.track-detail .ed-pick-display .star-icon.selected {
    font-size: 2rem;
}

.track-detail .ed-pick-display .ed-pick-text {
    font-size: 1rem;
}

/* Ed Pick Star/Form (edit page) */
.ed-pick-star {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
    background: rgba(231, 125, 66, 0.1);
    border: 2px solid transparent;
}

.ed-pick-star:hover {
    background: rgba(231, 125, 66, 0.2);
    box-shadow: 0 0 20px rgba(231, 125, 66, 0.4);
}

.ed-pick-star .star-icon {
    font-size: 2.5rem;
    color: #666;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.ed-pick-star:hover .star-icon {
    color: #E77D42;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(231, 125, 66, 0.6));
}

.ed-pick-star.selected {
    background: rgba(231, 125, 66, 0.15);
    border-color: #E77D42;
    box-shadow: 0 0 25px rgba(231, 125, 66, 0.5), inset 0 0 15px rgba(231, 125, 66, 0.1);
}

.ed-pick-star.selected .star-icon {
    color: #E77D42;
    filter: drop-shadow(0 0 12px rgba(231, 125, 66, 0.8));
}

.ed-pick-star .star-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: #888;
}

.ed-pick-star:hover .star-label {
    color: #E77D42;
}

.ed-pick-star.selected .star-label {
    color: #E77D42;
    text-shadow: 0 0 10px rgba(231, 125, 66, 0.5);
}

.ed-pick-details {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(240, 192, 64, 0.1);
    border-left: 3px solid #E77D42;
    border-radius: 4px;
}

.ed-pick-details textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1a1a1a;
    color: #eee;
    font-family: inherit;
    resize: vertical;
}

.light-mode .ed-pick-details textarea {
    background: #fff;
    color: #333;
    border-color: #ccc;
}

.ed-pick-form {
    display: block;
}

/* BPM input - hide spinners */
.bpm-no-spinners {
    -moz-appearance: textfield;
}

.bpm-no-spinners::-webkit-outer-spin-button,
.bpm-no-spinners::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Admin Actions Section */
.admin-actions-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(231, 125, 66, 0.08);
    border: 1px solid rgba(231, 125, 66, 0.3);
    border-radius: 8px;
}

.admin-actions-headline {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E77D42;
    color: #E77D42;
    font-size: 1.2rem;
}

.admin-actions-section .admin-tools {
    margin-bottom: 0.5rem;
}

.admin-actions-section .ccm-id-label {
    font-size: 0.85rem;
    color: #888;
}

.light-mode .admin-actions-section {
    background: rgba(231, 125, 66, 0.1);
}

/* Category Checkboxes */
.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.category-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(100, 100, 100, 0.2);
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-checkbox:hover {
    background: rgba(231, 125, 66, 0.2);
    border-color: #E77D42;
}

.category-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.category-checkbox input[type="checkbox"]:checked + span,
.category-checkbox:has(input:checked) {
    color: #E77D42;
}

.light-mode .category-checkbox {
    background: rgba(200, 200, 200, 0.3);
    border-color: #ccc;
}

.light-mode .category-checkbox:hover {
    background: rgba(231, 125, 66, 0.15);
}

/* Thumb & bookmark action buttons */
.thumbsup,
.bookmark {
    transition: opacity 0.2s, background-color 0.2s, transform 0.15s;
    opacity: 0.5;
    cursor: pointer;
}

.thumbsup.active,
.bookmark.active {
    opacity: 1;
    background-color: var(--mp-accent, #518BA1);
    border-color: var(--mp-accent, #518BA1);
}

.thumbsup.pop,
.bookmark.pop {
    animation: popBounce 0.4s ease;
}

@keyframes popBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.thumbsup.busy,
.bookmark.busy {
    pointer-events: none;
    opacity: 0.3;
}

/* ===================
   Comments Section
   =================== */
.track-comments h3 {
    margin-bottom: 12px;
}

.comment-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: #eee;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.comment-form .btn {
    margin-bottom: 16px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single_comment {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
}

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: #E77D42;
}

.comment-date {
    font-size: 11px;
    color: #777;
}

.single_comment .comment-text {
    font-size: 14px;
    line-height: 1.45;
    color: #ddd;
    margin: 0;
}

.no-comments {
    color: #777;
    font-size: 13px;
}
