﻿/* 댓글 섹션 스타일 */
.ds-board-reply {
    background-color: transparent;
    border-top: 1px solid #e0e0e0;
    padding: 15px 0;
}

.reply-header {
    padding: 0 15px 12px 15px;
    border-bottom: none;
}

.reply-header h6 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.reply-list {
    padding: 0;
}

.reply-item {
    background-color: transparent;
    border-left: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 15px !important;
    margin: 0 0 5px 0 !important;
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-item:hover {
    background-color: #fafafa;
    transition: background-color 0.2s ease;
}

.reply-meta {
    padding-bottom: 8px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.reply-meta strong {
    color: #333;
    font-weight: 600;
}

.reply-meta .text-muted {
    margin-left: 8px;
    color: #999;
}

.reply-actions {
    display: flex;
    gap: 8px;
}

.reply-actions .btn {
    padding: 2px 8px;
    height: auto;
}

.reply-content {
    color: #555;
    word-break: break-word;
    margin: 0;
}

.reply-edit-form {
    margin-top: 8px;
}

.reply-edit-form textarea {
    border-color: #ddd;
}

.reply-edit-form .btn-group {
    gap: 5px;
}

.reply-edit-form .btn {
    padding: 4px 10px;
}

.reply-form {
    padding: 15px;
}

.reply-input-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
}

.reply-textarea-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reply-input-wrapper textarea {
    width: 100%;
    border-color: #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.reply-input-wrapper textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
    outline: none;
}

.reply-button-container {
    flex: 0 0 auto;
    display: flex;
    gap: 5px;
}

.reply-input-wrapper .btn {
    padding: 0 16px;
    white-space: nowrap;
    background-color: #e3f2fd;
    color: #0066cc;
    border: 1px solid #b3d9ff;
    font-weight: 500;
}

.reply-input-wrapper .btn:hover {
    background-color: #bbdefb;
    border-color: #90caf9;
    color: #0052a3;
}

.reply-input-wrapper .btn:active {
    background-color: #90caf9;
    border-color: #64b5f6;
}

.reply-form textarea {
    border-color: #ddd;
    border-radius: 4px;
    resize: vertical;
}

.reply-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

.reply-form .btn {
    padding: 8px 16px;
}

/* 로그인 필요 메시지 */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    border-radius: 4px;
}

.alert-info a {
    color: #004085;
    font-weight: 600;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .reply-actions {
        flex-direction: row;
        gap: 3px;
    }
    
    .reply-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .reply-meta {
        flex-direction: column;
    }
    
    .reply-list {
        padding: 0;
    }
    
    .reply-item {
        margin-bottom: 10px;
        border-radius: 0;
    }
    
    .reply-input-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .reply-textarea-container {
        width: 100%;
    }
    
    .reply-input-wrapper textarea {
        width: 100%;
    }
    
    .reply-button-container {
        display: flex;
        justify-content: flex-end;
    }
    
    .reply-input-wrapper .btn {
        width: 100%;
        padding: 8px 16px;
    }
}
