/**
 * /css/track-comments.css
 * Arkusz stylów dla modalu komentarzy AMFR 3.1 LTS
 */

.amfr-comments-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.amfr-comments-modal-overlay.is-active {
    display: flex;
}

.amfr-comments-modal-content {
    background: #1e1e1e;
    color: #fff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    font-family: inherit;
}

.amfr-comments-modal-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #252525;
}

.amfr-comments-header-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amfr-modal-track-title {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

.amfr-modal-comment-count {
    font-size: 13px;
    color: #aaa;
}

.amfr-comments-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.amfr-comments-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.amfr-modal-body-container {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amfr-comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
}

.amfr-comment-input-nick {
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.amfr-comment-input-nick:focus {
    border-color: #1db954;
}

.amfr-textarea-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.amfr-comment-input-text {
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.amfr-comment-input-text:focus {
    border-color: #1db954;
}

.amfr-emoji-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    padding: 4px 0;
}

.amfr-emoji-btn {
    background: #333;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.amfr-emoji-btn:hover {
    background: #444;
}

.amfr-comment-btn-submit {
    padding: 10px 16px;
    background: #1db954;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end;
    transition: background 0.2s;
}

.amfr-comment-btn-submit:hover {
    background: #1aa34a;
}

.amfr-comment-btn-submit:disabled {
    background: #555;
    cursor: not-allowed;
}

.amfr-no-comments {
    text-align: center;
    color: #888;
    padding: 30px 10px;
    font-style: italic;
}

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

.amfr-comment-item {
    background: #252525;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amfr-comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amfr-comment-user {
    font-weight: bold;
    color: #1db954;
    font-size: 14px;
}

.amfr-comment-date {
    font-size: 12px;
    color: #888;
}

.amfr-comment-text {
    margin: 0;
    color: #ddd;
    font-size: 14px;
    word-break: break-word;
    white-space: pre-wrap;
}

.amfr-comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.amfr-comment-action-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.amfr-comment-action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .amfr-comments-modal-overlay {
        padding: 10px;
    }

    .amfr-comments-modal-content {
        max-height: 95vh;
        border-radius: 8px;
    }

    .amfr-comments-modal-header {
        padding: 15px;
    }

    .amfr-modal-body-container {
        padding: 15px;
    }
}