/* Collaboration View Styles */

/* Song Content Section */
.song-content {
    font-family: 'Times New Roman', Times, serif;
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.6;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    white-space: pre;
    font-size: 14px;
}

/* Wrapper for chord content */
.chord-content {
    padding: 0;
    margin: -1.5rem 0 0 0;
}

.song-author {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.song-meta {
    margin-bottom: 1.5rem;
}

.verse {
    margin-bottom: 1rem;
}

/* Chord styling to match the editor styles */
.chord-line {
    margin-bottom: 0.5rem;
    position: relative;
    padding-top: 1.5em;
    white-space: pre;
    line-height: 1.5;
    font-size: 14px;
    font-family: monospace;
    margin: 0.5em 0;
}

.chord {
    color: #2c5282;
    font-weight: bold;
    font-family: monospace;
    position: relative;
    top: -1.5em;
    display: inline-block;
    width: 0;
    white-space: nowrap;
    font-size: 14px;
}

.lyric-line {
    margin-bottom: 0.5rem;
    padding-top: 0;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.spacer {
    height: 1rem;
}

/* Section names styling */
.section-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    margin-top: 1rem;
}

/* First section name shouldn't have top margin */
.song-content .section-name:first-child {
    margin-top: 0;
}

/* Bar lines in chord progressions */
.bar {
    color: #666;
}

.chord-progression {
    font-family: monospace;
    white-space: pre;
    margin: 0;
    font-weight: 600;
    padding-top: 0;
}

.chordpro-section .chord-progression {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

/* Comments Section */
.comments-section {
    /* No fixed height or overflow */
}

.comment {
    border-left: 3px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.comment:hover {
    border-left-color: #007bff;
}

.comment .card-header, 
.reply .card-header {
    padding: 0.5rem 0.75rem;
}

.comment .card-body,
.reply .card-body {
    padding: 0.75rem;
    overflow: hidden;
}

.replies {
    padding-left: 0.75rem;
    border-left: 1px dashed #ccc;
}

.reply {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    overflow: hidden;
}

.reply-form {
    background-color: #f9f9f9;
    padding: 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #eee;
}

/* Card styles */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1 1 auto;
}

/* Edit button styles */
.edit-comment, .edit-reply {
    transition: all 0.2s ease;
}

.edit-comment:hover, .edit-reply:hover {
    background-color: #0d6efd;
    color: white;
}

/* Edited comment style */
.comment-edited {
    font-style: italic;
}

/* Sticky headers */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Improve spacing */
.row.g-4 {
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .song-content {
        padding: 1rem;
    }
    
    /* Stack cards properly on mobile */
    .card.h-100 {
        margin-bottom: 1.5rem;
    }
}

/* Auto-expanding textarea styles */
textarea {
    min-height: 38px;
    overflow-y: hidden;
    resize: none;
    transition: height 0.1s ease-out;
}

/* Comment form styling */
.add-comment textarea {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.add-comment textarea:focus {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reply form styling */
.reply-form textarea {
    min-height: 34px;
}

/* General collaboration page styling */
.comment .card-header, 
.reply .card-header {
    background-color: #f8f9fa;
}

.comments-section {
    overflow-y: auto;
    padding-right: 5px;
}

.comments-section::-webkit-scrollbar {
    width: 6px;
}

.comments-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.comments-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.comments-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Comment and reply content styling */
.comment-content, 
.reply-content {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
    max-width: 100%;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.chord-line .chord {
    color: #2c5282;
    font-weight: bold;
}

.chordpro-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.chordpro-section .chord-line {
    margin: 0.25em 0;
}

/* Collaboration Promo Section Styles */
.collaboration-promo-section {
    position: relative;
    color: #fff;
    background-color: #222; /* fallback */
    min-height: 400px;
    z-index: 1;
}
.collaboration-promo-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 20, 30, 0.7);
    z-index: 2;
}
.collaboration-promo-section .container {
    position: relative;
    z-index: 3;
}
.collaboration-promo-section h2,
.collaboration-promo-section p,
.collaboration-promo-section a {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.collaboration-promo-section .btn-outline-light {
    border-color: #fff;
    color: #fff;
}
.collaboration-promo-section .btn-outline-light:hover {
    background: #fff;
    color: #222;
}
@media (max-width: 767px) {
    .collaboration-promo-section {
        min-height: 250px;
        padding: 2rem 0;
    }
    .collaboration-promo-section h2 {
        font-size: 2rem;
    }
    .collaboration-promo-section p {
        font-size: 1rem;
    }
}

.delete-song-audio {
    position: relative;
    top: -12px;
}
.audio-player {
    position: relative;
    top: 0px;
}